/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --ink:       #0a0a0f;
  --ink-soft:  #3a3a4a;
  --ink-muted: #7a7a8f;
  --cream:     #faf9f6;
  --gold:      #c9a84c;
  --gold-light:#f0d880;
  --gold-dark: #9a7a2a;
  --surface:   #ffffff;
  --border:    #e8e5de;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10,10,15,0.06);
  --shadow-md: 0 8px 32px rgba(10,10,15,0.10);
  --shadow-lg: 0 24px 64px rgba(10,10,15,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark { color: var(--gold); font-size: 1.1rem; }
.logo-text { font-size: 1.2rem; font-weight: 300; letter-spacing: -0.02em; }
.logo-text strong { font-weight: 600; }

.header-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.header-cta:hover { background: var(--ink); color: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}
h1 em {
  font-style: italic;
  color: var(--gold-dark);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat span {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
}
.stat small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: fadeUp 0.7s 0.15s ease both;
}

.form-card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.form-card-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.form-card-header p {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* FIELDS */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0;
}
.field-row .field { margin-bottom: 1rem; }

label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

input, select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
input::placeholder { color: var(--ink-muted); }
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: #fff;
}

.select-wrap {
  position: relative;
}
.select-wrap select { cursor: pointer; padding-right: 2.5rem; }
.select-arrow {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* PHONE FIELD */
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--cream);
}
.phone-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: #fff;
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--border);
  border-right: 1.5px solid var(--border);
  user-select: none;
  white-space: nowrap;
}
.phone-wrap input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
}
.phone-wrap input:focus {
  border: none !important;
  box-shadow: none !important;
}
.field-hint {
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-top: -0.15rem;
}

/* SUBMIT BUTTON */
.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.submit-btn:hover { background: #1a1a2a; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.submit-btn:hover::before { opacity: 1; }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.75rem;
}
.form-disclaimer a { color: var(--gold-dark); text-decoration: none; }

/* SUCCESS & ERROR */
.success-state {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeUp 0.4s ease both;
}
.success-icon {
  width: 56px;
  height: 56px;
  background: #d4edda;
  color: #2d7a45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.success-state h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.success-state p { color: var(--ink-soft); font-size: 0.95rem; }

.error-state {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
}

.hidden { display: none !important; }

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process {
  background: var(--ink);
  color: var(--cream);
  padding: 6rem 5%;
}
.process-inner { max-width: 960px; margin: 0 auto; }

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: rgba(250,249,246,0.5);
  margin-bottom: 3.5rem;
  font-size: 0.95rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.step {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.step:hover { background: rgba(255,255,255,0.07); }

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.step p { font-size: 0.88rem; color: rgba(250,249,246,0.6); line-height: 1.6; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin-top: 2.5rem;
  flex-shrink: 0;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
}
.trust-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  padding: 2rem 5%;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
footer .logo-text { color: rgba(250,249,246,0.8); }
footer .logo-text strong { color: var(--cream); }
.footer-copy { font-size: 0.78rem; color: rgba(250,249,246,0.35); }
.footer-link { font-size: 0.78rem; color: rgba(250,249,246,0.45); text-decoration: none; }
.footer-link:hover { color: var(--gold); }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 5% 4rem;
    gap: 2.5rem;
  }
  .steps {
    flex-direction: column;
  }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; }
}

@media (max-width: 600px) {
  header { padding: 0.9rem 1.25rem; }
  .form-card { padding: 1.75rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
