/* =========================================================
   Design tokens — colors, typography, layout.
   Change values here, never hardcode in components.
   ========================================================= */
:root {
  /* Colors — from spec §5.1 */
  --obsidian: #0A0612;
  --ember-purple: #1A1333;
  --gunmetal: #1E1C24;
  --anvil: #2A2730;
  --forge-white: #F5F5F7;
  --silver: #A8ADB8;
  --ash: #878B99;
  --spark: #FF4F1F;

  /* Typography */
  --font-heading: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1120px;
  --container-pad-mobile: 24px;
  --container-pad-desktop: 40px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ol, ul, li, figure, figcaption, blockquote, dl, dd { margin: 0; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { background: transparent; border: 0; cursor: pointer; }

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--obsidian);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--forge-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* =========================================================
   Utilities
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad-mobile);
  padding-right: var(--container-pad-mobile);
}
@media (min-width: 768px) {
  .container {
    padding-left: var(--container-pad-desktop);
    padding-right: var(--container-pad-desktop);
  }
}

/* Accessibility: visually hidden but screen-reader-available */
.visually-hidden {
  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 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--spark);
  color: var(--obsidian);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 100;
  transition: top 150ms ease-out;
}
.skip-link:focus {
  top: 8px;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Shared eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.eyebrow--spark {
  color: var(--spark);
  letter-spacing: 0.16em;
}

/* Shared button */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
  transition: transform 150ms ease-out, filter 150ms ease-out;
  cursor: pointer;
  text-align: center;
}
.btn--primary {
  background: var(--spark);
  color: var(--obsidian);
}
.btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn--block {
  display: block;
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  filter: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(26, 19, 51, 0.9) 0%,
      rgba(26, 19, 51, 0.3) 35%,
      transparent 70%),
    var(--obsidian);
  padding: 120px 0 96px;
  text-align: center;
}
.hero__inner {
  max-width: 720px;
}
.hero__logo {
  width: 148px;
  height: 148px;
  margin: 0 auto 32px;
  border-radius: 22px;
}
.hero__headline {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__subhead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 32px;
}

@media (max-width: 767px) {
  .hero {
    padding: 72px 0 64px;
  }
  .hero__logo {
    width: 112px;
    height: 112px;
    margin-bottom: 24px;
  }
  .hero__headline {
    font-size: 40px;
    line-height: 1.1;
  }
  .hero__subhead {
    font-size: 16px;
    margin-bottom: 28px;
  }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--anvil);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.nav__wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--forge-white);
  letter-spacing: -0.01em;
}
.nav__cta {
  border: 1px solid var(--anvil);
  color: var(--silver);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out;
}
.nav__cta:hover {
  color: var(--forge-white);
  border-color: var(--silver);
  background: rgba(245, 245, 247, 0.04);
}

/* =========================================================
   Value props
   ========================================================= */
.props {
  padding: 80px 0;
  border-top: 1px solid var(--anvil);
}
.props__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .props__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.prop {
  text-align: center;
}
.prop__icon {
  color: var(--silver);
  margin: 0 auto 16px;
}
.prop__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--forge-white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.prop__desc {
  font-size: 14px;
  color: var(--ash);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .props {
    padding: 56px 0;
  }
}

/* =========================================================
   Process
   ========================================================= */
.process {
  padding: 96px 0;
  border-top: 1px solid var(--anvil);
}
.process__header {
  text-align: center;
  margin-bottom: 48px;
}
.process__title {
  font-size: 36px;
  font-weight: 700;
}
.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .process__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.step {
  background: var(--gunmetal);
  border: 1px solid var(--anvil);
  border-radius: 10px;
  padding: 28px;
}
.step__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--spark);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--forge-white);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .process {
    padding: 64px 0;
  }
  .process__title {
    font-size: 28px;
  }
  .process__header {
    margin-bottom: 32px;
  }
}

/* =========================================================
   Contact form
   ========================================================= */
.contact {
  padding: 96px 0;
  border-top: 1px solid var(--anvil);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%,
      rgba(26, 19, 51, 0.85) 0%,
      rgba(26, 19, 51, 0.2) 40%,
      transparent 75%),
    var(--obsidian);
}
.contact__header {
  text-align: center;
  margin-bottom: 32px;
}
.contact__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}
.contact__sub {
  color: var(--silver);
  font-size: 14px;
}

.form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--gunmetal);
  border: 1px solid var(--anvil);
  border-radius: 12px;
  padding: 28px;
}
.form__input {
  width: 100%;
  background: var(--obsidian);
  color: var(--forge-white);
  border: 1px solid var(--anvil);
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 12px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.form__input::placeholder {
  color: var(--ash);
}
.form__input:focus {
  outline: none;
  border-color: var(--spark);
  box-shadow: 0 0 0 2px rgba(255, 79, 31, 0.25);
}
.form__textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-body);
}
.form .btn--block {
  margin-top: 4px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  border-radius: 6px;
}
.form__reassure {
  text-align: center;
  color: var(--ash);
  font-size: 12px;
  margin-top: 12px;
}
.form__error {
  text-align: center;
  color: var(--spark);
  font-size: 13px;
  margin-top: 12px;
}
.form__success {
  text-align: center;
  padding: 20px 0;
}
.form__success-title {
  color: var(--forge-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.form__success-body {
  color: var(--silver);
  font-size: 14px;
}

@media (max-width: 767px) {
  .contact {
    padding: 72px 0;
  }
  .contact__title {
    font-size: 26px;
  }
  .form {
    padding: 22px;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--anvil);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer__copy {
  color: var(--ash);
  font-size: 12px;
  font-family: var(--font-body);
}
.footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__email {
  color: var(--silver);
  font-size: 12px;
  transition: color 150ms ease-out;
}
.footer__email:hover {
  color: var(--forge-white);
}
