/* =====================================================================
   HYPERDEV P.S.A. — Premium Landing Page
   Design system: dark-first, violet→amber gradients, glassmorphism
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f5a623;

  --grad-brand: linear-gradient(120deg, var(--violet-500) 0%, var(--amber-500) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(139,92,246,.18), rgba(245,166,35,.18));

  /* Dark theme (default) */
  --bg: #0b0710;
  --bg-2: #0e0a16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f1fa;
  --text-muted: #a9a3b8;
  --text-faint: #6f697e;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --glow: 0 0 60px -12px rgba(139, 92, 246, 0.55);

  /* Type */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

[data-theme="light"] {
  --bg: #faf8fd;
  --bg-2: #f3eefb;
  --surface: rgba(20, 12, 35, 0.025);
  --surface-2: rgba(20, 12, 35, 0.045);
  --border: rgba(20, 12, 35, 0.10);
  --border-strong: rgba(20, 12, 35, 0.18);
  --text: #1a1226;
  --text-muted: #5a5270;
  --text-faint: #8b85a0;
  --shadow: 0 24px 60px -28px rgba(76, 29, 149, 0.25);
  --glow: 0 0 60px -16px rgba(139, 92, 246, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 75% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
              radial-gradient(900px 600px at 10% 10%, rgba(245, 166, 35, 0.12), transparent 55%),
              var(--bg);
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: float 18s ease-in-out infinite;
}
.orb.v { width: 420px; height: 420px; background: var(--violet-600); top: -80px; right: -60px; }
.orb.a { width: 360px; height: 360px; background: var(--amber-500); bottom: 5%; left: -100px; animation-delay: -6s; opacity: .35; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-300);
  padding: .4rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); box-shadow: var(--glow); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2.title { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-top: 1.1rem; }
.lede { color: var(--text-muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); margin-top: 1rem; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 58, 237, 0.85); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--violet-400); background: var(--surface-2); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.link-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600; color: var(--violet-300);
  font-size: .95rem;
}
.link-cta .arrow { transition: transform .25s ease; }
.link-cta:hover { color: var(--amber-400); }
.link-cta:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav-drawer { display: contents; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: var(--glow); }
.brand .psa { color: var(--text-faint); font-weight: 500; font-size: .78rem; align-self: flex-end; margin-bottom: .28rem; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { color: var(--text-muted); font-size: .94rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-btn:hover { border-color: var(--violet-400); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch {
  display: flex; align-items: center; gap: .2rem;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: .2rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
}
.lang-switch button { padding: .35rem .55rem; border-radius: 8px; color: var(--text-faint); transition: all .2s ease; }
.lang-switch button.active { background: var(--grad-brand); color: #fff; }

.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
.hero .lede { max-width: 36ch; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.4rem; flex-wrap: wrap; color: var(--text-faint); font-size: .85rem; }
.hero-trust .stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); line-height: 1; }
.hero-trust .sep { width: 1px; height: 34px; background: var(--border-strong); }

/* Hero visual: circular spiral disc + floating cards */
.hero-visual {
  position: relative; width: min(100%, 440px); margin-inline: auto;
  aspect-ratio: 1 / 1; display: grid; place-items: center;
}
.hero-disc {
  position: relative; width: 76%; aspect-ratio: 1 / 1; border-radius: 50%;
  overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: var(--glow), var(--shadow);
}
.hero-spiral {
  position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none;
  object-fit: cover;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border-strong);
  inset: 0; animation: pulse 6s ease-in-out infinite; pointer-events: none;
}
.hero-ring.r2 { inset: 6%; opacity: .6; animation-delay: -2s; }
.hero-ring.r3 { inset: 12%; opacity: .35; animation-delay: -4s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.04); opacity: .9; } }
.hero-card {
  position: absolute; z-index: 2;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 500;
  animation: floatCard 7s ease-in-out infinite;
}
.hero-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand-soft); display: grid; place-items: center; flex: none; }
.hero-card .ic svg { width: 18px; height: 18px; color: var(--violet-300); }
.hero-card small { display: block; color: var(--text-faint); font-size: .76rem; font-weight: 500; }
.hero-card.c1 { top: 8%; left: -4%; }
.hero-card.c2 { bottom: 14%; right: -6%; animation-delay: -2.5s; }
.hero-card.c3 { bottom: 2%; left: 8%; animation-delay: -4.5s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Credibility strip ---------- */
.cred { padding-block: clamp(1.2rem, 3vw, 2rem); }
.cred-inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); flex-wrap: wrap;
  justify-content: center; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(139,92,246,.10), rgba(245,166,35,.08));
  padding: 1.1rem clamp(1.2rem, 3vw, 2rem);
}
.cred-badge { display: flex; align-items: center; gap: .85rem; flex: none; }
.cred-mark {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px -10px rgba(124,58,237,.8);
}
.cred-mark svg { width: 24px; height: 24px; }
.cred-badge-text strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.cred-badge-text small { color: var(--text-muted); font-size: .85rem; }
.cred-line { color: var(--text-muted); font-size: .95rem; max-width: 46ch; border-left: 1px solid var(--border-strong); padding-left: clamp(1rem, 3vw, 2.2rem); }

/* ---------- Pillars (What We Do) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; transition: transform .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0; transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong); margin-bottom: 1.2rem;
}
.card .icon svg { width: 26px; height: 26px; color: var(--violet-300); }
.card h3 { font-size: 1.32rem; margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .97rem; margin-bottom: 1.2rem; }

/* ---------- Value (outcomes) ---------- */
.value { background: linear-gradient(180deg, transparent, var(--bg-2) 50%, transparent); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.value-item {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s ease, transform .3s ease;
}
.value-item:hover { border-color: var(--violet-400); transform: translateY(-4px); }
.value-item .check { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; }
.value-item .check svg { width: 16px; height: 16px; color: #fff; }
.value-item h4 { font-size: 1.05rem; margin-bottom: .25rem; }
.value-item p { color: var(--text-muted); font-size: .9rem; }

/* ---------- Services (modular) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 1.9rem; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.service .tag {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; color: var(--amber-400); margin-bottom: 1rem;
}
.service .tag .badge {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong); color: var(--violet-300);
}
.service .tag .badge svg { width: 17px; height: 17px; }
.service h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.service ul.feat { display: grid; gap: .6rem; margin-bottom: 1.3rem; }
.service ul.feat li { position: relative; padding-left: 1.5rem; color: var(--text-muted); font-size: .95rem; }
.service ul.feat li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-brand);
}
.service .value-line {
  border-top: 1px dashed var(--border-strong); padding-top: 1rem; margin-top: auto;
  font-family: var(--font-display); font-weight: 600; color: var(--text);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); }

/* ---------- Integrations ---------- */
.integrations-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.intg-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 1rem; }
.intg-list { display: grid; gap: .6rem; }
.intg-pill {
  display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: .92rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.intg-pill:hover { border-color: var(--violet-400); transform: translateX(4px); background: var(--surface-2); }
.intg-pill .logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; flex: none; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.intg-pill .logo svg { width: 20px; height: 20px; display: block; }
.intg-note { text-align: center; margin-top: 2.5rem; color: var(--text-muted); font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Case studies ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.case {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.case:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.case .case-top { padding: 1.6rem 1.8rem; background: var(--grad-brand-soft); border-bottom: 1px solid var(--border); }
.case .case-top .kicker { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-400); }
.case .case-top h3 { font-size: 1.3rem; margin-top: .5rem; }
.case .case-body { padding: 1.6rem 1.8rem; }
.case .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.case .metric b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; }
.case .metric span { color: var(--text-muted); font-size: .85rem; }
.case ul.outcomes { display: grid; gap: .5rem; }
.case ul.outcomes li { padding-left: 1.4rem; position: relative; color: var(--text-muted); font-size: .92rem; }
.case ul.outcomes li::before { content: "✓"; position: absolute; left: 0; color: var(--violet-400); font-weight: 700; }

/* ---------- About / Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.member:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.member .photo { aspect-ratio: 4 / 3.4; overflow: hidden; position: relative; background: var(--bg-2); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s ease, transform .5s ease; }
.member:hover .photo img { filter: grayscale(0); transform: scale(1.04); }
.member .photo.placeholder { display: grid; place-items: center; background: var(--grad-brand-soft); }
.member .photo.placeholder span { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--violet-300); }
.member .info { padding: 1.4rem 1.5rem; }
.member .info .role { font-family: var(--font-display); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-400); }
.member .info h3 { font-size: 1.25rem; margin: .35rem 0 .6rem; }
.member .info p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1rem; }
.member .social { display: inline-flex; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta-inner {
  position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; overflow: hidden;
  background: radial-gradient(700px 320px at 50% 0%, rgba(124,58,237,.28), transparent 70%), var(--surface);
}
.final-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin-inline: auto; }
.final-cta .lede { max-width: 52ch; margin-inline: auto; }
.final-cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3.5rem 2rem; margin-top: var(--section-y); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: .92rem; margin-top: 1rem; max-width: 32ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .94rem; padding: .3rem 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-partner {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: .82rem; font-weight: 500; color: var(--text-muted);
}
.footer-partner svg { width: 15px; height: 15px; color: var(--violet-300); flex: none; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }
.footer-bottom .legal { display: flex; gap: 1.4rem; }
.footer-bottom .legal a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; width: min(72vw, 340px); }
  .hero-card { display: none; } /* avoid overlap on stacked layout — disc stands alone */
  .cards-3, .value-grid, .team-grid, .integrations-groups { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  /* collapse links + language/theme/CTA into a single dropdown; top bar shows only brand + hamburger */
  .nav-drawer { display: none; }
  .nav.open .nav-drawer {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: .5rem 1.2rem 1.2rem;
  }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; }
  .nav.open .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav.open .nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-top: .9rem; }
  .nav.open .nav-actions .btn-primary { flex: 1 0 100%; text-align: center; }
  .services-grid, .cases-grid { grid-template-columns: 1fr; }
  .cards-3, .value-grid, .team-grid, .integrations-groups, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust .sep { display: none; }
  .case .metrics { grid-template-columns: 1fr 1fr; }
  .cred-inner { flex-direction: column; text-align: center; }
  .cred-line { border-left: 0; padding-left: 0; }
}
