/* ============ Base ============ */
:root {
  --bg: #0e0f13;
  --bg-raise: #16181f;
  --bg-card: #1b1e27;
  --ink: #f2f3f7;
  --ink-mute: #a4a8b6;
  --accent: #ffb454;
  --accent-ink: #1a1205;
  --glow-blue: #5b6fe8;
  --glow-purple: #9a5bd6;
  --line: #262a36;
  --radius: 14px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; }
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 900px 500px at 12% -8%, rgba(91, 111, 232, 0.16), transparent 60%),
    radial-gradient(ellipse 800px 600px at 88% 15%, rgba(154, 91, 214, 0.13), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(91, 111, 232, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; z-index: 99; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.hidden-field { position: absolute; left: -9999px; }

/* ============ Header ============ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1060px; margin: 0 auto; padding: 1.4rem 1.5rem;
}
.wordmark {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.accent { color: var(--accent); }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a {
  color: var(--ink-mute); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--accent-ink); background: var(--accent);
  padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--accent-ink); filter: brightness(1.07); }
.site-nav .nav-call { display: inline-flex; align-items: center; }
.site-nav .nav-call:hover { color: var(--accent); }

/* ============ Hero ============ */
.hero {
  max-width: 1060px; margin: 0 auto; padding: 4.5rem 1.5rem 4rem;
}
.kicker {
  color: var(--accent); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.lede {
  color: var(--ink-mute); font-size: 1.12rem; max-width: 34em; margin-top: 1.2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 0.8rem 1.5rem; font-size: 1rem;
  font-family: var(--font-body); border: 0; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.92rem; background: var(--accent); color: var(--accent-ink); }
.btn-call { border-color: var(--accent); color: var(--accent); }
.btn-call:hover { background: var(--accent); color: var(--accent-ink); }

.badge {
  display: inline-block; font-size: 0.65em; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.15em 0.65em; vertical-align: middle; margin-left: 0.5em; text-transform: uppercase;
}

.proof-strip {
  display: flex; gap: 1.8rem; flex-wrap: wrap; list-style: none;
  margin-top: 2.6rem; color: var(--ink-mute); font-size: 0.92rem;
}
.proof-strip li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ============ Sections ============ */
.section { max-width: 1060px; margin: 0 auto; padding: 3.5rem 1.5rem; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; }
.section-num { color: var(--accent); font-size: 0.9em; margin-right: 0.6rem; font-weight: 600; }

/* Work */
.work-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  background:
    radial-gradient(ellipse 500px 300px at 0% 0%, rgba(91, 111, 232, 0.09), transparent 65%),
    radial-gradient(ellipse 400px 300px at 100% 100%, rgba(154, 91, 214, 0.08), transparent 65%),
    var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem;
}
.work-tag {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem;
}
.work-copy h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.work-copy p { color: var(--ink-mute); margin-bottom: 1.3rem; }

.work-preview { display: block; text-decoration: none; }
.preview-browser {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.work-preview:hover .preview-browser { transform: translateY(-3px); border-color: var(--accent); }
.preview-dots { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.preview-frame-wrap {
  display: block; position: relative; width: 100%; height: 280px;
  overflow: hidden; background: #fff;
}
.preview-frame {
  position: absolute; top: 0; left: 0; border: 0;
  width: 1450px; height: 778px;
  transform: scale(0.36); transform-origin: top left;
  pointer-events: none;
}

.work-more { color: var(--ink-mute); font-size: 0.92rem; margin-top: 1.4rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li {
  counter-increment: step;
  background:
    radial-gradient(ellipse 260px 180px at 100% 0%, rgba(91, 111, 232, 0.1), transparent 70%),
    var(--bg-raise);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.steps li:nth-child(2) {
  background:
    radial-gradient(ellipse 260px 180px at 100% 0%, rgba(154, 91, 214, 0.1), transparent 70%),
    var(--bg-raise);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
}
.steps h3 { font-size: 1.12rem; margin: 0.5rem 0 0.5rem; }
.steps p { color: var(--ink-mute); font-size: 0.95rem; }

/* Audit form */
.audit-lede { color: var(--ink-mute); max-width: 40em; margin-bottom: 1.8rem; }
.audit-form { max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink-mute); }
.field input, .field textarea {
  width: 100%; background: var(--bg-raise); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 1rem;
  font-family: var(--font-body); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-wide { margin-bottom: 1.4rem; }
.form-success {
  background: var(--bg-raise); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; max-width: 560px; color: var(--ink);
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1060px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: space-between;
}
.foot-id p:last-child { color: var(--ink-mute); font-size: 0.92rem; }
.foot-contact { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; }
.foot-contact li { color: var(--ink-mute); font-size: 0.92rem; }
.foot-contact a { color: var(--ink-mute); text-decoration: none; }
.foot-contact a:hover { color: var(--accent); }
.socials { display: flex; gap: 1.4rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--ink-mute); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.socials a:hover { color: var(--accent); }
.fineprint { width: 100%; color: var(--ink-mute); font-size: 0.82rem; }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 780px) {
  .work-card { grid-template-columns: 1fr; padding: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-cta) { display: none; }
}
