/* ===== Duo HQ — Design tokens ===== */
:root {
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --bg-card: #181818;
  --border: rgba(245, 242, 238, 0.10);
  --border-strong: rgba(245, 242, 238, 0.18);
  --text: #F5F2EE;
  --text-muted: #A8A29B;
  --gold: #C9A24B;
  --gold-light: #DDBD70;
  --gold-dark: #A9843A;
  --radius: 10px;
  --max-width: 1180px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.gold { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  min-height: 44px;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #171207;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.logo .rule {
  width: 42px;
  height: 3px;
  background: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

/* ===== Bottom tab bar (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-nav-list li { flex: 1; }

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 6px 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 150ms ease;
}

.bottom-nav-link svg { flex-shrink: 0; }

.bottom-nav-link[aria-current="page"] { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  padding: var(--space-7) 0 var(--space-6);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-copy p.lead {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.hero-cols p { font-size: 0.95rem; }

.hero-graphic { display: flex; justify-content: center; align-items: center; }
.hero-graphic svg { width: 100%; height: auto; max-width: 420px; }

/* ===== Sections ===== */
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head p { margin-top: var(--space-2); font-size: 1.05rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color 200ms ease, transform 200ms ease;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.card h3 { margin-bottom: var(--space-1); }
.card p { margin-top: 6px; font-size: 0.95rem; }

.card-list {
  margin-top: var(--space-3);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.card-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  margin-top: 8px;
}

/* ===== Process steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-strong);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.step h3 { margin-top: var(--space-2); font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 0.9rem; }

/* ===== CTA banner ===== */
.cta-banner {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: var(--space-6) var(--space-5);
  text-align: center;
  background: linear-gradient(180deg, rgba(201,162,75,0.06), transparent);
}

.cta-banner h2 { max-width: 640px; margin: 0 auto; }
.cta-banner p { margin-top: var(--space-2); }
.cta-banner .hero-actions { justify-content: center; }

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) 0;
  text-align: center;
}

.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  max-width: 200px;
  margin: 0 auto;
  border-radius: 999px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info { padding: var(--space-3); text-align: center; }
.team-role { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.team-info p.bio { margin-top: var(--space-2); font-size: 0.92rem; }

/* ===== Bundle callout ===== */
.bundle-callout {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px dashed var(--gold-dark);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
  background: rgba(201, 162, 75, 0.05);
}

.bundle-callout .icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(201, 162, 75, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-3); }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.form-field .required { color: var(--gold); margin-left: 2px; }

.form-field input,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  transition: border-color 150ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field .error-text {
  display: none;
  font-size: 0.82rem;
  color: #E08A6B;
}

.form-field.has-error input,
.form-field.has-error textarea { border-color: #E08A6B; }
.form-field.has-error .error-text { display: block; }

.form-status {
  display: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.form-status.show { display: block; }
.form-status.success { background: rgba(201, 162, 75, 0.12); color: var(--gold-light); border: 1px solid var(--gold-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.contact-info .info-row {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.contact-info .info-row:first-child { padding-top: 0; }

.contact-info .info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-links { display: flex; gap: var(--space-4); }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Page header (interior pages) ===== */
.page-hero {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
}
.page-hero p.lead { margin-top: var(--space-3); font-size: 1.1rem; max-width: 60ch; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .bottom-nav { display: block; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; max-width: 260px; margin: 0 auto; }
  .hero-cols { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { max-width: 160px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
