/* ─────────────────────────────────────────────
   Torsen — style.css
   Design tokens · Layout · Components · Motion
───────────────────────────────────────────── */

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

:root {
  /* Palette */
  --gold:          #C9A55A;
  --gold-light:    #DFC07A;
  --gold-pale:     #EDD9A3;
  --gold-dim:      rgba(201, 165, 90, 0.12);
  --gold-border:   rgba(201, 165, 90, 0.28);
  --gold-glow:     rgba(201, 165, 90, 0.08);

  --bg:            #07070d;
  --bg-surface:    rgba(255, 255, 255, 0.033);
  --bg-surface-hi: rgba(255, 255, 255, 0.055);

  --text:          #f0ede8;
  --text-muted:    rgba(240, 237, 232, 0.42);
  --text-dim:      rgba(240, 237, 232, 0.22);

  --border:        rgba(255, 255, 255, 0.065);
  --border-hi:     rgba(255, 255, 255, 0.12);

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  /* Type */
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Fixed canvas (particles) ── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Noise grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ── Hero radial glow ── */
.hero-glow {
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 130vw);
  height: 70vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 165, 90, 0.07) 0%, transparent 68%);
  z-index: 1;
  pointer-events: none;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 2;
}

/* ────────────────────────────────
   NAV
──────────────────────────────── */
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s7) var(--s6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;

  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.6s var(--ease-out) 0.05s forwards;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark { width: auto; height: 36px; flex-shrink: 0; }

.logo-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-cta {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-cta:hover { color: var(--text); }

/* ────────────────────────────────
   HERO
──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--s5);
  padding-top: var(--s9);
  text-align: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  background: var(--gold-dim);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s7);

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s var(--ease-out) 0.2s forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 165, 90, 0.5);
  animation: ripple 2.2s ease-in-out infinite;
}

@keyframes ripple {
  0%   { box-shadow: 0 0 0 0   rgba(201,165,90,0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(201,165,90,0);   }
  100% { box-shadow: 0 0 0 0   rgba(201,165,90,0);   }
}

/* Headline */
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7.5vw, 86px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 820px;
  color: var(--text);

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-headline em {
  font-style: italic;
  background: linear-gradient(130deg, var(--gold-pale) 0%, var(--gold) 55%, #A8813A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-copy */
.hero-sub {
  margin-top: var(--s5);
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;

  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

/* Stats row */
.stats {
  display: flex;
  align-items: center;
  gap: var(--s7);
  margin-top: var(--s8);

  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.8s var(--ease-out) 0.62s forwards;
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  margin-top: var(--s1);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero email bar */
.hero-form-wrap {
  margin-top: var(--s7);
  width: 100%;
  max-width: 440px;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s var(--ease-out) 0.75s forwards;
}

.hero-bar {
  display: flex;
  gap: var(--s2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 5px 5px 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-bar:focus-within {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 4px 32px rgba(0,0,0,0.25);
}

.hero-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
}

.hero-input::placeholder { color: var(--text-muted); }

.btn-gold {
  flex-shrink: 0;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light) 0%, #A8813A 100%);
  color: #0c0700;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
  white-space: nowrap;
}

.btn-gold:hover  { opacity: 0.88; transform: translateY(-2px); }
.btn-gold:active { transform: translateY(0); opacity: 1; }
.btn-gold:disabled { opacity: 0.5; cursor: default; transform: none; }

.hero-note {
  margin-top: var(--s3);
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.hero-form-success {
  display: none;
  text-align: center;
  padding: var(--s4) 0;
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* Scroll cue */
.scroll-cue {
  margin-top: auto;
  padding: var(--s8) 0 var(--s7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 1.1s forwards;
}

.scroll-cue span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   }
  50%       { transform: rotate(45deg) translateY(5px); }
}

/* ────────────────────────────────
   HOW IT WORKS
──────────────────────────────── */
.section {
  padding: var(--s10) var(--s5);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: var(--s4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  margin-bottom: var(--s9);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--s7) var(--s6) var(--s6);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-spring);
  /* reveal starts from JS */
}

.step-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-surface-hi);
  transform: translateY(-4px);
}

.step-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s5);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: var(--s3);
}

.step-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ────────────────────────────────
   DIVIDER
──────────────────────────────── */
.divider {
  max-width: 960px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.divider.visible {
  opacity: 1;
  transform: scaleX(1);
}

/* ────────────────────────────────
   TRUST / PRIVACY
──────────────────────────────── */
.trust-section {
  padding: var(--s10) var(--s5);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.trust-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-block {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.trust-text {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: var(--text-muted);
}

/* ────────────────────────────────
   CONTACT / DUAL CTA
──────────────────────────────── */
.contact-section {
  padding: var(--s10) var(--s5) var(--s10);
  display: flex;
  flex-direction: column;
  align-items: center;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  width: 100%;
  max-width: 860px;
  margin-top: var(--s7);
}

.contact-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: var(--s7) var(--s6);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-card:focus-within {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 12px 60px rgba(0,0,0,0.3);
}

.cta-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--s2);
}

.cta-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--s5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-label .opt {
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  margin-left: var(--s1);
}

.field-input,
.field-textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input::placeholder,
.field-textarea::placeholder { color: rgba(240,237,232,0.22); }

.field-input:focus,
.field-textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.65;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold-light) 0%, #A8813A 100%);
  color: #0c0700;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
}

.btn-submit:hover  { opacity: 0.88; transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.5; cursor: default; transform: none; }

.form-error {
  display: none;
  font-size: 13px;
  color: #e07a7a;
  text-align: center;
  margin-top: var(--s2);
}

.form-success-msg {
  display: none;
  text-align: center;
  padding: var(--s5) 0 var(--s2);
  font-size: 14.5px;
  color: var(--gold-light);
  line-height: 1.65;
}

/* ────────────────────────────────
   FOOTER
──────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  padding: var(--s6) var(--s5) var(--s7);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ────────────────────────────────
   ANIMATIONS
──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 720px) {
  .hero {
    padding-top: var(--s8);
    padding-left: var(--s4);
    padding-right: var(--s4);
  }

  .hero-headline {
    font-size: clamp(36px, 9vw, 52px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .stats {
    flex-direction: column;
    gap: var(--s5);
  }

  .stat-sep { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .step-card { padding: var(--s5) var(--s5) var(--s5); }

  .nav { padding: var(--s5) var(--s4) 0; }

  .section {
    padding: var(--s8) var(--s4);
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: var(--s7);
  }

  .contact-section {
    padding: var(--s8) var(--s4);
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .contact-card { padding: var(--s6) var(--s4); }

  .trust-section { padding: var(--s8) var(--s4); }

  .scroll-cue { padding-top: var(--s7); }

  .badge { margin-bottom: var(--s6); }

  .footer { padding: var(--s5) var(--s4); }
}

@media (max-width: 380px) {
  .hero-headline {
    font-size: 32px;
  }

  .stat-value {
    font-size: 28px;
  }

  .contact-card { padding: var(--s5) var(--s3); }

  .cta-card-title { font-size: 19px; }
}
