/* ==========================================================
   Webora — blueprint / architectural style
   ========================================================== */
:root {
  /* color tokens */
  /* dark theme, matching the hero */
  color-scheme: dark;
  --paper: #050a18;        /* page background (deep navy) */
  --paper-2: #0b1328;      /* raised surface / hover */
  --ink: #eef2ff;          /* main text */
  --ink-muted: #9aa6c4;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);
  --accent: #5b85ff;       /* electric blue for text, lines, icons */
  --accent-strong: #2f5bf0;/* solid fills with white text */
  --accent-ink: #ffffff;
  --accent-deep: #2349c9;
  --error: #ff8a7a;
  --success: #4ade80;

  /* type */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Aptos ships with Windows 11 / Microsoft 365; other devices use the closest fallback */
  --font-nav: "Aptos", "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* spacing (4/8 scale) */
  --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;

  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* subtle grain */
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 3px 3px;
}
/* the hero's vertical grid lines continue down the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), rgba(255,255,255,.045) calc(100% / 6 - 1px) calc(100% / 6));
}
/* soft glow that follows the cursor (positioned by script.js) */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,91,240,.13), transparent 62%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  opacity: 0; transition: opacity .5s;
}
.cursor-glow.is-on { opacity: 1; }
select option { background: var(--paper-2); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.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;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4);
}
.skip-link:focus { top: var(--s-4); }

/* ---------- type ---------- */
.label {
  font: 500 13px/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.display, .headline, .plan__name, .step h3, .work h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .92; }
.headline { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: .98; }

/* ---------- logo crop (source image is a square with whitespace) ---------- */
.logo-crop {
  display: block;
  width: 100px;
  overflow: hidden;
  background: #fff; border-radius: 6px;  /* only shown if the cut-out logo isn't available */
}
.logo-crop img {
  width: 123.5%;
  max-width: none;
  height: auto;
  margin-left: -12.3%;
  margin-top: -28%;
}
.logo-crop { aspect-ratio: 1015 / 600; }
.logo-crop--lg { width: min(360px, 70vw); aspect-ratio: 1015 / 590; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: stretch; justify-content: space-between;
  height: var(--header-h);
  background: rgba(5,10,24,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; padding: 0 var(--gutter); }
.main-nav { display: flex; }
.main-nav a {
  position: relative;
  display: flex; align-items: flex-start;
  min-width: 150px;
  padding: var(--s-4) var(--s-4) 0;
  border-left: 1px solid var(--line);
  font: 500 14px/1.3 var(--font-nav);
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.main-nav a::after {               /* small corner tick like the reference */
  content: ""; position: absolute; right: 8px; bottom: 8px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  opacity: .5;
}
.main-nav a:hover { background: var(--paper-2); }
.main-nav .nav-cta { color: var(--accent); }
.main-nav .nav-cta span { position: absolute; right: 12px; bottom: 10px; }
.main-nav .nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  width: var(--header-h); border: 0; border-left: 1px solid var(--line);
  background: transparent; cursor: pointer; color: var(--ink);
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: 0 auto;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- side tab ---------- */
.side-tab {
  position: fixed; right: 0; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  width: 52px;
  background: var(--paper); border: 1px solid var(--line); border-right: 0;
  text-decoration: none;
}
.side-tab__mark {
  width: 100%; padding: var(--s-3) 0; text-align: center;
  background: var(--accent-strong); color: var(--accent-ink);
  font: 700 18px/1 var(--font-display);
}
.side-tab__text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: var(--s-4) 0;
  font: 500 13px/1 var(--font-body);
}
.side-tab:hover .side-tab__text { color: var(--accent); }
@media (min-width: 641px) {
  body { padding-right: 52px; }       /* keep content clear of the side tab */
}

/* ---------- hero (dark, animated logo) ---------- */
.accent-fill { fill: var(--accent); }
.hero {
  --hero-bg: #050a18;
  --rx: 0deg; --ry: 0deg; --mx: 0px; --my: 0px; --sp: 0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-6);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  background: var(--hero-bg); color: #fff;
}
@media (min-width: 641px) { .hero { margin-right: -52px; padding-right: calc(var(--gutter) + 52px); } }
.hero__grid { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; z-index: -1; }
.hero__grid span { width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.1) 15%, rgba(255,255,255,.1) 85%, transparent); transform-origin: top; }
.hero__glow {
  position: absolute; left: 50%; top: 46%; z-index: -1;
  width: min(1100px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(31,79,224,.38), rgba(31,79,224,.08) 40%, transparent 65%);
  pointer-events: none;
}

.hero__stage {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center; padding-bottom: 12vh;
  perspective: 1200px; pointer-events: none;
}
.hero__tilt {
  width: min(72vw, 1040px);
  transform:
    translate3d(var(--mx), calc(var(--my) + var(--sp) * -80px), 0)
    rotateX(var(--rx)) rotateY(var(--ry))
    scale(calc(1 + var(--sp) * .35));
  opacity: calc(1 - var(--sp) * .9);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__float { position: relative; animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%, 100% { transform: translateY(-12px); } 50% { transform: translateY(12px); } }

/* the three website "buildings" */
.hero__city { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 14px rgba(91,133,255,.35)); }
.hero__city g { fill: none; stroke: #c9d6ff; stroke-width: 1.4; stroke-linejoin: round; }
.hero__city .city__body { fill: rgba(11,19,40,.85); }
.hero__city .city__win { fill: rgba(47,91,240,.14); stroke: #8fa9ff; }
.hero__city .city__cta { fill: rgba(47,91,240,.55); stroke: #8fa9ff; }
.hero__city .city__dot { fill: #5b85ff; stroke: none; filter: drop-shadow(0 0 8px #5b85ff); animation: blink 2.4s ease-in-out infinite; }
.hero__city .city__b--right .city__dot { animation-delay: -1.2s; }
.hero__city .city__ground { stroke: rgba(201,214,255,.55); }
.hero__city .city__tree { stroke-width: 1; stroke: rgba(201,214,255,.4); }
.hero__city .city__type { stroke: #eef2ff; }
.hero__city .city__scan { stroke: none; animation: scan 4.5s 2.4s linear infinite; translate: 0 0; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes scan { from { translate: 0 0; } to { translate: 0 400px; } }

/* each building floats on its own rhythm and moves at its own depth with the mouse */
.hero__city .city__b { transition: transform .3s linear; }
.hero__city .city__b--left  { transform: translate(calc(var(--mx) * -.6), calc(var(--my) * -.3)); animation: bob 6s ease-in-out infinite; }
.hero__city .city__b--right { transform: translate(calc(var(--mx) * -.4), calc(var(--my) * -.2)); animation: bob 7s -2s ease-in-out infinite; }
.hero__city .city__b--tower { transform: translate(calc(var(--mx) * .5), calc(var(--my) * .3)); animation: bob 8s -4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* lines draw themselves in (pathLength=1 is set by script.js) */
.hero__city [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out), fill-opacity 1s 1.4s; fill-opacity: 0; }
.hero.is-ready .hero__city [pathLength] { stroke-dashoffset: 0; fill-opacity: 1; }
.hero__city .city__b--right [pathLength] { transition-delay: .25s, 1.6s; }
.hero__city .city__b--tower [pathLength] { transition-delay: .5s, 1.8s; }

.hero__stats { align-self: center; display: grid; gap: var(--s-6); margin: 0; }
.hero__stats--right { justify-self: end; text-align: right; max-width: 240px; }
.hero__stats b {
  display: block; font: 700 clamp(2rem, 3.4vw, 3rem)/1 var(--font-display); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.hero__stats--right b { font-size: 1.05rem; letter-spacing: 0; }
.hero__stats span { font: 400 13px/1.4 var(--font-body); color: rgba(255,255,255,.62); }
.hero__quote { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); padding-bottom: var(--s-2); }

.hero__foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6);
  padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.12);
}
.hero__title { display: grid; gap: var(--s-3); max-width: 640px; }
.hero__wordmark { width: clamp(220px, 34vw, 520px); height: auto; display: block; }
.hero__tagline { font: 500 13px/1 var(--font-mono); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__tagline i { font-style: normal; color: var(--accent); margin: 0 .5em; }
.hero__h1 { font: 400 clamp(1rem, 1.3vw, 1.2rem)/1.5 var(--font-body); color: rgba(255,255,255,.75); max-width: 44ch; }
.hero__next {
  display: grid; justify-items: end; gap: 2px; text-decoration: none; color: #fff; min-height: 44px;
}
.hero__next span:first-child { font-size: 13px; color: rgba(255,255,255,.62); }
.hero__next b { font: 700 clamp(1.4rem, 2.4vw, 2rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.03em; }
.hero__arrow { display: inline-block; color: var(--accent); font-size: 1.4rem; animation: heroBob 1.8s ease-in-out infinite; }
.hero__next:hover b { color: #8fa9ff; }
@keyframes heroBob { 50% { transform: translateY(5px); } }

/* fallback when the logo can't be cut out (e.g. opened from disk) */
.hero.no-key .hero__wordmark { display: none; }

/* intro sequence */
.hero .hero__grid span, .hero .hero__tilt, .hero .hero__stats > *, .hero .hero__title > *, .hero .hero__next { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), clip-path 1.2s var(--ease-out), filter 1.2s var(--ease-out); }
.hero:not(.is-ready) .hero__grid span { transform: scaleY(0); }
.hero:not(.is-ready) .hero__tilt { opacity: 0; transform: scale(.8); filter: blur(18px); }
.hero:not(.is-ready) .hero__stats > *, .hero:not(.is-ready) .hero__title > *, .hero:not(.is-ready) .hero__next { opacity: 0; transform: translateY(18px); }
.hero:not(.is-ready) .hero__wordmark { clip-path: inset(0 100% 0 0); opacity: 1; transform: none; }
.hero__wordmark { clip-path: inset(0 0 0 0); }
.hero.is-ready .hero__tilt { transition: opacity 1.2s var(--ease-out), filter 1.4s var(--ease-out), transform .25s linear; }
.hero__grid span:nth-child(2) { transition-delay: .08s; } .hero__grid span:nth-child(3) { transition-delay: .16s; }
.hero__grid span:nth-child(4) { transition-delay: .24s; } .hero__grid span:nth-child(5) { transition-delay: .32s; }
.hero__stats > :nth-child(1) { transition-delay: .5s; } .hero__stats > :nth-child(2) { transition-delay: .6s; }
.hero__stats > :nth-child(3) { transition-delay: .7s; } .hero__stats > :nth-child(4) { transition-delay: .8s; }
.hero__title > :nth-child(1) { transition-delay: .35s; } .hero__title > :nth-child(2) { transition-delay: .7s; }
.hero__title > :nth-child(3) { transition-delay: .85s; } .hero__next { transition-delay: 1s; }

/* header while over the dark hero */
.brand__dark { display: none; width: 100px; height: auto; }
.site-header { transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out); }
.site-header.on-dark:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.has-key .logo-crop { display: none; }
.site-header.has-key .brand__dark { display: block; }
.brand__dark { transition: scale .3s var(--ease-out); }
.brand:hover .brand__dark { scale: 1.05; }
.main-nav a:hover { color: var(--accent); }

.hero-after { background: var(--paper); }
.link-cta {
  font: 500 14px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  display: inline-flex; gap: var(--s-2); align-items: center; min-height: 44px;
}
.link-cta:hover { text-decoration: underline; text-underline-offset: 4px; }

.ticker {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker__track span {
  font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); padding: 0 var(--s-6); display: inline-flex; align-items: center; gap: var(--s-3);
}
.ticker__track span::before {
  content: ""; width: 9px; height: 9px; border: 1px solid var(--accent); transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.statement__art {
  grid-row: span 2; display: flex; align-items: flex-end; justify-content: center;
  padding: var(--s-7) var(--s-6) 0; border-right: 1px solid var(--line); color: var(--ink);
}
.statement__art svg { width: min(100%, 520px); }
.statement__body {
  padding: var(--s-9) var(--gutter) var(--s-8);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6);
}
.statement__body .headline { max-width: 18ch; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.regions { border-top: 1px solid var(--line); align-self: end; }
.regions .label { padding: var(--s-4) var(--gutter); border-bottom: 1px solid var(--line); }
.regions ul { display: grid; grid-template-columns: repeat(3, 1fr); }
.regions li {
  padding: var(--s-5) var(--gutter);
  font: 600 1.05rem/1.2 var(--font-display); letter-spacing: -.01em; text-transform: uppercase;
  border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.regions li:nth-child(3n) { border-right: 0; }
.regions li:nth-last-child(-n+3) { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 0 0 0 var(--s-5);
  font: 500 14px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s,
              translate .35s var(--ease-out), scale .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:hover { scale: 1.03; }
.btn__icon {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  width: 52px; margin-left: var(--s-5); border-left: 1px solid currentColor;
  transition: transform .2s var(--ease-out);
}
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn--solid .btn__icon { border-left-color: rgba(255,255,255,.4); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 12px 40px -8px rgba(47,91,240,.6); }
.btn--block { width: 100%; justify-content: space-between; }
.btn:active { transform: scale(.99); }

/* ---------- section heads ---------- */
section { position: relative; }
.section-head {
  padding: var(--s-9) var(--gutter) var(--s-7);
  display: grid; gap: var(--s-4); max-width: 1100px;
}
.section-head .label { color: var(--accent); }
.section-head__sub { color: var(--ink-muted); font-size: 1.0625rem; max-width: 56ch; }
.section-head--row { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; }
.section-head--row > div { display: grid; gap: var(--s-4); }

/* ---------- process ---------- */
.process { border-bottom: 1px solid var(--line); }
.process__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.step { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-bottom: var(--s-7); }
.step:last-child { border-right: 0; }
.step__top {
  display: flex; justify-content: space-between;
  padding: var(--s-5) var(--s-5); border-bottom: 1px dashed var(--line);
}
.step__num { font: 400 13px/1.3 var(--font-mono); color: var(--ink-muted); }
.step__art {
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-6) var(--s-5); color: var(--ink-muted);
  border-bottom: 1px dashed var(--line); aspect-ratio: 5 / 4;
}
.step__art svg { width: 62%; transition: transform .5s var(--ease-out), color .3s; }
.step:hover .step__art svg { transform: translateY(-6px); color: var(--accent); }
.step h3 { padding: var(--s-6) var(--s-5) var(--s-4); font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1; }
.step p { padding: 0 var(--s-5); color: var(--ink-muted); max-width: 40ch; }

/* ---------- packages ---------- */
.packages { border-bottom: 1px solid var(--line); }
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.plan {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: 0 var(--s-6) var(--s-6);
  border-right: 1px solid var(--line);
}
.plan:last-child { border-right: 0; }
.plan__head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 calc(var(--s-6) * -1) var(--s-3); padding: var(--s-5) var(--s-6);
  border-bottom: 1px dashed var(--line);
}
.plan__name { font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: .95; }
.plan__desc { color: var(--ink-muted); min-height: 3.2em; }
.plan__price { display: flex; align-items: baseline; gap: var(--s-3); padding-top: var(--s-3); }
.plan__amount {
  font: 600 clamp(2.8rem, 4.4vw, 3.8rem)/1 var(--font-display); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.plan__term { font: 400 13px/1 var(--font-mono); text-transform: uppercase; color: var(--ink-muted); letter-spacing: .06em; }
.plan__monthly {
  margin-top: calc(var(--s-2) * -1);
  font: 500 15px/1.3 var(--font-mono); color: var(--accent);
}
.plan__features {
  display: grid; gap: var(--s-3);
  padding: var(--s-5) 0; margin-bottom: auto;
  border-top: 1px solid var(--line-soft);
}
.plan__features li { position: relative; padding-left: 28px; }
.plan__features li::before {      /* check mark */
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.plan__more { margin-top: calc(var(--s-3) * -1); }
.badge {
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent-strong); color: var(--accent-ink); padding: 6px 10px;
  animation: badgePulse 2.8s ease-in-out infinite;
}
@keyframes badgePulse { 50% { box-shadow: 0 0 0 6px rgba(47,91,240,.18); } }
.plan--featured { background: linear-gradient(180deg, rgba(47,91,240,.16), rgba(47,91,240,.04) 60%); box-shadow: inset 0 3px 0 var(--accent); }
.plan--vip .plan__name::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px;
  background: var(--accent); vertical-align: .55em;
}

.included {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-5);
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.included ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.included li { position: relative; padding-left: 20px; font-weight: 500; }
.included li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--accent);
}

/* ---------- AI plans ---------- */
.ai { border-bottom: 1px solid var(--line); }
.ai-plans {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.ai-plan {
  display: flex; flex-direction: column; gap: var(--s-4); text-align: left;
  padding: var(--s-6) var(--s-5);
  background: transparent; color: var(--ink);
  border: 0; border-right: 1px solid var(--line);
  font: inherit; cursor: pointer;
  position: relative;
  transition: background-color .2s var(--ease-out);
}
.ai-plan:last-child { border-right: 0; }
.ai-plan:hover { background: var(--paper-2); }
.ai-plan__price {
  font: 600 2.4rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.ai-plan__price small { font: 400 14px var(--font-mono); letter-spacing: 0; color: var(--ink-muted); margin-left: 2px; }
.ai-plan ul { display: grid; gap: var(--s-2); color: var(--ink-muted); font-size: .95rem; }
.ai-plan li { padding-left: 24px; position: relative; }
.ai-plan li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.ai-plan::after {           /* radio indicator */
  content: ""; position: absolute; top: var(--s-6); right: var(--s-5);
  width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 50%;
}
.ai-plan[aria-checked="true"] { background: linear-gradient(160deg, rgba(47,91,240,.32), rgba(47,91,240,.08)); box-shadow: inset 0 0 0 1px var(--accent); }
.ai-plan[aria-checked="true"] ul, .ai-plan[aria-checked="true"] small { color: #c9d3f0; }
.ai-plan[aria-checked="true"]::after {
  border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 5px, transparent 5.5px);
}

.ai-summary {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--line);
}
.ai-summary p { display: grid; gap: var(--s-2); }
.ai-summary__value { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; }
.ai-summary__value strong { color: var(--accent); font-weight: 600; }
.fineprint { padding: 0 var(--gutter) var(--s-6); color: var(--ink-muted); font-size: .9rem; }

/* ---------- portfolio ---------- */
.portfolio { border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.work { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work:nth-child(2n) { border-right: 0; }
.work:nth-last-child(-n+2) { border-bottom: 0; }
.work { display: block; text-decoration: none; color: inherit; transition: background-color .2s var(--ease-out); }
.work:hover { background: var(--paper-2); }
.thumb {
  position: relative;
  margin: var(--s-6) var(--s-6) 0;
  border: 1px solid var(--ink);
  background: #fff;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.work:hover .thumb { transform: translateY(-6px); box-shadow: 0 24px 60px -12px rgba(47,91,240,.45); }
.thumb iframe { transition: scale .8s var(--ease-out); }
.work:hover .thumb iframe { scale: 1.06; }
.thumb__bar {
  display: block; height: 22px;
  border-bottom: 1px solid var(--ink); background-color: var(--paper);
  background-image: radial-gradient(circle at 10px 50%, var(--ink) 2.5px, transparent 3px),
                    radial-gradient(circle at 20px 50%, var(--ink) 2.5px, transparent 3px),
                    radial-gradient(circle at 30px 50%, var(--ink) 2.5px, transparent 3px);
}
/* site renders at 1280px wide and is scaled to fit (scale set in script.js) */
.thumb { aspect-ratio: 16 / 10; }
.thumb iframe {
  position: absolute; top: 23px; left: 0;
  width: 1280px; height: 800px; border: 0;
  transform-origin: 0 0; transform: scale(var(--thumb-scale, .3));
  pointer-events: none;
}
.work__meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s-2) var(--s-4); padding: var(--s-5) var(--s-6) var(--s-6); }
.work__meta .label { grid-column: 1; }
.work__view {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font: 500 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.work:hover .work__view { text-decoration: underline; text-underline-offset: 4px; }
.work h3 { font-size: 1.5rem; line-height: 1; }
.work .label { color: var(--ink-muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; border-bottom: 1px solid var(--line); }
.contact__info {
  display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-9) var(--gutter) var(--s-7); border-right: 1px solid var(--line);
}
.contact__info > .label { color: var(--accent); }
.contact__info > p { color: var(--ink-muted); font-size: 1.0625rem; max-width: 42ch; }
.contact__list { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.contact__list li {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); align-items: center;
  padding: var(--s-4) 0; border-bottom: 1px dashed var(--line);
}
.contact__list .label { color: var(--ink-muted); }
.contact__list a { font-weight: 500; text-underline-offset: 4px; }
.contact__list a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
  padding: var(--s-9) var(--gutter) var(--s-7);
  align-content: start;
}
.field { display: grid; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 14px/1.3 var(--font-nav); letter-spacing: .04em; text-transform: uppercase; }
.form, .form .field input, .form .field select, .form .field textarea { font-family: var(--font-nav); }
.form .btn { font: 500 15px/1 var(--font-nav); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 0; transition: border-color .2s, background-color .2s, box-shadow .3s;
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(91,133,255,.08); box-shadow: 0 0 0 1px var(--accent), 0 0 28px -6px rgba(91,133,255,.5); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .9rem; min-height: 0; }
.field__error:empty { display: none; }
.form__error-summary {
  grid-column: 1 / -1; padding: var(--s-4); border: 1px solid var(--error); color: var(--error);
}
.form__error-summary ul { margin-top: var(--s-2); display: grid; gap: var(--s-1); }
.form__error-summary a { color: var(--error); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form__status { font-weight: 500; }
.form__status.is-success { color: var(--success); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- footer ---------- */
.site-footer { padding: var(--s-8) var(--gutter) var(--s-5); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s-6); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer nav a, .footer__bottom a {
  font: 500 13px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer nav a:hover, .footer__bottom a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-4); color: var(--ink-muted); font-size: .9rem; }

.footer-logo { width: min(360px, 70vw); height: auto; display: block; transition: scale .5s var(--ease-out); }
.footer-logo:hover { scale: 1.04; }

/* ---------- motion: hover zoom + cursor spotlight ---------- */
/* .spot is added by script.js to cards; a soft light follows the cursor inside them */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), rgba(91,133,255,.16), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.spot:hover::before { opacity: 1; }
.plan, .ai-plan, .step { transition: background-color .25s var(--ease-out), scale .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.plan:hover, .ai-plan:hover { scale: 1.02; z-index: 2; box-shadow: 0 30px 80px -30px rgba(47,91,240,.55), inset 0 0 0 1px rgba(91,133,255,.35); }
.plan--featured:hover { box-shadow: 0 30px 80px -30px rgba(47,91,240,.7), inset 0 3px 0 var(--accent), inset 0 0 0 1px rgba(91,133,255,.4); }
.step:hover { scale: 1.02; z-index: 2; background: var(--paper-2); }
.step__art svg { animation: drift 6s ease-in-out infinite alternate; }
.step:nth-child(2) .step__art svg { animation-delay: -1.5s; } .step:nth-child(3) .step__art svg { animation-delay: -3s; } .step:nth-child(4) .step__art svg { animation-delay: -4.5s; }
@keyframes drift { from { translate: 0 -6px; rotate: -2deg; } to { translate: 0 6px; rotate: 2deg; } }
.regions li { transition: color .25s, background-color .25s, letter-spacing .35s var(--ease-out); cursor: default; }
.regions li:hover { color: var(--accent); background: var(--paper-2); letter-spacing: .02em; }
.included li { transition: scale .25s var(--ease-out), color .25s; }
.included li:hover { scale: 1.06; color: var(--accent); }
.contact__list a, .socials a, .site-footer nav a { display: inline-block; transition: color .2s, scale .25s var(--ease-out); }
.contact__list a:hover, .socials a:hover, .site-footer nav a:hover { scale: 1.06; }
.plan__amount, .ai-plan__price { transition: scale .4s var(--ease-out), color .3s; transform-origin: left center; }
.plan:hover .plan__amount, .ai-plan:hover .ai-plan__price { scale: 1.06; color: #fff; }

/* statement sun breathes, packages get a drifting glow like the hero */
.statement__art .accent-fill { transform-box: fill-box; transform-origin: center; animation: sun 9s ease-in-out infinite; }
@keyframes sun { 50% { scale: 1.06; opacity: .85; } }
.statement__art svg { translate: 0 var(--par, 0px); }
.packages, .ai { isolation: isolate; overflow: hidden; }
.packages::before, .ai::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: 50%; top: -300px; margin-left: -450px;
  background: radial-gradient(circle, rgba(47,91,240,.18), transparent 60%);
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.ai::before { top: auto; bottom: -400px; animation-duration: 20s; }
@keyframes glowDrift { from { translate: -30% 0; } to { translate: 30% 80px; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out), background-color .25s, scale .45s var(--ease-out), box-shadow .45s var(--ease-out), color .25s, letter-spacing .35s; }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .main-nav a { min-width: 116px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ai-plans { grid-template-columns: repeat(2, 1fr); }  .ai-plan:nth-child(2) { border-right: 0; }
  .ai-plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav a { min-height: 56px; align-items: center; padding: 0 var(--gutter); border-left: 0; border-top: 1px solid var(--line); }
  .main-nav .nav-cta span { position: static; margin-left: var(--s-2); }
  .site-header.on-dark .main-nav a { color: var(--ink); border-top-color: var(--line); }
  .site-header.on-dark .main-nav .nav-cta { color: var(--accent); }

  .statement, .contact, .plans { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; gap: var(--s-5); }
  .hero__stage { padding-bottom: 34vh; }
  .hero__tilt { width: min(86vw, 560px); }
  .hero__stats--right { display: none; }
  .hero__stats--left { align-self: end; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__next { justify-items: start; }
  .hero__tagline { font-size: 11px; letter-spacing: .16em; white-space: nowrap; }
  .hero__tagline i { margin: 0 .3em; }

  .statement__art { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .statement__art svg { width: min(100%, 380px); }
  .statement__body { padding: var(--s-7) var(--gutter); }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .plan__desc { min-height: 0; }
  .section-head--row { grid-template-columns: 1fr; }
  .contact__info { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--s-7); }
  .form { padding-top: var(--s-7); }
  .included { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-head { padding-top: var(--s-8); }
  .process__grid, .ai-plans, .work-grid { grid-template-columns: 1fr; }
  .step, .ai-plan, .work { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .step:last-child, .ai-plan:last-child, .work:last-child { border-bottom: 0 !important; }
  .step__art { aspect-ratio: 16 / 9; }
  .step__art svg { width: 38%; }
  .regions ul { grid-template-columns: repeat(2, 1fr); }
  .regions li:nth-child(3n) { border-right: 1px dashed var(--line); }
  .regions li:nth-child(2n) { border-right: 0; }
  .regions li:nth-last-child(-n+3) { border-bottom: 1px dashed var(--line); }
  .regions li:nth-last-child(-n+2) { border-bottom: 0; }
  .plan { padding: 0 var(--gutter) var(--s-6); }
  .plan__head { margin: 0 calc(var(--gutter) * -1) var(--s-3); padding: var(--s-4) var(--gutter); }
  .thumb { margin: var(--s-5) var(--gutter) 0; }
  .work__meta { padding: var(--s-4) var(--gutter) var(--s-5); }
  .form { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: var(--s-1); }
  .side-tab { display: none; }
  .btn { width: 100%; justify-content: space-between; }
  .ai-summary .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__city [pathLength] { stroke-dasharray: none; fill-opacity: 1; }
}

