/* ============================================================
   CAPED CONSULTING — Twilight Violet Design System
   Bespoke build. No template. Night-sky / growth / heroic.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face { font-display: swap; }

/* ---------- Design Tokens ---------- */
:root {
  /* Base — blackish silver / graphite */
  --bg-0:        #15171B;   /* deepest */
  --bg-1:        #1E2127;   /* page */
  --bg-2:        #24282F;   /* section */
  --surface:     #2B2F37;   /* card */
  --surface-2:   #333842;   /* raised card */
  --line:        rgba(205,210,224,0.12);
  --line-strong: rgba(205,210,224,0.24);

  /* Accents — warm gold / yellow (Instagram brand) */
  --cyan:   #FFD45E;   /* light gold (var name kept for minimal churn) */
  --violet: #F2B418;   /* deep gold */
  --violet-deep: #D99A10;
  --magenta:#FFC233;   /* amber */

  /* Text */
  --ink:     #F4F5F8;
  --ink-soft:#CBCFD8;
  --muted:   #9AA0AC;
  --muted-2: #717783;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(242,180,24,0.92), rgba(255,212,94,0.92));
  --grad-text: linear-gradient(100deg, #FFE59A 0%, #FFD45E 55%, #F2B418 100%);
  --glow-violet: 0 0 40px rgba(242,180,24,0.40);
  --glow-cyan:   0 0 40px rgba(255,212,94,0.34);

  /* Type */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mobile bottom tab bar height */
  --tabbar-h: 66px;

  /* Metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   LIGHT MODE (whitish silver). Dark is the default above.
   ============================================================ */
:root[data-theme="light"] {
  --bg-0: #E5E7EC;
  --bg-1: #F3F4F7;   /* whitish silver page */
  --bg-2: #EAECF0;
  --surface: #FFFFFF;
  --surface-2: #F6F7F9;
  --line: rgba(24,28,42,0.10);
  --line-strong: rgba(24,28,42,0.20);
  --cyan: #CF8E00;        /* darker gold for text contrast on light */
  --violet: #B37400;
  --violet-deep: #946000;
  --magenta: #D98E00;
  --ink: #1B1E26;
  --ink-soft: #3C4252;
  --muted: #5C6474;
  --muted-2: #8A90A0;
  --grad-brand: linear-gradient(120deg, #E0A200 0%, #FFC94A 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(224,162,0,0.9), rgba(255,201,74,0.9));
  --grad-text: linear-gradient(100deg, #9A6400 0%, #CF8E00 55%, #7E5400 100%);
  --glow-violet: 0 0 30px rgba(224,162,0,0.22);
  --glow-cyan: 0 0 30px rgba(255,201,74,0.2);
}
:root[data-theme="light"] body { background: var(--bg-1); }
:root[data-theme="light"] .bg-cosmos {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(242,180,24,0.10), transparent 60%),
    radial-gradient(900px 600px at 6% 10%, rgba(242,180,24,0.06), transparent 55%),
    linear-gradient(180deg, #F8F9FB 0%, #EFF1F4 46%, #E7E9ED 100%);
}
:root[data-theme="light"] .bg-grain { opacity: 0.02; mix-blend-mode: multiply; }
:root[data-theme="light"] .nav.scrolled { background: rgba(243,244,247,0.86); box-shadow: 0 10px 34px -22px rgba(20,24,40,0.4); }
:root[data-theme="light"] .brand .thin { color: var(--muted); }
:root[data-theme="light"] .trust-band { background: rgba(255,255,255,0.5); }
:root[data-theme="light"] .case-flag { background: rgba(255,255,255,0.74); color: var(--ink-soft); }
:root[data-theme="light"] .form { background: rgba(255,255,255,0.72); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea,
:root[data-theme="light"] .field select { background: #FFFFFF; }
:root[data-theme="light"] .btn-ghost { background: rgba(255,255,255,0.6); }
:root[data-theme="light"] .mobile-tabbar { background: rgba(247,248,250,0.93); box-shadow: 0 -10px 30px -16px rgba(20,24,40,0.3); }
:root[data-theme="light"] .hero-copy h1, :root[data-theme="light"] .hero-copy .lead { text-shadow: none; }
:root[data-theme="light"] .hero-copy h1 .text-grad { text-shadow: none; }
@media (max-width: 900px) {
  :root[data-theme="light"] .hero-fade { background: linear-gradient(180deg, rgba(247,248,250,0.5) 0%, rgba(247,248,250,0.22) 42%, rgba(231,233,237,0.8) 82%, var(--bg-1) 100%); }
  :root[data-theme="light"] #hero-canvas { opacity: 0.62; }
}

/* ---------- 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; } }

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

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

/* ---------- Global starfield background ---------- */
.bg-cosmos {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(242,180,24,0.12), transparent 60%),
    radial-gradient(900px 600px at 6% 10%, rgba(255,212,94,0.07), transparent 55%),
    radial-gradient(1100px 900px at 50% 118%, rgba(242,180,24,0.07), transparent 60%),
    linear-gradient(180deg, #2A2E36 0%, #22262D 42%, #1C1F25 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(56px, 6vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.display {
  font-size: clamp(2.3rem, 5.1vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
.h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); line-height: 1.62; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif-em { font-style: italic; }

.muted { color: var(--muted); }
.center { text-align: center; }
.m-break { display: none; } /* line break that only applies on mobile */
.d-break { display: none; } /* line break that only applies on desktop */
@media (min-width: 901px) { .d-break { display: inline; } }
.mx-auto { margin-inline: auto; }
.maxch { max-width: 62ch; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 76px); }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 18px; }
.section-head p { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn-primary {
  background: var(--grad-brand); color: #0A0820;
  box-shadow: 0 10px 30px -8px rgba(242,180,24,0.5), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(242,180,24,0.75), var(--glow-cyan); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(26,29,35,0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.9);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.brand .mark, .brand img.custom-logo { width: 42px; height: 42px; max-width: 42px; max-height: 42px; flex: 0 0 auto; box-sizing: border-box; border-radius: 50%; background: #F7F7F4; padding: 7px; object-fit: contain;
  box-shadow: 0 3px 12px rgba(242,180,24,0.45), 0 0 0 1px rgba(0,0,0,0.06); }
/* Safety: never let an uploaded logo exceed the chip, whatever its native size */
.brand img { max-width: 42px; max-height: 42px; box-sizing: border-box; }
.footer-brand .brand .mark, .footer-brand .brand img.custom-logo { box-shadow: 0 3px 14px rgba(242,180,24,0.4), 0 0 0 1px rgba(0,0,0,0.08); }
.brand b { font-weight: 500; }
.brand .thin { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 30px; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links ul { display: contents; } /* if WP wraps items in a <ul>, let the <li>s join the flex row */
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-links li::marker { content: ""; }
.nav-links a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; position: relative; transition: color .3s; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--grad-brand); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; background: rgba(150,150,170,0.06); color: var(--ink-soft); transition: color .3s, border-color .3s, background .3s; }
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(242,180,24,0.08); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(12,10,28,0.4) 78%, var(--bg-1) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; align-items: center; gap: 40px; }
.hero-copy { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: rgba(242,180,24,0.08);
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 28px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 500px; }
/* Readability over the 3D orb */
.hero-copy h1, .hero-copy .lead { text-shadow: 0 2px 22px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.55); }
/* Hero accent word: solid bright gold (gradient text was invisible over the orb) */
.hero-copy h1 .text-grad { background: none; -webkit-text-fill-color: var(--cyan); color: var(--cyan); text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-trust { margin-top: 46px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; gap: 3px; }
.hero-trust .t b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.hero-trust .t span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.hero-trust .div { width: 1px; background: var(--line); }
.hero-visual { position: relative; height: 100%; min-height: 420px; }

.scroll-cue { position: absolute; right: clamp(20px, 3vw, 46px); bottom: 24px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.scroll-cue .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; border-radius: 3px; background: var(--cyan); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,8px)} 100%{opacity:0;transform:translate(-50%,10px)} }

/* ---------- Marquee logos / trust ---------- */
.trust-band { border-block: 1px solid var(--line); padding-block: 26px; background: rgba(21,23,27,0.5); }
.trust-band .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.trust-band .label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.trust-flags { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-flags .flag { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.trust-flags .flag svg { width: 20px; height: 14px; border-radius: 2px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  position: relative; overflow: hidden;
}
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad-brand); opacity: .6; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.stat-card.in::before { transform: scaleX(1); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-num .suf { font-size: 0.5em; -webkit-text-fill-color: var(--cyan); }
.stat-card p { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.svc-card {
  grid-column: span 1;
  display: flex; flex-direction: column;
  padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.svc-card.feature { grid-column: span 1; }
.svc-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; flex-wrap: wrap; }
.svc-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand-soft); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.svc-card:hover::after { opacity: 1; }
.svc-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(242,180,24,0.35), rgba(255,212,94,0.12)); border: 1px solid var(--line-strong); margin-bottom: 22px; }
.svc-icon svg { width: 26px; height: 26px; stroke: var(--cyan); }
.svc-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 14.5px; }
.svc-card .num { position: absolute; top: 26px; right: 30px; font-family: var(--font-display); font-size: 14px; color: var(--muted-2); }
.svc-card.wide .svc-copy { flex: 1 1 320px; }
.svc-card.wide .svc-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--ink-soft); background: rgba(242,180,24,0.06); }

/* ============================================================
   WHY / DIFFERENTIATORS + COMPARISON
   ============================================================ */
.why-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.why-item { position: relative; padding-left: 42px; }
.why-item .ic { position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(255,212,94,0.12); border: 1px solid var(--line-strong); }
.why-item .ic svg { width: 15px; height: 15px; stroke: var(--cyan); }
.why-item h4 { font-family: var(--font-sans); font-weight: 650; font-size: 15.5px; letter-spacing: 0; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.compare { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.compare-head { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head > div { padding: 22px 26px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.compare-head .trad { color: var(--muted); border-right: 1px solid var(--line); }
.compare-head .caped { color: var(--ink); background: linear-gradient(120deg, rgba(242,180,24,0.18), rgba(255,212,94,0.12)); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row > div { padding: 17px 26px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.compare-row .trad { color: var(--muted); border-right: 1px solid var(--line); }
.compare-row .trad svg { stroke: var(--muted-2); width: 16px; height: 16px; flex: 0 0 auto; }
.compare-row .caped { color: var(--ink-soft); font-weight: 500; background: rgba(242,180,24,0.04); }
.compare-row .caped svg { stroke: var(--cyan); width: 16px; height: 16px; flex: 0 0 auto; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process-track { position: relative; margin-top: 30px; }
.process-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.process-line .fill { position: absolute; inset: 0; width: 0; background: var(--grad-brand); box-shadow: var(--glow-violet); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.pstep { position: relative; }
.pstep .node { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; background: var(--bg-2); border: 1px solid var(--line-strong); position: relative; z-index: 2;
  transition: border-color .5s, box-shadow .5s, color .5s; color: var(--muted); }
.pstep.on .node { border-color: var(--cyan); color: var(--ink); box-shadow: var(--glow-cyan); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.pstep h4 { font-family: var(--font-sans); font-weight: 650; font-size: 16px; letter-spacing: 0; margin: 20px 0 12px; }
.pstep ul { display: flex; flex-direction: column; gap: 7px; }
.pstep li { font-size: 13px; color: var(--muted); padding-left: 16px; position: relative; }
.pstep li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); opacity: .6; }

/* ============================================================
   RESULTS
   ============================================================ */
.results-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,64px); align-items: center; }
.results-big { display: flex; gap: 30px; flex-wrap: wrap; }
.results-big .rb { flex: 1 1 180px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(242,180,24,0.1), rgba(255,212,94,0.04)); }
.results-big .rb .n { font-family: var(--font-display); font-size: clamp(2.6rem,5vw,3.6rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.results-big .rb p { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outcome { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; color: var(--ink-soft); }
.outcome .ck { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--grad-brand); }
.outcome .ck svg { width: 13px; height: 13px; stroke: #0A0820; stroke-width: 3; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s; }
.case-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.case-visual { height: 190px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.case-visual canvas, .case-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-flag { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px; background: rgba(21,23,27,0.62); backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.case-body { padding: 28px 30px 32px; }
.case-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.case-body .cat { font-size: 12.5px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.case-body .desc { color: var(--muted); font-size: 14px; margin: 14px 0 22px; }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-cols h5 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; font-weight: 600; }
.case-cols li { font-size: 13px; color: var(--ink-soft); padding-left: 16px; position: relative; margin-bottom: 7px; line-height: 1.4; }
.case-cols li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.case-cols .sol li::before { background: var(--cyan); }
.case-metrics { display: flex; gap: 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.case-metrics .m { display: flex; flex-direction: column; gap: 3px; }
.case-metrics .m b { font-family: var(--font-display); font-size: 1.2rem; color: var(--cyan); }
.case-metrics .m span { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   90 DAYS ROADMAP
   ============================================================ */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: phase; }
.phase { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.phase::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 3px; background: var(--grad-brand); opacity: .5; }
.phase .ph-k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.phase h4 { font-family: var(--font-sans); font-weight: 650; font-size: 1.15rem; letter-spacing: 0; margin: 8px 0 18px; }
.phase ul { display: flex; flex-direction: column; gap: 9px; }
.phase li { font-size: 13.5px; color: var(--muted); padding-left: 22px; position: relative; }
.phase li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); opacity: .8; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px,6vw,80px); align-items: center; }
.about-copy p { color: var(--ink-soft); margin-top: 20px; line-height: 1.68; }
.about-copy p.first { font-size: 1.2rem; color: var(--ink); }
.about-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.about-visual { position: relative; aspect-ratio: 1; }
#about-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta { position: relative; overflow: hidden; }
.cta-inner { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); overflow: hidden; position: relative;
  background: linear-gradient(140deg, rgba(242,180,24,0.16), rgba(255,212,94,0.06)); }
.cta-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 80% 10%, rgba(255,212,94,0.25), transparent 60%), radial-gradient(500px 400px at 10% 90%, rgba(242,180,24,0.28), transparent 60%); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,64px); padding: clamp(40px,6vw,72px); }
.cta-copy .h2 { margin: 18px 0 20px; }
.cta-contacts { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.cta-contacts a, .cta-contacts .ci { display: flex; align-items: center; gap: 15px; color: var(--ink-soft); font-size: 15px; transition: color .3s; }
.cta-contacts a:hover { color: var(--cyan); }
.cta-contacts .ci-ic { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid var(--line-strong); }
.cta-contacts .ci-ic svg { width: 18px; height: 18px; stroke: var(--cyan); }
.cta-contacts .k { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 2px; }

.form { background: rgba(21,23,27,0.52); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px,3vw,36px); backdrop-filter: blur(6px); }
.form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.form .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03); color: var(--ink); font-family: inherit; font-size: 14.5px; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(255,212,94,0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 60px 34px; background: var(--bg-0); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: .3s; }
.footer-socials a:hover { border-color: var(--cyan); background: rgba(255,212,94,0.08); transform: translateY(-3px); }
.footer-socials a svg { width: 17px; height: 17px; fill: var(--ink-soft); }
.footer-col h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; transition: color .3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.footer-credit a { color: var(--ink-soft); font-weight: 500; transition: color .3s; }
.footer-credit a:hover { color: var(--cyan); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue .mouse::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card, .svc-card.feature { grid-column: span 1; }
  .svc-card.wide { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(1, 1fr); gap: 30px; }
  .process-line { display: none; }
  .pstep { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; }
  .pstep h4 { margin-top: 4px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: none; }
  .nav-menu-mobile { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; background: rgba(26,29,35,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 24px var(--gutter) 34px; transform: translateY(-120%); transition: transform .5s var(--ease); }
  body.menu-open .nav-menu-mobile { transform: translateY(0); }
  .nav-menu-mobile a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
  .nav-menu-mobile .btn { display: inline-flex; margin-top: 20px; width: 100%; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  /* Orb must not drown the copy on small screens */
  #hero-canvas { opacity: 0.5; }
  .hero-fade { background: linear-gradient(180deg, rgba(10,11,14,0.55) 0%, rgba(10,11,14,0.3) 42%, rgba(22,24,29,0.78) 82%, var(--bg-1) 100%); }
  .hero-copy h1, .hero-copy .lead { text-shadow: 0 2px 4px rgba(0,0,0,0.85), 0 3px 26px rgba(0,0,0,0.7); }
  .why-layout, .results-wrap, .about-wrap, .cta-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .compare-head > div, .compare-row > div { padding-inline: 18px; }
  .about-visual { max-width: 400px; margin-inline: auto; order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card, .svc-card.feature, .svc-card.wide { grid-column: span 1; }
  .svc-card.wide { flex-direction: column; align-items: flex-start; gap: 22px; }
  .stats-grid, .roadmap { grid-template-columns: 1fr; }
  .why-list, .outcomes, .case-cols, .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  /* Three proof stats: one centered row, each item centred & 2-line label */
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; text-align: center; justify-items: center; }
  .hero-trust .div { display: none; }
  .hero-trust .t { align-items: center; text-align: center; }
  .hero-trust .t b { font-size: 1.3rem; }
  .hero-trust .t span { font-size: 10.5px; line-height: 1.32; }
  .m-break { display: inline; }
  .compare-head > div, .compare-row > div { font-size: 13px; }
}

/* Nav mobile dropdown retired in favour of the bottom tab bar */
.nav-menu-mobile { display: none; }

/* ============================================================
   MOBILE BOTTOM TAB BAR (Instagram-style)
   ============================================================ */
.mobile-tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: var(--tabbar-h); }
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(26,29,35,0.92); backdrop-filter: blur(22px) saturate(140%);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -10px 34px -16px rgba(0,0,0,0.75);
  }
  .mobile-tabbar .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: var(--muted); font-size: 10.5px; font-weight: 500; letter-spacing: 0.01em;
    transition: color .3s var(--ease); position: relative; -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar .tab svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
  .mobile-tabbar .tab span { line-height: 1; }
  .mobile-tabbar .tab.active { color: var(--cyan); }
  .mobile-tabbar .tab.active svg { transform: translateY(-2px); }
  .mobile-tabbar .tab.active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad-brand);
  }
  .scroll-cue { display: none; }
  .nav-toggle, .nav-menu-mobile { display: none !important; }
}
