/* =========================================================
   AYNAVOR — Design System + Components
   Direction: "Midnight & Ember" — deep midnight surfaces, a warm
   Texas-sunset ember for action, and a cool AI "signal" mint for
   anything live or automated.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #06080d;
  --bg-2: #0a0e16;
  --surface: #0f141e;
  --surface-2: #151b27;
  --surface-3: #1c2433;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f3efe7;
  --text-2: #b6bdca;
  --text-3: #8a93a4;

  /* Brand */
  --ember: #ff7a2f;
  --ember-2: #ffb35c;
  --ember-deep: #c2410c;
  --signal: #35f0c2;
  --signal-2: #8ff7de;
  --grad-ember: linear-gradient(135deg, #ffb35c 0%, #ff7a2f 55%, #f0532a 100%);
  --grad-signal: linear-gradient(135deg, #8ff7de 0%, #35f0c2 60%, #14b8a6 100%);

  /* Paper (light editorial section) */
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #0b0f17;
  --ink-2: #3d4553;

  /* Type */
  --f-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-display: clamp(2.75rem, 1.55rem + 5.3vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 1.35rem + 3.1vw, 4.1rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space (8pt rhythm, spacious density) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(80px, 6vw + 48px, 160px);
  --gutter: clamp(20px, 4vw, 48px);
  --container: 1240px;

  /* Shape + depth */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px -30px rgba(0,0,0,.85);
  --glow-ember: 0 10px 40px -10px rgba(255,122,47,.55);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms; --t-base: 260ms; --t-slow: 700ms;

  /* Layers */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-nav: 100; --z-sheet: 200; --z-grain: 300;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ember); color: #120a04; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--signal); color: #04120e; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Film grain for a tactile, premium finish */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: var(--z-grain); opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--ember-2);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .75; flex: none; }
.eyebrow .dot { display: none; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(53,240,194,.45);} 50%{ box-shadow: 0 0 0 8px rgba(53,240,194,0);} }
.serif { font: inherit; letter-spacing: inherit; }
.ember-text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C38 5.2 84 3.6 118 5.6s58 3.4 79-.6' fill='none' stroke='%23ff8a3d' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M14 11.6c40-2.6 92-3.2 160-1.4' fill='none' stroke='%23ff8a3d' stroke-width='1.6' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% .3em; background-position: 0 96%;
  padding-bottom: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.signal-text { color: var(--signal); }
.section-head { display: grid; gap: var(--s-5); max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--text-2); font-size: var(--fs-lead); max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- 4. Icons ---------- */
.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 18px; height: 18px; }
.i-lg { width: 28px; height: 28px; }

/* ---------- 5. Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base), color var(--t-base), border-color var(--t-base);
  touch-action: manipulation; will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-ember); color: #160b03; box-shadow: var(--glow-ember), 0 1px 0 rgba(255,255,255,.45) inset; }
.btn-primary:hover { box-shadow: 0 16px 50px -10px rgba(255,122,47,.75), 0 1px 0 rgba(255,255,255,.45) inset; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1b2230; }
.btn .arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.link-arrow .i { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: var(--z-nav);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: transform var(--t-base) var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 10px 0 20px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.nav.scrolled .nav-inner { background: rgba(10, 14, 22, .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.nav.hidden { transform: translateY(-110%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.04em; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: none; gap: 4px; }
.nav-links a, .nav-links button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: .975rem; font-weight: 500; transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links button:hover, .nav-links button[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links button .i { transition: transform var(--t-base) var(--ease-out); }
.nav-links button[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav-cta { display: none; align-items: center; gap: 8px; }
.nav-cta .btn { --h: 44px; padding: 0 18px; font-size: .95rem; }
.nav-toggle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(10,14,22,.6); backdrop-filter: blur(10px); }

/* Mega menu */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px); width: min(1100px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(8px) rotateX(-6deg); transform-origin: top center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(13, 18, 27, .96); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  backdrop-filter: blur(24px); box-shadow: var(--shadow-2); padding: 14px;
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 14px;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.mega.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0) rotateX(0); }
.mega-hero { border-radius: var(--r-md); padding: 24px; background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,47,.28), transparent 60%), var(--surface-2); border: 1px solid var(--line); display: grid; align-content: space-between; gap: 24px; min-height: 280px; }
.nav-links .mega-hero { display: grid; align-content: space-between; gap: 24px; padding: 24px; border-radius: var(--r-md); color: var(--text); font-size: 1rem; }
.nav-links .mega-hero:hover { background: radial-gradient(120% 120% at 0% 0%, rgba(255,122,47,.34), transparent 60%), var(--surface-2); }
.nav-links .mega-grid a { color: var(--text); border-radius: var(--r-sm); }
.mega-hero h3 { font-size: 1.6rem; }
.mega-hero p { color: var(--text-2); font-size: var(--fs-small); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-grid a { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px; border-radius: var(--r-sm); transition: background var(--t-fast); align-content: start; }
.mega-grid a:hover { background: rgba(255,255,255,.05); }
.mega-grid .i { grid-row: span 2; color: var(--ember-2); margin-top: 2px; }
.mega-grid strong { font-weight: 600; font-size: .95rem; }
.mega-grid span { color: var(--text-3); font-size: .85rem; line-height: 1.4; }
.mega-grid .free .i, .mega-grid .free strong { color: var(--signal); }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: var(--z-sheet); background: rgba(6,8,13,.97); backdrop-filter: blur(20px);
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden;
  transition: clip-path 600ms var(--ease-out), visibility 600ms;
}
.sheet.open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { display: grid; gap: 2px; }
.sheet nav > a { font-family: var(--f-display); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.sheet details summary { list-style: none; font-family: var(--f-display); font-size: 2rem; font-weight: 600; letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sheet details summary::-webkit-details-marker { display: none; }
.sheet details[open] summary .i { transform: rotate(45deg); }
.sheet details summary .i { transition: transform var(--t-base) var(--ease-out); }
.sheet-services { display: grid; gap: 4px; padding: 12px 0; }
.sheet-services a { display: flex; gap: 12px; align-items: center; padding: 12px 4px; color: var(--text-2); min-height: 48px; }
.sheet-services .i { color: var(--ember-2); }
.sheet-foot { margin-top: auto; display: grid; gap: 12px; }
.sheet-foot .btn { width: 100%; }

/* Mobile sticky action bar */
.action-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: var(--z-sticky);
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(6,8,13,.98) 60%, rgba(6,8,13,0));
  display: flex; gap: 10px; transform: translateY(110%); transition: transform 400ms var(--ease-out);
}
.action-bar.show { transform: none; }
.action-bar .btn { flex: 1; --h: 50px; padding: 0 16px; }
.action-bar .btn-call { flex: none; width: 50px; padding: 0; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: 120px; padding-bottom: 72px; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background:
  radial-gradient(60% 50% at 78% 38%, rgba(255,122,47,.18), transparent 70%),
  radial-gradient(40% 40% at 60% 80%, rgba(53,240,194,.10), transparent 70%),
  radial-gradient(80% 60% at 10% 0%, rgba(40,60,110,.35), transparent 70%), var(--bg); }
.hero-grid-lines { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  transform: perspective(900px) rotateX(55deg) translateY(30%) scale(2); transform-origin: center bottom; }
#hero-canvas { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-fallback { position: absolute; z-index: -1; right: -18%; top: 8%; width: min(90vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd9a8 0%, #ff7a2f 28%, #7a2410 55%, transparent 72%), radial-gradient(circle at 70% 75%, rgba(53,240,194,.6), transparent 50%);
  filter: blur(2px); opacity: .75; animation: float 9s ease-in-out infinite; }
.webgl-ok .hero-fallback { display: none; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(0);} 50%{ transform: translateY(-18px) rotate(6deg);} }

/* Phones/tablets: the 3D core gets its own band above the copy */
@media (max-width: 1023px) {
  .hero { padding-top: 290px; padding-bottom: 88px; align-items: start; min-height: 0; }
  .hero-fallback { right: -20%; top: 40px; width: 380px; }
}
@media (max-width: 639px) {
  .hero { padding-top: 270px; }
  .hide-sm { display: none; }
}
.hero-content { display: grid; gap: 28px; max-width: 760px; position: relative; z-index: 2; }
.hero h1 { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.045em; line-height: .96; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: var(--fs-small); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--signal); width: 18px; height: 18px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Job tickets pinned around the 3D core */
.chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; perspective: 1200px; display: none; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 4px 10px 10px 4px; background: #121823; border: 1px solid var(--line-2); border-left: 3px solid var(--ember-2);
  box-shadow: 0 22px 40px -22px rgba(0,0,0,.9); font-size: .875rem; white-space: nowrap;
  opacity: 0; animation: chipIn .7s var(--ease-out) forwards;
}
.chip-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--text-2); border: 1px dashed var(--line-2); }
.chip-ico.ember { color: var(--ember-2); }
.chip b { display: block; font-weight: 600; font-size: .9rem; }
.chip small { color: var(--text-3); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .02em; }
.chip:nth-child(1) { right: 27%; top: 15%; rotate: -2.5deg; animation-delay: .5s; }
.chip:nth-child(2) { right: 4%; top: 42%; rotate: 1.5deg; animation-delay: .65s; }
.chip:nth-child(3) { right: 22%; top: 70%; rotate: -1deg; animation-delay: .8s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--text-3), transparent); animation: cue 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0);} 50% { transform: scaleY(1);} 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 8. Integrations marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; position: relative; background: var(--bg-2); }
.marquee-wrap::before, .marquee-wrap::after { content: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.marquee-label { text-align: center; font-size: .95rem; color: var(--text-3); margin-bottom: 16px; padding-inline: var(--gutter); }
.marquee { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.marquee span { font-family: var(--f-body); font-size: .95rem; font-weight: 500; color: var(--text-2); padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* ---------- 9. Hero product (AI tools) ---------- */
.ai-section { background: radial-gradient(60% 50% at 100% 0%, rgba(53,240,194,.07), transparent 70%), var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); border: 1px solid rgba(255,122,47,.35); background: rgba(255,122,47,.08); color: var(--ember-2); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; width: fit-content; }
.badge.signal { border-color: rgba(53,240,194,.35); background: rgba(53,240,194,.08); color: var(--signal); }
.ai-layout { display: grid; gap: 32px; }
.task-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
.task-tabs::-webkit-scrollbar { display: none; }
.task-tab {
  scroll-snap-align: start; flex: none; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 56px; padding: 12px 18px 12px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); transition: all var(--t-base) var(--ease-out);
}
.task-tab .t-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); transition: inherit; }
.task-tab strong { display: block; color: var(--text); font-weight: 600; font-size: .98rem; }
.task-tab small { display: none; color: var(--text-3); font-size: .85rem; line-height: 1.45; }
.task-tab:hover { border-color: var(--line-2); }
.task-tab[aria-selected="true"] { border-color: rgba(53,240,194,.45); background: linear-gradient(180deg, rgba(53,240,194,.08), rgba(53,240,194,.02)), var(--surface); color: var(--text); box-shadow: 0 0 0 1px rgba(53,240,194,.15), 0 20px 40px -24px rgba(53,240,194,.5); }
.task-tab[aria-selected="true"] .t-ico { background: var(--signal); color: #03120d; }

.stage { perspective: 1400px; }
.device {
  position: relative; border-radius: var(--r-xl); padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.03) 40%, rgba(53,240,194,.25));
  transform: rotateX(8deg) rotateY(-10deg); transform-style: preserve-3d; transition: transform 900ms var(--ease-out);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 30px 80px -50px rgba(53,240,194,.4);
}
.stage:hover .device { transform: rotateX(2deg) rotateY(-3deg); }
.device-inner { border-radius: calc(var(--r-xl) - 1px); background: linear-gradient(180deg, #121927, #0b1019); padding: clamp(18px, 3vw, 32px); overflow: hidden; position: relative; }
.device-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-family: var(--f-mono); font-size: .75rem; color: var(--text-3); gap: 12px; }
.device-bar .lights { display: flex; gap: 6px; }
.device-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 2s infinite; }
.flow { display: grid; }
.flow-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); opacity: 0; transform: translateY(12px); }
.flow-step.in { animation: stepIn 600ms var(--ease-out) forwards; }
.flow-step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.flow-step.ai .n { background: var(--grad-signal); color: #03120d; }
.flow-step.done .n { background: var(--grad-ember); color: #160b03; }
.flow-step small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); display: block; }
.flow-step p { font-size: .975rem; color: var(--text); line-height: 1.45; }
.flow-connector { height: 18px; margin-left: 33px; border-left: 2px dashed rgba(53,240,194,.35); }
@keyframes stepIn { to { opacity: 1; transform: none; } }
.device-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .9rem; }
.device-foot .approve { display: inline-flex; align-items: center; gap: 8px; color: var(--ember-2); font-weight: 600; }
.task-desc { margin-top: 22px; color: var(--text-2); font-size: var(--fs-lead); min-height: 3.2em; }

/* Hours calculator */
.calc { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,122,47,.07), transparent 40%), var(--surface); position: relative; overflow: hidden; }
.calc > header { display: grid; gap: 12px; }
.calc h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.calc > header p { color: var(--text-2); }
.calc-fields { display: grid; gap: 18px; }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; }
.field-range output { font-family: var(--f-mono); color: var(--ember-2); font-size: 1rem; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ember) var(--p, 30%), var(--surface-3) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ember); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 6px solid var(--ember); box-shadow: 0 4px 14px rgba(255,122,47,.6); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--ember); }
.calc-result { display: grid; gap: 14px; align-content: center; padding: 28px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
.calc-result .eyebrow { color: var(--text-3); }
.calc-big { font-family: var(--f-display); font-size: clamp(3.2rem, 2rem + 5vw, 5.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-big small { font-size: .3em; letter-spacing: -.01em; color: var(--text-2); font-weight: 500; margin-left: 6px; }
.calc-sub { color: var(--text-2); }
.calc-sub b { color: var(--signal); font-variant-numeric: tabular-nums; }
.calc-note { font-size: .82rem; color: var(--text-3); }

/* ---------- 10. Free offers ---------- */
.offers { display: grid; gap: 20px; }
.offer {
  position: relative; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 24px; align-content: start;
  transition: transform 500ms var(--ease-out), border-color var(--t-base);
}
.offer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; background: radial-gradient(80% 70% at 100% 0%, rgba(255,122,47,.22), transparent 60%); }
.offer.trial::before { background: radial-gradient(80% 70% at 100% 0%, rgba(53,240,194,.18), transparent 60%); }
.offer .free-tag { position: absolute; top: 24px; right: 24px; font-family: var(--f-display); font-weight: 800; font-size: 1rem; letter-spacing: .02em; padding: 8px 14px; border-radius: var(--r-pill); background: var(--grad-ember); color: #160b03; transform: rotate(6deg); }
.offer.trial .free-tag { background: var(--grad-signal); color: #03120d; }
.offer h3 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); max-width: 14ch; }
.offer > p { color: var(--text-2); max-width: 46ch; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.checklist .i { color: var(--signal); width: 20px; height: 20px; margin-top: 3px; }
.offer .best-for { font-size: .9rem; color: var(--text-3); padding-top: 18px; border-top: 1px solid var(--line); }
.offer .best-for b { color: var(--text-2); font-weight: 600; }
.offer .btn { width: fit-content; }

/* Score dial (audit) */
.audit-visual { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--r-md); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
@property --v { syntax: "<number>"; inherits: false; initial-value: 0; }
.dial { --v: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ember) calc(var(--v) * 1%), var(--surface-3) 0); position: relative; transition: --v 1.6s var(--ease-out); }
.in .dial { --v: 62; }
.dial::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.dial span { position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.audit-lines { display: grid; gap: 8px; flex: 1; font-size: .875rem; min-width: 0; }
.audit-lines div { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.audit-lines .bad { color: #ff9b85; } .audit-lines .ok { color: var(--signal); } .audit-lines .mid { color: var(--ember-2); }

/* 7-day timeline (trial) */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 18px; border-radius: var(--r-md); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.day { display: grid; gap: 8px; justify-items: center; text-align: center; }
.day i { width: 100%; height: 44px; border-radius: 8px; background: var(--surface-3); display: block; position: relative; overflow: hidden; }
.day i::after { content: ""; position: absolute; inset: 0; background: var(--grad-signal); transform: scaleY(0); transform-origin: bottom; transition: transform 700ms var(--ease-out); }
.in .week .day i::after { transform: scaleY(var(--h, .4)); }
.day:nth-child(2) i::after { transition-delay: 80ms; } .day:nth-child(3) i::after { transition-delay: 160ms; } .day:nth-child(4) i::after { transition-delay: 240ms; } .day:nth-child(5) i::after { transition-delay: 320ms; } .day:nth-child(6) i::after { transition-delay: 400ms; } .day:nth-child(7) i::after { transition-delay: 480ms; }
.day small { font-family: var(--f-mono); font-size: .65rem; color: var(--text-3); }
.day.key small { color: var(--signal); }
.week-legend { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--text-3); margin-top: 6px; }

/* ---------- 11. Services bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate;
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  transition: border-color var(--t-base), background var(--t-base);
}
.card::after { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t-base);
  display: none;
}
.card:hover { border-color: rgba(255,138,61,.45); }
.card:hover::after { opacity: 1; }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--ember-2); border: 1px solid var(--line); }
.card h3 { font-size: var(--fs-h3); letter-spacing: -.025em; }
.card p { color: var(--text-2); font-size: .98rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .tags li { font-size: .78rem; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); background: rgba(255,255,255,.02); }
.card .best { font-size: .85rem; color: var(--text-3); margin-top: auto; padding-top: 6px; }
.card .best b { color: var(--text-2); font-weight: 600; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--text); }
.card .more .i { transition: transform var(--t-base) var(--ease-out); }
.card:hover .more .i { transform: translateX(4px); }
.card-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Bento visuals */
.viz-browser { margin-top: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; transform: perspective(900px) rotateX(14deg) rotateZ(-2deg) translateY(10px); transform-origin: top; transition: transform 700ms var(--ease-out); box-shadow: 0 30px 60px -30px #000; }
.card:hover .viz-browser { transform: perspective(900px) rotateX(4deg) rotateZ(0) translateY(0); }
.viz-browser .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.viz-browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); display: block; }
.viz-browser .bar span { margin-left: 10px; flex: 1; height: 16px; border-radius: 6px; background: var(--surface-2); font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); padding: 0 8px; line-height: 16px; }
.viz-browser .body { padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.viz-browser .blk { border-radius: 8px; background: var(--surface-2); height: 12px; }
.viz-browser .blk.h { height: 26px; width: 85%; background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.06)); }
.viz-browser .blk.s { width: 70%; }
.viz-browser .blk.btn { width: 40%; height: 22px; background: var(--grad-ember); }
.viz-browser .img { grid-row: 1 / span 5; grid-column: 2; border-radius: 10px; background: radial-gradient(circle at 30% 30%, rgba(255,179,92,.7), rgba(255,122,47,.2) 40%, transparent 70%), var(--surface-2); min-height: 110px; }
.viz-browser .score { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 16px 16px; font-family: var(--f-mono); font-size: .7rem; color: var(--text-3); }
.viz-browser .score b { color: var(--signal); }

.viz-serp { display: grid; gap: 8px; margin-top: 4px; }
.serp-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.serp-row b { font-family: var(--f-mono); color: var(--text-3); width: 18px; }
.serp-row.you { border-color: rgba(53,240,194,.4); color: var(--text); background: rgba(53,240,194,.06); }
.serp-row.you b { color: var(--signal); }
.serp-row .ai { margin-left: auto; font-family: var(--f-mono); font-size: .65rem; padding: 2px 7px; border-radius: 6px; background: rgba(53,240,194,.15); color: var(--signal); white-space: nowrap; }
.ai-answer { padding: 14px; border-radius: 12px; border: 1px dashed rgba(53,240,194,.35); font-size: .82rem; color: var(--text-2); line-height: 1.5; }
.ai-answer b { color: var(--signal); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.ai-answer mark { background: rgba(255,122,47,.2); color: var(--text); padding: 0 4px; border-radius: 4px; }

.viz-map { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background:
  linear-gradient(115deg, transparent 46%, rgba(255,255,255,.06) 46% 49%, transparent 49%),
  linear-gradient(25deg, transparent 60%, rgba(255,255,255,.05) 60% 62%, transparent 62%),
  radial-gradient(circle at 50% 50%, #18202e, #10151f); border: 1px solid var(--line); }
.pin { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -100%); color: var(--ember); filter: drop-shadow(0 8px 12px rgba(255,122,47,.6)); animation: pinBounce 2.4s var(--ease-spring) infinite; }
.pin .i { width: 34px; height: 34px; fill: var(--ember); stroke: #160b03; }
.ripple { position: absolute; left: 50%; top: 52%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid var(--ember); animation: ripple 2.4s var(--ease-out) infinite; }
.ripple.r2 { animation-delay: .8s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(9); opacity: 0; } }
@keyframes pinBounce { 0%,100% { transform: translate(-50%, -100%);} 50% { transform: translate(-50%, -116%);} }
.map-stars { position: absolute; left: 12px; bottom: 10px; font-size: .72rem; font-family: var(--f-mono); color: var(--ember-2); }

.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 4px; }
.viz-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, rgba(255,122,47,.25), var(--ember)); height: var(--h); transform-origin: bottom; transform: scaleY(.2); transition: transform 900ms var(--ease-out); display: block; }
.in .viz-bars i, .in.viz-bars i { transform: scaleY(1); }
.viz-bars i:nth-child(2){ transition-delay: 60ms;} .viz-bars i:nth-child(3){ transition-delay: 120ms;} .viz-bars i:nth-child(4){ transition-delay: 180ms;} .viz-bars i:nth-child(5){ transition-delay: 240ms;} .viz-bars i:nth-child(6){ transition-delay: 300ms;} .viz-bars i:nth-child(7){ transition-delay: 360ms;}

.viz-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 4px; }
.viz-cal i { aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); display: block; }
.viz-cal i.p { background: rgba(255,122,47,.55); } .viz-cal i.r { background: rgba(53,240,194,.5); } .viz-cal i.s { background: rgba(255,179,92,.3); }

.viz-stack { position: relative; height: 130px; margin-top: 4px; perspective: 700px; }
.viz-stack i { position: absolute; width: 50%; height: 100px; border-radius: 12px; border: 1px solid var(--line-2); display: block; transition: transform 700ms var(--ease-out); box-shadow: 0 20px 40px -20px #000; }
.viz-stack i:nth-child(1) { left: 6%; top: 18px; background: linear-gradient(135deg, #ff7a2f, #7a2410); transform: rotateY(18deg) rotateZ(-6deg); }
.viz-stack i:nth-child(2) { left: 25%; top: 8px; background: linear-gradient(135deg, #35f0c2, #0f5e50); transform: rotateY(10deg) rotateZ(2deg); }
.viz-stack i:nth-child(3) { left: 44%; top: 0; background: linear-gradient(135deg, #f3efe6, #9aa3b5); transform: rotateY(4deg) rotateZ(7deg); }
.card:hover .viz-stack i:nth-child(1) { transform: rotateY(0) rotateZ(-12deg) translateX(-10px); }
.card:hover .viz-stack i:nth-child(3) { transform: rotateY(0) rotateZ(12deg) translateX(10px); }

.viz-funnel { display: grid; gap: 6px; margin-top: 4px; }
.viz-funnel div { height: 28px; border-radius: 8px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-family: var(--f-mono); font-size: .7rem; color: #03120d; background: var(--grad-signal); font-weight: 500; }
.viz-funnel div:nth-child(1) { width: 100%; opacity: .55; } .viz-funnel div:nth-child(2) { width: 80%; opacity: .75; } .viz-funnel div:nth-child(3) { width: 58%; }

/* ---------- 12. Report (paper section) ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: var(--ink-2); }
.paper .section-head p { color: var(--ink-2); }
.report-layout { display: grid; gap: 48px; align-items: center; }
.report-points { display: grid; gap: 22px; margin-bottom: 32px; }
.report-points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.report-points .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .85rem; }
.report-points h3 { font-size: 1.2rem; margin-bottom: 4px; letter-spacing: -.02em; }
.report-points p { color: var(--ink-2); }
.report-stage { perspective: 1600px; }
.report-card {
  border-radius: var(--r-xl); background: #fffdf8; border: 1px solid #e4dccb; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 80px 120px -60px rgba(11,15,23,.45), 0 30px 50px -30px rgba(11,15,23,.25);
  transform: rotateX(var(--rx, 24deg)) rotateZ(var(--rz, -4deg)) scale(var(--sc, .92)); transform-origin: center; will-change: transform;
}
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.rc-head h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.rc-head small { font-family: var(--f-mono); color: #5b6472; font-size: .75rem; }
.sample { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #fde9d8; color: #9a3412; white-space: nowrap; }
.rc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.kpi { padding: 16px; border-radius: 16px; background: var(--paper); border: 1px solid #e9e1d0; min-width: 0; }
.kpi small { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #5b6472; }
.kpi strong { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem); letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .8rem; font-weight: 600; color: #047857; }
.kpi svg { width: 100%; height: 36px; margin-top: 8px; }
.kpi svg path { fill: none; stroke: #ea580c; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s var(--ease-out); }
.in .kpi svg path { stroke-dashoffset: 0; }
.rc-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #0b0f17; color: #f3efe6; font-size: .9rem; display: flex; gap: 12px; align-items: flex-start; }
.rc-note .i { color: var(--signal); margin-top: 2px; }

/* ---------- 13. Process ---------- */
.process { display: grid; gap: 16px; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.step .num { font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ember-2); }
.step h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.step p { color: var(--text-2); }
.step .when { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); }
.step.gate { border-color: rgba(53,240,194,.35); background: linear-gradient(180deg, rgba(53,240,194,.06), transparent 50%), var(--surface); }
.step.gate .when { color: var(--signal); }
.process-line { display: none; }

/* ---------- 14. Results (sample) ---------- */
.results { display: grid; gap: 16px; }
.result { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: grid; gap: 16px; position: relative; align-content: start; }
.result .big { font-family: var(--f-display); font-size: clamp(3rem, 2.2rem + 3vw, 4.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.result .who { font-size: .9rem; color: var(--text-3); }
.result p { color: var(--text-2); }
.result .sample { position: absolute; top: 20px; right: 20px; background: rgba(255,122,47,.12); color: var(--ember-2); }

/* ---------- 15. Industries ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 980px; margin-inline: auto; }
.industries li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 500; transition: all var(--t-base) var(--ease-out); }
.industries li:hover { border-color: rgba(255,122,47,.45); color: var(--text); transform: translateY(-2px); }
.industries .i { color: var(--ember-2); width: 18px; height: 18px; }

/* ---------- 16. Comparison ---------- */
.compare-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); overflow-x: auto; background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .975rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.compare thead th.us { color: var(--ember-2); }
.compare td.us { background: rgba(255,122,47,.06); color: var(--text); font-weight: 500; }
.compare td { color: var(--text-2); }
.compare tbody th { font-weight: 600; color: var(--text); width: 24%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.scroll-hint { font-size: .8rem; color: var(--text-3); margin-top: 10px; text-align: right; }

/* ---------- 17. FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-base); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform var(--t-base) var(--ease-out); color: var(--ember-2); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); max-width: 70ch; }

/* ---------- 18. Final CTA + form ---------- */
.cta-panel { position: relative; border-radius: clamp(24px, 4vw, 48px); padding: clamp(24px, 5vw, 72px); overflow: hidden; isolation: isolate; border: 1px solid var(--line-2);
  background: radial-gradient(70% 90% at 0% 100%, rgba(255,122,47,.32), transparent 60%), radial-gradient(60% 70% at 100% 0%, rgba(53,240,194,.14), transparent 60%), var(--surface); display: grid; gap: 40px; }
.cta-ring { position: absolute; z-index: -1; width: 720px; height: 720px; left: -200px; bottom: -420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); transform: perspective(800px) rotateX(70deg); animation: spin 30s linear infinite; }
.cta-ring::before, .cta-ring::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px dashed rgba(255,179,92,.3); }
.cta-ring::after { inset: 140px; border: 1px solid rgba(53,240,194,.2); }
@keyframes spin { to { transform: perspective(800px) rotateX(70deg) rotateZ(360deg); } }
.cta-copy { display: grid; gap: 20px; align-content: start; }
.cta-copy h2 { font-size: var(--fs-h2); }
.cta-copy > p { color: var(--text-2); font-size: var(--fs-lead); }
.contact-lines { display: grid; gap: 6px; margin-top: 8px; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; min-height: 44px; }
.contact-lines .i { color: var(--ember-2); }

.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line-2); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 500; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 500; font-size: .95rem; }
.req { color: var(--ember-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7385; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(53,240,194,.15); }
.field .hint { font-size: .82rem; color: var(--text-3); }
.field .err { font-size: .85rem; color: #ff9b85; display: none; }
.field.invalid input { border-color: #ff9b85; }
.field.invalid .err { display: block; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.seg > div { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; min-height: 46px; border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--text-2); transition: all var(--t-base) var(--ease-out); text-align: center; padding: 6px 8px; line-height: 1.25; }
.seg input:checked + label { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px rgba(255,122,47,.4); }
.seg input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.form .btn { width: 100%; }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-foot { font-size: .82rem; color: var(--text-3); text-align: center; }
.form-success { display: none; text-align: center; padding: 32px 8px; gap: 12px; justify-items: center; }
.form.done > *:not(.form-success) { display: none; }
.form.done .form-success { display: grid; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-signal); color: #03120d; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--text-2); max-width: 36ch; }

/* ---------- 19. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 72px 120px; background: var(--bg-2); overflow: hidden; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { display: grid; gap: 16px; max-width: 360px; grid-column: 1 / -1; }
.footer-brand p { color: var(--text-2); font-size: .95rem; }
.footer h4 { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 2px; }
.footer-col a { color: var(--text-2); font-size: .95rem; display: inline-flex; min-height: 40px; align-items: center; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--text); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.wordmark { display: none; font-family: var(--f-display); font-weight: 800; letter-spacing: -.06em; line-height: .8; font-size: clamp(4rem, 19vw, 17rem); margin-top: 56px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; text-align: center; }

/* ---------- 20. Service page template ---------- */
.svc-hero { padding-top: 150px; padding-bottom: 72px; position: relative; overflow: clip; isolation: isolate; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 20%, rgba(255,122,47,.2), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(53,240,194,.08), transparent 70%); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--text-3); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .i { width: 14px; height: 14px; }
.svc-hero-grid { display: grid; gap: 48px; align-items: center; }
.svc-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.2rem); letter-spacing: -.045em; line-height: .98; }
.svc-hero .lead { font-size: var(--fs-lead); color: var(--text-2); margin-top: 22px; max-width: 58ch; }
.svc-hero .hero-actions { margin-top: 32px; opacity: 1; animation: none; }
.svc-orb { position: relative; aspect-ratio: 1; max-width: 420px; width: 80%; margin-inline: auto; perspective: 1000px; }
.svc-orb .core { position: absolute; inset: 20%; border-radius: 30%; background: linear-gradient(145deg, #ffb35c, #ff7a2f 45%, #5a1a0a); box-shadow: inset -20px -30px 60px rgba(0,0,0,.5), inset 20px 20px 40px rgba(255,255,255,.25), 0 60px 120px -30px rgba(255,122,47,.6); animation: orbSpin 14s linear infinite; transform-style: preserve-3d; display: grid; place-items: center; }
.svc-orb .core .i { width: 36%; height: 36%; color: #160b03; stroke-width: 1.5; }
.svc-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); transform: rotateX(70deg); animation: ringSpin 18s linear infinite; }
.svc-orb .ring.r2 { inset: 8%; border-style: dashed; border-color: rgba(53,240,194,.4); animation-duration: 26s; animation-direction: reverse; }
.svc-orb .ring.r3 { inset: -6%; border-color: rgba(255,179,92,.25); animation-duration: 40s; }
@keyframes orbSpin { 0% { transform: rotateX(14deg) rotateY(-24deg); } 50% { transform: rotateX(-8deg) rotateY(24deg); } 100% { transform: rotateX(14deg) rotateY(-24deg); } }
@keyframes ringSpin { from { transform: rotateX(70deg) rotateZ(0);} to { transform: rotateX(70deg) rotateZ(360deg);} }
.svc-facts { display: grid; gap: 12px; margin-top: 40px; }
.svc-facts div { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.svc-facts small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 6px; }
.svc-facts p { color: var(--text); font-weight: 500; }
.incl-grid { display: grid; gap: 14px; }
.incl { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; transition: border-color var(--t-base), transform var(--t-base) var(--ease-out); }
.incl:hover { border-color: var(--line-2); transform: translateY(-3px); }
.incl .i { color: var(--signal); }
.incl h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.incl p { color: var(--text-2); font-size: .95rem; }
.problem { display: grid; gap: 12px; }
.problem li { padding: 20px 24px; border-radius: var(--r-md); border-left: 3px solid var(--ember); background: var(--surface); color: var(--text-2); font-size: 1.05rem; }
.problem li b { color: var(--text); font-weight: 600; }
.two-col { display: grid; gap: 40px; }
.plans { display: grid; gap: 16px; }
.plan { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: start; position: relative; }
.plan.pop { border-color: rgba(255,122,47,.5); background: linear-gradient(180deg, rgba(255,122,47,.08), transparent 40%), var(--surface); }
.plan .pop-tag { position: absolute; top: -12px; left: 32px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--grad-ember); color: #160b03; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; }
.plan .price small { font-size: .9rem; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.plan > p { color: var(--text-2); }
.plan .btn { width: 100%; }
.related { display: grid; gap: 12px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-base); min-height: 64px; font-weight: 500; }
.related a:hover { border-color: var(--line-2); }
.related .i { color: var(--ember-2); }
.related a .go { margin-left: auto; color: var(--text-3); }

/* ---------- 21. Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 22. Responsive ---------- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-facts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .c-web, .bento .c-seo { grid-column: span 2; }
  .offers { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .results { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
  .calc { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .calc > header { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .related { grid-template-columns: repeat(3, 1fr); }
  .action-bar { display: none; }
  .footer { padding-bottom: 56px; }
}

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .chips { display: block; }
  .scroll-cue { display: flex; }
  .hero-content { max-width: 680px; }

  .ai-layout { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
  .task-tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .task-tab[aria-selected="true"] small { display: block; }
  .task-tab { padding: 14px 18px 14px 14px; }

  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .c-web { grid-column: span 7; }
  .bento .c-seo { grid-column: span 5; }
  .bento .c-local, .bento .c-ads, .bento .c-social { grid-column: span 4; }
  .bento .c-creative, .bento .c-leads { grid-column: span 6; }

  .report-layout { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .process { grid-template-columns: repeat(4, 1fr); padding-top: 32px; }
  .process-line { display: block; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .process-line i { display: block; height: 100%; width: 100%; background: var(--grad-ember); transform: scaleX(var(--p, 0)); transform-origin: left; }
  .cta-panel { grid-template-columns: 1fr 1fr; align-items: start; }
  .svc-hero-grid { grid-template-columns: 1.3fr 1fr; }
  .incl-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
  .scroll-hint { display: none; }
}

@media (min-width: 1440px) {
  :root { --container: 1320px; }
}

/* Touch devices: no hover-tilt, keep 3D gentle */
@media (hover: none) {
  .card::after { display: none; }
  .device { transform: rotateX(4deg) rotateY(-4deg); }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero h1 .line > span, .hero-lead, .hero-actions, .hero-proof, .chip { transform: none !important; opacity: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .grain { display: none; }
  .report-card { transform: none !important; }
}

/* =========================================================
   24. Generated pages: hubs, industries, Texas cities
   ========================================================= */
.hero-actions.static { opacity: 1; animation: none; margin-top: 32px; }
.svc-hero .hero-actions.static { margin-top: 32px; }
.center-link { margin-top: 28px; text-align: center; color: var(--text-2); }
.sub-h { font-size: 1.05rem; margin: 28px 0 12px; letter-spacing: -.01em; }

.hub-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.hub-grid .card { min-height: 0; }

/* Regions & city link lists */
.regions { display: grid; gap: 16px; }
.region { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.region h3 { font-size: 1.3rem; }
.region p { color: var(--text-2); font-size: .95rem; }
.city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text-2); font-size: .92rem; transition: all var(--t-fast); }
.city-links a:hover { color: var(--text); border-color: rgba(255,122,47,.5); background: rgba(255,122,47,.06); }
.city-links.wide a { font-size: .95rem; }
.region-box { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px; align-content: start; }
.region-box p { color: var(--text-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li, .pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .92rem; }
.pills li:has(a) { padding: 0; border: 0; background: none; }
.pills a:hover { color: var(--text); border-color: rgba(255,122,47,.5); }
.pills .i { color: var(--ember-2); }

.local-copy { display: grid; gap: 18px; color: var(--text-2); font-size: 1.08rem; max-width: 62ch; }
.local-copy p:first-child { color: var(--text); }

/* Bilingual band */
.es-wrap { padding-block: clamp(40px, 5vw, 72px); }
.es-band { display: flex; gap: 22px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid rgba(53,240,194,.3); background: linear-gradient(120deg, rgba(53,240,194,.08), rgba(255,122,47,.06)), var(--surface); }
.es-band h3 { font-size: 1.25rem; margin-bottom: 6px; }
.es-band p { color: var(--text-2); font-size: .95rem; }
.es-tag { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--grad-signal); color: #03120d; font-family: var(--f-mono); font-weight: 500; font-size: .8rem; letter-spacing: .06em; transform: rotate(-6deg); }

/* Industry AI cards */
.ai-grid { display: grid; gap: 16px; }
.ai-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; }
.ai-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.ai-card h3 .i { color: var(--signal); }
.flow-mini { display: grid; gap: 10px; }
.flow-mini > div { padding: 14px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.flow-mini > div.res { border-color: rgba(255,122,47,.35); background: rgba(255,122,47,.05); }
.flow-mini small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 4px; }
.flow-mini p { font-size: .95rem; }
.flow-mini .arrow-mini { padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--signal); transform: rotate(90deg); }

/* Keyword chips + channels */
.kw { display: flex; flex-wrap: wrap; gap: 8px; }
.kw li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-family: var(--f-mono); font-size: .82rem; color: var(--text-2); }
.kw .i { color: var(--signal); }
.chans { display: grid; gap: 12px; align-content: center; }
.chan { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-base), transform var(--t-base) var(--ease-out); }
.chan:hover { border-color: rgba(255,122,47,.45); transform: translateX(4px); }
.chan h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chan p { color: var(--text-2); font-size: .92rem; }

/* Package panel */
.package { display: grid; gap: 32px; padding: clamp(26px, 4vw, 56px); border-radius: var(--r-xl); border: 1px solid rgba(255,122,47,.35); background: radial-gradient(80% 90% at 100% 0%, rgba(255,122,47,.18), transparent 60%), var(--surface); }
.package h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin: 18px 0 14px; }
.package > div > p { color: var(--text-2); max-width: 46ch; }
.package .checklist { align-content: center; }
.package .checklist li { color: var(--text); font-size: 1.05rem; }

/* Footer contact */
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); min-height: 36px; }
.footer-contact .i { color: var(--ember-2); }

/* ---------- Homepage: website-building spotlight ---------- */
.web-section { background: radial-gradient(60% 50% at 0% 30%, rgba(255,122,47,.10), transparent 70%), var(--bg); overflow: clip; }
.web-split { display: grid; gap: 56px; align-items: center; }
.web-list { display: grid; gap: 12px; margin: 28px 0 32px; }
.web-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.web-list li b { color: var(--text); font-weight: 600; }
.web-list .i { color: var(--signal); width: 20px; height: 20px; margin-top: 3px; }
.devices { position: relative; perspective: 1600px; min-height: 380px; }
.dev-desktop { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; box-shadow: 0 80px 120px -50px #000, 0 30px 80px -50px rgba(255,122,47,.45);
  transform: rotateY(-16deg) rotateX(8deg); transform-origin: left center; transition: transform 900ms var(--ease-out); }
.devices:hover .dev-desktop { transform: rotateY(-6deg) rotateX(3deg); }
.dev-desktop .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.dev-desktop .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: block; }
.dev-desktop .bar span { margin-left: 10px; flex: 1; max-width: 260px; height: 20px; border-radius: 6px; background: var(--surface-2); font-family: var(--f-mono); font-size: .68rem; color: var(--text-3); padding: 0 10px; line-height: 20px; }
.dev-screen { padding: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; min-height: 300px; background: radial-gradient(60% 80% at 90% 20%, rgba(255,122,47,.25), transparent 60%); }
.dev-screen .hl { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, .9rem + 1vw, 1.7rem); line-height: 1.05; letter-spacing: -.03em; }
.dev-screen .hl em { font-family: var(--f-serif); font-weight: 400; color: var(--ember-2); }
.dev-screen .ln { height: 10px; border-radius: 6px; background: var(--surface-3); margin-top: 10px; }
.dev-screen .ln.s { width: 70%; }
.dev-screen .cta-row { display: flex; gap: 8px; margin-top: 18px; }
.dev-screen .cta-row span { height: 30px; border-radius: 99px; padding: 0 14px; display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; }
.dev-screen .cta-row .p { background: var(--grad-ember); color: #160b03; }
.dev-screen .cta-row .g { border: 1px solid var(--line-2); color: var(--text-2); }
.dev-screen .img { border-radius: 14px; background: radial-gradient(circle at 40% 35%, #ffd9a8, #ff7a2f 35%, #5a1a0a 70%); min-height: 180px; box-shadow: inset 0 -40px 60px rgba(0,0,0,.35); }
.dev-screen .badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.dev-screen .badges span { font-family: var(--f-mono); font-size: .66rem; padding: 5px 9px; border-radius: 6px; background: rgba(53,240,194,.1); color: var(--signal); }
.dev-phone { position: absolute; right: -2%; bottom: -30px; width: 34%; min-width: 150px; aspect-ratio: 9 / 18.5; border-radius: 28px; border: 6px solid #1d2432; background: var(--bg); overflow: hidden;
  box-shadow: 0 60px 90px -30px #000, 0 20px 50px -20px rgba(53,240,194,.35); transform: rotateY(-22deg) rotateX(6deg) translateZ(80px); transition: transform 900ms var(--ease-out); }
.devices:hover .dev-phone { transform: rotateY(-10deg) rotateX(2deg) translateZ(120px) translateY(-10px); }
.dev-phone .scr { padding: 14px 12px; display: grid; gap: 8px; height: 100%; background: radial-gradient(80% 50% at 50% 0%, rgba(255,122,47,.3), transparent 70%); }
.dev-phone .notch { width: 40%; height: 14px; border-radius: 99px; background: #1d2432; margin: -8px auto 6px; }
.dev-phone .hl { font-family: var(--f-display); font-weight: 700; font-size: .95rem; line-height: 1.05; }
.dev-phone .chat { margin-top: auto; display: grid; gap: 6px; }
.dev-phone .chat span { font-size: .62rem; padding: 7px 9px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); width: 85%; }
.dev-phone .chat span.me { background: rgba(53,240,194,.15); color: var(--signal-2); margin-left: auto; }
.dev-phone .call { height: 30px; border-radius: 99px; background: var(--grad-ember); color: #160b03; font-size: .66rem; font-weight: 700; display: grid; place-items: center; }
.web-plans { display: grid; gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.web-plan { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; transition: border-color var(--t-base), transform var(--t-base) var(--ease-out); position: relative; }
.web-plan:hover { border-color: rgba(255,122,47,.45); transform: translateY(-3px); }
.web-plan h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.web-plan h3 .i { color: var(--ember-2); }
.web-plan p { color: var(--text-2); font-size: .92rem; }

/* Homepage Texas section */
.tx-section { background: var(--bg-2); }
.tx-head { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.tx-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.tx-stats div strong { display: block; font-family: var(--f-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.tx-stats div span { color: var(--text-3); font-size: .9rem; }
.industries a { display: inline-flex; align-items: center; gap: 10px; color: inherit; }

@media (min-width: 640px) {
  .flow-mini { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .flow-mini .arrow-mini { transform: none; }
  .web-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .package { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .web-split { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .web-plans { grid-template-columns: repeat(4, 1fr); }
  .tx-head { grid-template-columns: 1.4fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-links a, .nav-links button { padding: 10px 10px; }
}
@media (max-width: 639px) {
  .es-band { flex-direction: column; align-items: flex-start; }
  .devices { min-height: 300px; margin-right: 12%; }
  .dev-screen { grid-template-columns: 1fr; min-height: 240px; }
  .dev-screen .img { display: none; }
  .dev-phone { width: 42%; right: -14%; bottom: -24px; }
}

/* ---------- 25. AI services: grouped mega menu, AI cards ---------- */
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; align-content: start; }
.mega-col { display: grid; gap: 2px; align-content: start; }
.mega-col h4 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; padding: 8px 12px 6px; }
.mega-col.ai h4 { color: var(--signal); }
.mega-col.free h4 { color: var(--ember-2); }
.nav-links .mega-col a { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); font-size: .92rem; }
.nav-links .mega-col a:hover { background: rgba(255,255,255,.05); }
.mega-col a .i { width: 18px; height: 18px; margin-top: 2px; color: var(--ember-2); }
.mega-col.ai a .i { color: var(--signal); }
.mega-col a strong { display: block; font-weight: 600; line-height: 1.3; }
.mega-col a small { display: block; color: var(--text-3); font-size: .8rem; line-height: 1.35; }
.card-ico.ai { color: var(--signal); background: rgba(53,240,194,.08); border-color: rgba(53,240,194,.25); }
.free-chip { background: rgba(53,240,194,.12) !important; color: var(--signal) !important; }
.ai-pills .i { color: var(--signal); }
.footer-contact.free a .i { color: var(--signal); }
.ai-strip { margin-top: clamp(40px, 5vw, 64px); }
.ai-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.ai-strip-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.free3 { margin-top: 20px; display: grid; gap: 18px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); border: 1px dashed rgba(53,240,194,.4); background: linear-gradient(120deg, rgba(53,240,194,.07), transparent 60%), var(--surface); }
.free3 h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.free3 p { color: var(--text-2); }
@media (min-width: 768px) { .free3 { grid-template-columns: auto 1fr auto; } }

/* ---------- 26. Language switch (EN / ES) ---------- */
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(10,14,22,.6); backdrop-filter: blur(10px); font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; color: var(--text-2); transition: color var(--t-fast), border-color var(--t-fast); }
.lang-switch:hover { color: var(--text); border-color: rgba(53,240,194,.5); }
.es-band .link-arrow { display: inline-flex; color: var(--signal); }

/* Long button labels (e.g. Spanish) wrap on small phones instead of overflowing */
@media (max-width: 639px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; max-width: 100%; }
}

/* ---------- 27. Per-page 3D art: AI renders + code-built scenes ---------- */
.hero-art { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1; perspective: 1000px; }
.hero-art img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); animation: artFloat 7s ease-in-out infinite; }
.hero-art-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,47,.35), rgba(53,240,194,.12) 55%, transparent 70%); filter: blur(30px); animation: glowPulse 7s ease-in-out infinite; }
@keyframes artFloat { 0%,100% { transform: translateY(0) rotateY(-6deg) rotateX(3deg); } 50% { transform: translateY(-16px) rotateY(6deg) rotateX(-2deg); } }
@keyframes glowPulse { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.card-thumb { width: 96px; height: 96px; object-fit: contain; margin: -10px 0 -6px -8px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); transition: transform 500ms var(--ease-out); }
.card:hover .card-thumb { transform: translateY(-6px) rotate(-4deg) scale(1.06); }

/* Hue themes for code-built scenes */
.svc-orb { --o1: #ffb35c; --o2: #ff7a2f; --o3: #5a1a0a; --glow: rgba(255,122,47,.6); }
.svc-orb.hue-signal { --o1: #b5fbe9; --o2: #35f0c2; --o3: #0b4a3d; --glow: rgba(53,240,194,.5); }
.svc-orb.hue-gold { --o1: #ffe3a3; --o2: #f5b942; --o3: #5c3a06; --glow: rgba(245,185,66,.55); }
.svc-orb.hue-coral { --o1: #ffc2b0; --o2: #ff6b57; --o3: #5a1414; --glow: rgba(255,107,87,.55); }
.svc-orb .core { background: linear-gradient(145deg, var(--o1), var(--o2) 45%, var(--o3)); box-shadow: inset -20px -30px 60px rgba(0,0,0,.5), inset 20px 20px 40px rgba(255,255,255,.25), 0 60px 120px -30px var(--glow); }
.svc-orb.hue-signal .core .i { color: #03231b; }

/* sphere: glossy ball with orbiting moons */
.svc-orb .core.sphere { border-radius: 50%; inset: 22%; animation: sphereSpin 10s ease-in-out infinite; }
@keyframes sphereSpin { 0%,100% { transform: rotateY(-18deg) translateY(0); } 50% { transform: rotateY(18deg) translateY(-10px); } }
.svc-orb .moon { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--o2) 55%, var(--o3)); box-shadow: 0 0 24px var(--glow); top: 50%; left: 50%; margin: -4.5%; animation: orbit 9s linear infinite; }
.svc-orb .moon.m2 { width: 6%; margin: -3%; animation-duration: 13s; animation-direction: reverse; background: radial-gradient(circle at 35% 30%, #fff, #35f0c2 55%, #0b4a3d); }
@keyframes orbit { from { transform: rotate(0) translateX(190%) rotate(0); } to { transform: rotate(360deg) translateX(190%) rotate(-360deg); } }

/* pin: 3D map pin over a glowing disc, with the city label */
.svc-orb.v-pin { perspective: 900px; }
.pin3d { position: absolute; left: 50%; top: 12%; width: 44%; transform: translateX(-50%); display: grid; justify-items: center; animation: pinFloat 5s ease-in-out infinite; z-index: 2; }
.pin-head { width: 100%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; background: linear-gradient(145deg, var(--o1), var(--o2) 50%, var(--o3)); box-shadow: inset -14px -18px 40px rgba(0,0,0,.45), inset 14px 14px 30px rgba(255,255,255,.3), 0 40px 70px -20px var(--glow); }
.pin-head .i { transform: rotate(45deg); width: 40%; height: 40%; color: #160b03; stroke-width: 1.6; }
.pin-tip { width: 10%; aspect-ratio: 1; margin-top: 26%; border-radius: 50%; background: var(--o2); box-shadow: 0 0 20px var(--glow); }
@keyframes pinFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }
.pin-disc { position: absolute; left: 18%; right: 18%; bottom: 14%; aspect-ratio: 1; border-radius: 50%; transform: rotateX(72deg); background: radial-gradient(circle, var(--glow), transparent 65%); border: 1px solid rgba(255,255,255,.15); animation: discPulse 5s ease-in-out infinite; }
@keyframes discPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.orb-label { position: absolute; z-index: 3; left: 50%; bottom: 8%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #121823; border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 600; font-size: 1rem; white-space: nowrap; box-shadow: var(--shadow-2); }
.orb-label .i { color: var(--o2); }

/* stack: floating glass cards */
.stack3d { position: absolute; inset: 22%; transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(-35deg); animation: stackTilt 8s ease-in-out infinite; }
.stack3d i { position: absolute; inset: 0; border-radius: 22%; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); display: grid; place-items: center; }
.stack3d i:nth-child(1) { transform: translateZ(0); opacity: .5; }
.stack3d i:nth-child(2) { transform: translateZ(40px); opacity: .75; }
.stack3d i.top { transform: translateZ(80px); background: linear-gradient(145deg, var(--o1), var(--o2) 55%, var(--o3)); box-shadow: 0 40px 80px -20px var(--glow); }
.stack3d i.top .i { width: 38%; height: 38%; color: #160b03; transform: rotateZ(35deg); }
@keyframes stackTilt { 0%,100% { transform: rotateX(55deg) rotateZ(-35deg) translateZ(0); } 50% { transform: rotateX(50deg) rotateZ(-28deg) translateZ(14px); } }

/* Footer headings (h2 for correct heading order, styled small) */
.footer .fh { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 12px; line-height: 1.4; }
.legal-links a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--text); }

/* Legal pages */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.4rem; margin-top: 22px; letter-spacing: -.02em; }
.prose p { color: var(--text-2); }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { margin-top: 14px; font-family: var(--f-mono); font-size: .8rem; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) { .hero-art img, .hero-art-glow, .pin3d, .stack3d, .svc-orb .moon, .svc-orb .core.sphere { animation: none !important; } }

/* ---------- 28. Form backend states, prices ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: -4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,155,133,.1); border: 1px solid rgba(255,155,133,.4); color: #ffc4b8; font-size: .9rem; }
.form-error a { color: #fff; text-decoration: underline; }
.price .from { font-size: .45em; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-right: 6px; vertical-align: middle; }
.price-note { margin-top: -10px; font-size: .85rem; color: var(--ember-2); }
.price-quote { font-size: 1.6rem; }
.from-price { color: var(--text-2); font-size: .95rem; }
.from-price b { color: var(--ember-2); font-family: var(--f-display); font-size: 1.15rem; }

/* ---------- 29. Results: first 90 days ---------- */
.timeline90 { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.result.r90 { text-align: center; justify-items: center; padding-top: 12px; }
.result.r90 .svc-orb { width: 62%; max-width: 210px; margin: 0 auto 4px; }
.result.r90 .orb-label { display: none; }
.result.r90 .when { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-2); }
.result.r90 h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.result.r90 p { max-width: 34ch; }
.promises { display: grid; gap: 12px; margin-top: 28px; }
.promises li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .95rem; }
.promises li b { color: var(--text); }
.promises .i { color: var(--signal); width: 20px; height: 20px; margin-top: 2px; }
@media (min-width: 768px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promises { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 30. Logo system ---------- */
.logo-full { display: block; height: 30px; width: auto; }
.footer-brand .logo-full { height: 34px; }
.sheet-top .logo-full { height: 28px; }
.wordmark { line-height: 0; }
.wordmark img { width: 100%; height: auto; opacity: .1; -webkit-mask-image: linear-gradient(#000 20%, transparent 95%); mask-image: linear-gradient(#000 20%, transparent 95%); }
@media (min-width: 1024px) { .nav .logo-full { height: 34px; } }

/* ---------- Hand-set labels (replaces mono uppercase tracking used across templates) ---------- */
.badge, .sample, .step .when, .compare thead th, .footer h4, .footer .fh, .svc-facts small,
.plan .pop-tag, .mega-col h4, .result.r90 .when, .kpi small {
  font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 600;
}
.badge { font-size: .9rem; }
.sample, .plan .pop-tag { font-size: .78rem; }
.step .when, .result.r90 .when, .svc-facts small, .kpi small, .compare thead th { font-size: .85rem; }
.footer h4, .footer .fh, .mega-col h4 { font-size: .85rem; color: var(--text-2); }

.scroll-cue { display: none !important; }
