/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #0E0F11;
  --surface:      #16181C;
  --border:       #23262D;
  --text:         #F2F0EB;
  --muted:        #A8A4A0;
  --accent:       #C8B89A;
  --accent-bg:    #1A1D22;

  --font-heading: 'Cormorant Garant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:        1160px;
  --max-w-narrow: 720px;

  --radius:       4px;
  --transition:   0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

button { cursor: pointer; font-family: var(--font-body); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  border: 1px solid transparent;
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 10px 24px;
  min-width: unset;
  justify-content: center;
  transition: background 0.2s ease;
}

.btn--ghost:hover {
  background: rgba(200, 184, 154, 0.08);
}

.btn--accent {
  display: inline-block;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 52px;
  min-width: unset;
  margin-top: 40px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn--accent:hover {
  background: #D4C8B0;
}

.btn--submit {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: 56px;
  padding: 0 28px;
  justify-content: center;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.btn--submit:hover {
  background: #D4C8B0;
}

.btn--submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 15, 17, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
}

.nav__wordmark {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
  user-select: none;
}

.nav__logo {
  height: 250px;
  width: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
}

.hero__headline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 0;
}

.hero__caveat {
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero__caveat--guarantee {
  color: #C8B89A;
  margin-top: 8px;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.proof-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px;
}

.proof-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: nowrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 64px;
  text-align: center;
}

.proof-stat__number {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 26px;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.proof-stat__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.proof-bar__divider {
  width: 1px;
  height: 48px;
  background: #2E3138;
  flex-shrink: 0;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.section-headline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-bottom: 56px;
}

.section-context {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 28px;
  margin-top: -32px;
}

/* ============================================================
   PROBLEM — cards
   ============================================================ */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #1C1F25;
  border: 1px solid #32363F;
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
}

.card__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   SOLUTION — two-column
   ============================================================ */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: flex-start;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature__icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  display: block;
}

.feature__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.feature__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.metrics-card {
  background: #1C1F25;
  border: 1px solid #32363F;
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 36px;
  position: sticky;
  top: 88px;
}

.metrics-card__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.metrics-card__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
}

.metrics-card__number {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}

.metrics-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
}

.metrics-card__divider {
  height: 1px;
  background: var(--border);
}

.metrics-card__disclaimer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  color: #4A4D54;
  margin-top: 20px;
  line-height: 1.5;
}

/* ============================================================
   CASE STUDY — stats
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 0;
  padding: 48px 0;
  margin-bottom: 0;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 40px;
}

.stat-block:first-child {
  padding-left: 0;
}

.stat-block:last-child {
  padding-right: 0;
}

.stat-block__number {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 72px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-block__label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.stats-row__divider {
  display: none;
}

.stats-footnote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: #4A4D54;
  text-align: center;
  margin-top: 16px;
}

.case-study__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
  margin: 40px auto 0;
}

/* ============================================================
   PROCESS — steps
   ============================================================ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.step {
  background: #1C1F25;
  border: 1px solid #32363F;
  border-radius: 6px;
  padding: 32px;
}

.step__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 36px;
  color: rgba(200, 184, 154, 0.2);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.step__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 0;
}

.step__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
}

.steps-row__connector {
  display: none;
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */
/* Apply section — centred layout */
#solution .section-headline {
  font-size: clamp(34px, 3.5vw, 46px);
}

#apply .section-label {
  text-align: center;
  border-left: none;
  padding-left: 0;
  display: block;
}

#apply .section-headline {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.form-subtext {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
  margin-top: 0;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-input {
  background: var(--surface);
  border: 1px solid #2E3138;
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  height: 52px;
  padding: 0 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: #3A3D44;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-select {
  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 1l5 5 5-5' stroke='%23A8A4A0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.6;
}

.form-disclaimer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: #4A4D54;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.form-error {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: #C87070;
  min-height: 20px;
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 64px 0;
}

.form-success p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--accent);
  line-height: 1.4;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   DESKTOP HEADLINE WIDTH — forces hero headline to two lines
   ============================================================ */
@media (min-width: 961px) {
  .hero__inner {
    max-width: 900px;
  }
  .hero__headline {
    max-width: 900px;
    text-wrap: balance;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .metrics-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .container {
    padding: 0 24px;
  }

  .nav__inner {
    padding: 0 20px;
    justify-content: center;
  }

  .nav__inner .btn--ghost {
    display: none;
  }

  .hero {
    padding: 64px 24px calc(64px + 6vh);
  }

  .hero__headline {
    font-size: 44px;
    line-height: 1.08;
  }

  .hero__sub {
    font-size: 16px;
  }

  .section-headline {
    font-size: 38px;
    margin-bottom: 36px;
  }

  .proof-bar {
    padding: 20px 16px;
  }

  .proof-bar__inner {
    flex-direction: row;
    gap: 0;
  }

  .proof-bar__divider {
    display: block;
  }

  .proof-stat {
    padding: 0 8px;
    flex: 1;
  }

  .proof-stat__number {
    font-size: 13px;
    line-height: 1.4;
  }

  .card-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .stats-row__divider {
    display: none;
  }

  .stat-block,
  .stat-block:first-child,
  .stat-block:last-child {
    padding: 0 0 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .stat-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-block__number {
    font-size: 52px;
  }

  .case-study__body {
    margin-top: 28px;
  }
}
