/* ==========================================================================
   Codenastic — design system
   Dark-first, brand green (#52C19A), glass surfaces, soft aurora glow.
   ========================================================================== */

:root {
  /* light (default) */
  --bg: #f5faf7;
  --bg-2: #eaf3ee;
  --surface: #ffffff;
  --surface-2: #f0f6f3;
  --line: rgba(20, 50, 38, .10);
  --line-2: rgba(20, 50, 38, .18);
  --line-3: rgba(20, 50, 38, .32);
  --fill: rgba(20, 50, 38, .04);
  --fill-2: rgba(20, 50, 38, .07);
  --text: #14231d;
  --text-strong: #0a1612;
  --text-soft: #3d4f47;
  --text-faint: #566b62;
  --muted: #566a61;
  --brand: #52c19a;
  --brand-2: #3fd0c9;
  --brand-3: #a6f0c6;
  --brand-t: #187a59;
  --brand-ink: #04130d;
  --glow: rgba(47, 165, 127, .38);
  --grad: linear-gradient(120deg, var(--brand-3) 0%, var(--brand) 45%, var(--brand-2) 100%);
  --grad-text: linear-gradient(120deg, #11805a 0%, #168a68 50%, #158396 100%);
  --nav-bg: rgba(255, 255, 255, .66);
  --nav-bg-solid: rgba(255, 255, 255, .92);
  --shadow-c: rgba(20, 60, 45, .22);
  --aurora-1: #8fe0c0; --aurora-2: #9ad8e6; --aurora-3: #b9f0d6; --aurora-o: .55;
  --cta-1: #e3f6ee; --cta-2: #f3fbf7;
  --acc-open: #eaf7f1;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  /* softened dark: deep green-slate rather than near-black */
  --bg: #12201c;
  --bg-2: #0f1b17;
  --surface: #192a25;
  --surface-2: #203530;
  --line: var(--fill-2);
  --line-2: rgba(255, 255, 255, .16);
  --line-3: var(--line-3);
  --fill: rgba(255, 255, 255, .045);
  --fill-2: var(--line);
  --text: #eaf3ef;
  --text-strong: #ffffff;
  --text-soft: #c5d3cd;
  --text-faint: #7d928a;
  --muted: #9db2aa;
  --brand-t: #52c19a;
  --glow: rgba(82, 193, 154, .35);
  --grad-text: linear-gradient(120deg, #a6f0c6 0%, #52c19a 45%, #3fd0c9 100%);
  --nav-bg: rgba(24, 40, 35, .68);
  --nav-bg-solid: rgba(18, 32, 28, .92);
  --shadow-c: #000;
  --aurora-1: #1f8f6c; --aurora-2: #1a6f7a; --aurora-3: #52c19a; --aurora-o: .5;
  --cta-1: #17302a; --cta-2: #12221e;
  --acc-open: #1a3029;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(36px, 4.5vw, 60px) 0; position: relative; }
.section--tight { padding: clamp(20px, 2.5vw, 32px) 0; }
.center { text-align: center; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-t);
  padding: 7px 14px; border: 1px solid rgba(82, 193, 154, .3); background: rgba(82, 193, 154, .08); border-radius: 999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }

.h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.035em; font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head.center { justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 8px 30px -8px var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn--ghost { background: var(--fill); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--fill-2); border-color: var(--line-3); transform: translateY(-2px); }
.btn--sm { --pad: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header { position: fixed; top: 16px; inset-inline: 0; z-index: 100; pointer-events: none; }
.nav {
  pointer-events: auto; width: min(1100px, 100% - 28px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: var(--nav-bg); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.header.is-scrolled .nav { background: var(--nav-bg-solid); border-color: var(--line-2); box-shadow: 0 18px 50px -20px var(--shadow-c); }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-soft); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text-strong); background: var(--fill-2); }
.nav__links a.btn--primary { color: var(--brand-ink); background: var(--grad); }
.nav__links a.btn--primary:hover { background: var(--grad); color: var(--brand-ink); }
.nav__links a[aria-current="page"] { color: var(--text-strong); background: rgba(82, 193, 154, .14); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--fill); place-items: center; }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .i-close { display: none; }
.nav-open .nav__toggle .i-open { display: none; }
.nav-open .nav__toggle .i-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed; inset: 84px 14px auto 14px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    background: var(--nav-bg-solid); border: 1px solid var(--line-2); border-radius: 28px; backdrop-filter: blur(20px);
    transform: translateY(-12px) scale(.98); opacity: 0; visibility: hidden; transition: .28s var(--ease); pointer-events: auto;
  }
  .nav-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 18px; font-size: 17px; }
  .nav__links .nav__mobile-cta { display: flex; margin-top: 8px; }
}
@media (min-width: 901px) { .nav__mobile-cta { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(100px, 10vw, 124px) 0 clamp(36px, 4.5vw, 56px); overflow: hidden; isolation: isolate; }
.hero--page { padding: clamp(100px, 9vw, 116px) 0 clamp(20px, 2.5vw, 32px); }
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--aurora-o); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 560px; height: 560px; background: var(--aurora-1); top: -180px; left: -120px; }
.aurora i:nth-child(2) { width: 480px; height: 480px; background: var(--aurora-2); top: 40px; right: -140px; animation-delay: -6s; opacity: .45; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: var(--aurora-3); bottom: -200px; left: 40%; animation-delay: -11s; opacity: .22; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--brand-t); }

.hero-visual { position: relative; min-height: 400px; }
.win { position: absolute; border-radius: 18px; background: rgba(16, 21, 26, .82); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 var(--fill-2); }
.win--code { inset: 20px 0 auto 6%; padding: 0 0 18px; animation: float 7s ease-in-out infinite; }
.win__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b343b; }
.win__bar i:nth-child(1) { background: #ff6b63; } .win__bar i:nth-child(2) { background: #f7c04a; } .win__bar i:nth-child(3) { background: #52c19a; }
.win__bar b { margin-left: 10px; font: 500 12px var(--font); color: var(--muted); }
.code { padding: 16px 20px 0; font: 13px/1.85 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #b8c4cc; white-space: pre; overflow: hidden; }
.code .k { color: #7fd8b8; } .code .s { color: #f2c77c; } .code .c { color: var(--text-faint); } .code .f { color: #8ab8ff; }
.win--stat { right: -2%; bottom: 36px; padding: 16px 18px; width: 220px; animation: float 8s ease-in-out -2s infinite; }
.win--stat small { color: var(--muted); font-size: 12px; }
.win--stat strong { display: block; font: 600 28px var(--font-head); margin: 2px 0 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.bars i { flex: 1; border-radius: 4px; background: linear-gradient(to top, rgba(82, 193, 154, .15), var(--brand)); height: var(--h); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.win--chip { left: -2%; bottom: 70px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; animation: float 9s ease-in-out -4s infinite; }
.win--chip .dot { width: 36px; height: 36px; border-radius: 10px; background: rgba(82, 193, 154, .14); display: grid; place-items: center; color: var(--brand-t); }
.win--chip .dot svg { width: 18px; height: 18px; }
.win--chip b { font-size: 14px; display: block; line-height: 1.2; } .win--chip span { font-size: 12px; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes grow { from { transform: scaleY(0); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) { .win--stat { right: 0; width: 190px; } .code { font-size: 11.5px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; font: 500 clamp(1.1rem, 2vw, 1.5rem) var(--font-head); color: var(--text-faint); white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--brand-t); font-size: .8em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / spotlight ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 30px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, background .35s; overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(82, 193, 154, .16), transparent 60%);
}
.card:hover { border-color: rgba(82, 193, 154, .35); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-t); background: rgba(82, 193, 154, .1); border: 1px solid rgba(82, 193, 154, .22); margin-bottom: 22px; }
.icon-box svg { width: 24px; height: 24px; }
.num { font: 600 13px var(--font-head); color: var(--brand-t); letter-spacing: .1em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .h3 { margin-bottom: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 14.5px; color: var(--brand-t); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1060px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Bento (core expertise) ---------- */
.bento { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.bento .card { display: flex; flex-direction: column; min-height: 280px; }
.bento .b1 { grid-column: span 4; } .bento .b2 { grid-column: span 2; }
.bento .b3 { grid-column: span 2; } .bento .b4 { grid-column: span 4; }
.bento .card .art { margin-top: auto; padding-top: 26px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-soft); background: var(--fill); }
.pill--brand { color: var(--brand-t); border-color: rgba(82, 193, 154, .3); background: rgba(82, 193, 154, .08); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento .card { grid-column: auto !important; min-height: 0; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 clamp(2.2rem, 4vw, 3.4rem)/1 var(--font-head); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Tabs (who we build for) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.tab { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-soft); font-weight: 500; font-size: 15px; transition: .25s; }
.tab:hover { color: var(--text-strong); border-color: var(--line-3); }
.tab[aria-selected="true"] { background: var(--grad); color: var(--brand-ink); border-color: transparent; font-weight: 600; }
.panel { display: none; grid-template-columns: 1.05fr .95fr; gap: 20px; animation: fade .5s var(--ease); }
.panel.is-active, html:not(.js) .panel { display: grid; }
html:not(.js) .panel { margin-bottom: 20px; }
html:not(.js) .tabs { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.panel .card { padding: 40px; }
.checks { display: grid; gap: 14px; margin: 26px 0 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--brand-t); margin-top: 2px; }
.panel__side { display: grid; gap: 20px; }
.panel__side .card { padding: 28px; }
@media (max-width: 860px) { .panel.is-active, html:not(.js) .panel { grid-template-columns: 1fr; } .panel .card { padding: 28px; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease); }
.step:hover { border-color: rgba(82, 193, 154, .35); transform: translateY(-4px); }
.step .n { font: 700 3.2rem/1 var(--font-head); letter-spacing: -.04em; background: linear-gradient(180deg, rgba(82, 193, 154, .55), rgba(82, 193, 154, .04)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; } .step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.t-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.t-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--fill); display: grid; place-items: center; transition: .25s; }
.round:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand-t); }
.round svg { width: 20px; height: 20px; }
.round.prev svg { transform: rotate(180deg); }
.t-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: none; }
.t-track::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 min(440px, 86%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.quote .q { width: 34px; height: 34px; color: var(--brand-t); opacity: .9; }
.quote h3 { font-size: 1.2rem; }
.quote p { color: var(--text-soft); font-size: 15.5px; }
.who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--font-head); color: var(--brand-ink); background: var(--grad); flex: none; }
.who b { display: block; font-size: 15px; line-height: 1.3; } .who span { font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; border-radius: 32px; padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px); overflow: hidden; isolation: isolate; text-align: center; border: 1px solid rgba(82, 193, 154, .28); background: linear-gradient(160deg, var(--cta-1), var(--cta-2) 60%); }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(82, 193, 154, .38), transparent 70%); }
.cta .lead { margin: 14px auto 26px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 24px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.footer__brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer h4 { font: 600 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer li { margin-bottom: 11px; }
.footer a { color: var(--text-soft); font-size: 15px; transition: color .2s; }
.footer a:hover { color: var(--brand-t); }
.footer address { font-style: normal; color: var(--text-soft); font-size: 15px; display: grid; gap: 12px; }
.footer address span, .footer address a { display: flex; gap: 10px; align-items: flex-start; }
.footer address svg { width: 18px; height: 18px; color: var(--brand-t); flex: none; margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.social a:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand-t); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 14px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Services accordion ---------- */
.acc { display: grid; gap: 12px; }
.acc details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .3s, background .3s; scroll-margin-top: 100px; }
.acc details[open] { border-color: rgba(82, 193, 154, .38); background: linear-gradient(180deg, var(--acc-open), var(--surface) 70%); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 22px 26px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon-box { margin: 0; width: 46px; height: 46px; flex: none; }
.acc summary h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); flex: 1; }
.acc summary .plus { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; flex: none; }
.acc summary .plus svg { width: 16px; height: 16px; }
.acc details[open] .plus { transform: rotate(45deg); background: var(--brand); color: var(--brand-ink); border-color: var(--brand-t); }
.acc__body { padding: 0 26px 28px 90px; display: grid; gap: 14px; color: var(--muted); max-width: 90ch; animation: fade .4s var(--ease); }
.acc__body .pill { align-self: start; justify-self: start; }
@media (max-width: 640px) { .acc__body { padding: 0 22px 26px; } .acc summary { padding: 18px; gap: 14px; } }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.discipline { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .card { padding: 40px; }
.split .card .h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 18px 0 14px; }
.signoff { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.signoff b { display: block; line-height: 1.25; } .signoff span { font-size: 13.5px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team { grid-template-columns: 1fr; } }
.member { padding: 26px 22px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.member .avatar { width: 76px; height: 76px; font-size: 24px; margin-bottom: 14px; position: relative; }
.member .avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(82, 193, 154, .45); }
.member h3 { font-size: 1.05rem; } .member p { font-size: 13.5px; }
.member a.in { margin-top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; z-index: 3; color: var(--muted); }
.member a.in:hover { color: var(--brand-ink); background: var(--brand); border-color: var(--brand-t); }
.member a.in svg { width: 15px; height: 15px; }
.member .noin { height: 46px; }
.member { padding: 12px 12px 20px; }
.member__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 0; border-radius: 14px; margin-bottom: 14px; background: var(--fill-2); transition: transform .5s var(--ease); }
.member:hover .member__photo { transform: scale(1.02); }
.signoff .avatar--photo { width: 48px; height: 48px; padding: 0; overflow: hidden; background: var(--fill-2); }
.signoff .avatar--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.6); transform-origin: 50% 12%; }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }
.project { padding: 0; display: flex; flex-direction: column; }
.project.is-hidden { display: none; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--p1); }
.shot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, var(--p2), transparent 60%), radial-gradient(circle at 0% 100%, var(--p3), transparent 55%); opacity: .9; }
.shot__browser { position: absolute; inset: 9% 7% -8%; border-radius: 12px 12px 0 0; background: rgba(8, 11, 14, .78); border: 1px solid var(--line-2); backdrop-filter: blur(6px); box-shadow: 0 24px 50px -16px #000; transition: transform .5s var(--ease); }
.project:hover .shot__browser { transform: translateY(-10px); }
.shot__browser .win__bar { padding: 11px 14px; }
.shot__browser .url { margin-left: 10px; font: 500 11.5px var(--font); color: #7d8993; background: var(--fill); padding: 3px 12px; border-radius: 99px; }
.shot__body { padding: 22px; display: grid; gap: 14px; }
.shot__logo { display: flex; align-items: center; gap: 12px; }
.shot__logo i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 700 18px var(--font-head); font-style: normal; color: #04130d; background: var(--accent); }
.shot__logo b { font: 600 20px var(--font-head); }
.skel { display: grid; gap: 9px; } .skel i { height: 8px; border-radius: 6px; background: var(--fill-2); } .skel i:nth-child(1) { width: 86%; } .skel i:nth-child(2) { width: 64%; } .skel i:nth-child(3) { width: 74%; }
.skel-row { display: flex; gap: 10px; } .skel-row i { flex: 1; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.project__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project__body h3 { font-size: 1.45rem; }
.project__body p { color: var(--muted); font-size: 15.5px; }
.project__body .pill-row { margin-top: auto; padding-top: 6px; }
.project__domain { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-t); font-size: 14.5px; margin-top: 4px; }
.project__domain svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.project:hover .project__domain svg { transform: translate(3px, -3px); }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.field label i { color: var(--brand-t); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill);
  color: var(--text); font: inherit; font-size: 15.5px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a0aa' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { background: var(--surface); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-t); background: rgba(82, 193, 154, .05); box-shadow: 0 0 0 4px rgba(82, 193, 154, .14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff7a70; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; border: 1px solid rgba(82, 193, 154, .35); background: rgba(82, 193, 154, .1); color: var(--brand-t); }
.form-status.is-shown { display: block; }
.info-list { display: grid; gap: 14px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.info .icon-box { margin: 0; flex: none; width: 46px; height: 46px; }
.info b { display: block; margin-bottom: 2px; } .info a, .info span { color: var(--muted); font-size: 15px; }
.info a:hover { color: var(--brand-t); }

/* ---------- FAQ (career) ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 100px; }
.faq details[open] { border-color: rgba(82, 193, 154, .38); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font: 500 1.08rem var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: .3s var(--ease); }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--brand); color: var(--brand-ink); border-color: var(--brand-t); }
.faq p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-done { transition: transform .35s var(--ease), border-color .35s, background .35s; transition-delay: 0s; }
.js .step.reveal.is-done { transition: .35s var(--ease); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .header, .aurora, .grid-bg, .marquee { display: none; } body { background: #fff; color: #000; } }


/* ---------- Screens (code window, stat card, browser mockups) stay dark in both themes ---------- */
.win, .shot__browser {
  --text: #eaf3ef; --text-soft: #c5d3cd; --muted: #9db2aa; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --fill: rgba(255, 255, 255, .05); --brand-t: #52c19a;
  color: #eaf3ef;
}
.win { background: rgba(20, 34, 30, .9); box-shadow: 0 40px 80px -30px rgba(8, 30, 22, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.shot__browser { background: rgba(10, 18, 15, .82); }

/* ---------- Theme toggle ---------- */
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--fill); display: grid; place-items: center; color: var(--text-soft); transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--fill-2); color: var(--text-strong); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Logo: white wordmark on dark, dark wordmark on light ---------- */
.logo-for-dark { display: none; }
.logo-for-light { display: block; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
:root[data-theme="dark"] .logo-for-light { display: none; }
.project__tagline { color: var(--text-soft); font-weight: 500; margin-top: -6px; }

/* light-theme refinements */
:root:not([data-theme="dark"]) .card { box-shadow: 0 1px 2px rgba(20, 60, 45, .05); }
:root:not([data-theme="dark"]) .card:hover { box-shadow: 0 18px 40px -22px rgba(20, 90, 65, .35); }
:root:not([data-theme="dark"]) .btn--primary { box-shadow: 0 8px 26px -8px rgba(47, 165, 127, .55); }
:root:not([data-theme="dark"]) .marquee__track span { color: #5f786d; }
:root:not([data-theme="dark"]) .pill--brand { color: var(--brand-t); }
:root:not([data-theme="dark"]) .step .n { background: linear-gradient(180deg, rgba(40, 150, 112, .6), rgba(40, 150, 112, .06)); -webkit-background-clip: text; background-clip: text; }
:root:not([data-theme="dark"]) .tab[aria-selected="true"] { color: var(--brand-ink); }


/* safe-area offset for notched devices */
.header { top: calc(16px + env(safe-area-inset-top, 0px)); }

/* ---------- Form feedback (Laravel submission) ---------- */
.form-status--error { border-color: rgba(255, 122, 112, .45); background: rgba(255, 122, 112, .1); color: #c2382d; }
:root[data-theme="dark"] .form-status--error { color: #ff9a90; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff7a70; }
.field-error { font-size: 13.5px; color: #c2382d; }
:root[data-theme="dark"] .field-error { color: #ff9a90; }
.form button[type="submit"] { justify-self: start; }
.form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form[aria-busy="true"] button[type="submit"] { cursor: progress; }
.cf-turnstile { min-height: 65px; }

/* ---------- Fixes on top of the artifact CSS ---------- */
/* `.stat span` targets the label but also matched the animated number inside <strong> */
.stat strong span { display: inline; margin: 0; font: inherit; color: inherit; }
/* keep eyebrows pill-sized in left-aligned section heads (grid items stretch by default) */
.sec-head { justify-items: start; }
.sec-head.center { justify-items: center; }
