/* ==========================================================================
   White Oak Scale — Design Tokens (modern, simple, dark)
   ========================================================================== */

:root {
  /* Color */
  --bg: #0A0B0D;
  --bg-raised: #131519;
  --bg-raised-2: #1A1D22;
  --ink: #F3F4F6;
  --ink-dim: #9AA0AA;
  --ink-faint: #676D77;
  --accent: #4C7EFF;
  --accent-hover: #6690FF;
  --accent-press: #3B67DE;
  --accent-soft: rgba(76, 126, 255, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --success: #4ADE80;

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (base 8) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1200px) { .container { padding: 0 64px; } }

.container--narrow { max-width: 720px; }

.section { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section--raised { background: var(--bg-raised); }

.section p.section__lede { color: var(--ink-dim); }

.section > .container > h2 { max-width: 640px; }
.section > .container > p { max-width: 560px; margin-top: var(--sp-3); color: var(--ink-dim); }
.section > .container > .btn { margin-top: var(--sp-5); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 var(--sp-3);
  font-weight: 600;
}

/* Typography scale */
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.3; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
}
.logo-frame {
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.logo-frame img {
  height: 100%;
  width: auto;
  display: block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  border: none;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); transform: scale(0.98); }

.btn--nav { padding: 10px 18px; font-size: 14px; }

.btn--lg { padding: 16px 30px; font-size: 16px; }

.btn--full { width: 100%; margin-top: var(--sp-2); position: relative; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px 0 88px;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22px 22px, rgba(255,255,255,0.05) 1.5px, transparent 1.5px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
}
.hero__inner { text-align: center; max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.hero__headline {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.hero__subhead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto var(--sp-5);
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.hero__microcopy {
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ==========================================================================
   Stage list (framework)
   ========================================================================== */

.stage-list {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 700px) { .stage-list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } }
.stage-list__item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}
.stage-list__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 600;
}
.stage-list__item h3 { margin: var(--sp-2) 0 var(--sp-2); }
.stage-list__item p { color: var(--ink-dim); }

/* ==========================================================================
   Bordered text lists (Standards, FAQ)
   ========================================================================== */

.stack-list {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.stack-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--ink-dim);
}
.stack-list li:last-child { border-bottom: 1px solid var(--border); }
.stack-list__mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}

.qa-list {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.qa-list__item {
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
}
.qa-list__item:last-child { border-bottom: 1px solid var(--border); }
.qa-list__item h3 { font-size: clamp(16px, 1.8vw, 18px); margin-bottom: var(--sp-2); color: var(--ink); }
.qa-list__item p { color: var(--ink-dim); max-width: 600px; }

/* ==========================================================================
   Contact form
   ========================================================================== */

.section--form h2 { max-width: 560px; }
.contact-form {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 700px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239AA0AA' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field textarea { resize: vertical; }

.btn__check {
  color: #fff;
  display: none;
}
.contact-form.is-submitted .btn__label { display: none; }
.contact-form.is-submitted .btn__check { display: block; }
.contact-form.is-submitted .btn__check path { animation: checkdraw 0.5s var(--ease) forwards; }
@keyframes checkdraw { to { stroke-dashoffset: 0; } }
.contact-form__note { font-size: 13px; color: var(--ink-faint); text-align: center; }

/* ==========================================================================
   Closing CTA banner
   ========================================================================== */

.cta-banner {
  text-align: center;
}
.cta-banner .container { display: flex; flex-direction: column; align-items: center; }
.cta-banner h2 { max-width: 520px; }
.cta-banner p { margin-top: var(--sp-3); }
.cta-banner .btn { margin-top: var(--sp-5); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg);
  padding: var(--sp-6) 0 var(--sp-4);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (min-width: 800px) {
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer__mark { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.footer__brand p { margin-top: var(--sp-2); color: var(--ink-faint); font-size: 14px; }
.footer__contact a { font-size: 14px; color: var(--accent); }
.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-4);
  font-size: 13px;
  color: var(--ink-faint);
}
