/* CabAtlas Landing — palette from Theme.swift */
:root {
  --amber: #ffc107;
  --amber-dim: #eb9e0d;
  --mint: #59c7b8;
  --cream: #faf0d1;
  --bg: #0f1217;
  --surface: #1c1f26;
  --surface-elevated: #262933;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --success: #4dd980;
  --radius-card: 16px;
  --radius-chip: 12px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 64px;
  --container: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--cream); }

.container { width: var(--container); margin-inline: auto; }

/* Ambient glow */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.ambient--amber {
  width: 480px; height: 480px;
  top: -120px; right: -80px;
  background: rgba(255, 193, 7, 0.14);
}
.ambient--mint {
  width: 360px; height: 360px;
  bottom: 20%; left: -100px;
  background: rgba(89, 199, 184, 0.08);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 18, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,193,7,0.38), var(--surface-elevated), rgba(20,36,56,1));
  border: 2px solid rgba(255, 193, 7, 0.55);
  color: var(--amber);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.25);
}
.logo-mark--sm { width: 28px; height: 28px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-dim));
  color: var(--bg) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-chip);
  background: var(--glass);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-title-line { display: block; }
.hero-title-accent {
  background: linear-gradient(90deg, var(--amber), var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.hero-desc {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(90deg, var(--amber), var(--amber-dim));
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(255, 193, 7, 0.35);
}
.btn-primary:hover { color: var(--bg); box-shadow: 0 6px 32px rgba(255, 193, 7, 0.45); }

.btn-ghost {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: lowercase;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 340px;
}

.hero-card {
  position: relative;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255,193,7,0.15), var(--surface-elevated), rgba(20,36,56,0.9));
  border: 1px solid rgba(255, 193, 7, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.hero-card--passport {
  position: absolute;
  top: 0; left: 0;
  width: 58%;
  z-index: 2;
}
.hero-card--desk {
  position: absolute;
  bottom: 0; right: 0;
  width: 62%;
  z-index: 3;
  background: linear-gradient(135deg, rgba(89,199,184,0.12), var(--surface), var(--surface-elevated));
  border-color: var(--glass-border);
}

.hero-card-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.stamp-row { display: flex; gap: 0.5rem; }
.stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: var(--surface);
  font-size: 1.25rem;
  opacity: 0.35;
}
.stamp--earned {
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.2);
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
}

.desk-metric { margin-bottom: 0.75rem; }
.desk-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.desk-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--success);
}

.desk-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.desk-bars span {
  display: block;
  height: 6px;
  width: var(--w);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-dim));
  opacity: 0.7;
}

.hero-glow {
  position: absolute;
  inset: 20% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,193,7,0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}
.section--about { background: rgba(255,255,255,0.02); }
.section--privacy { background: linear-gradient(180deg, transparent, rgba(20,36,56,0.35)); }
.section--contact { padding-bottom: 6rem; }

.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.section-title {
  margin: 0 0 1rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 3rem;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.08);
  transform: translateY(-2px);
}

.feature-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  opacity: 0.8;
}

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-blocks p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}
.about-disclaimer {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-chip);
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
}
.about-disclaimer strong { color: var(--amber); }

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--glass-border);
}
.about-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.about-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.about-card--accent {
  background: linear-gradient(135deg, rgba(255,193,7,0.2), rgba(89,199,184,0.1), var(--surface-elevated));
  border-color: rgba(255, 193, 7, 0.3);
}
.about-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  text-align: center;
}

/* Privacy */
.privacy-intro, .privacy-meta, .privacy-entity {
  max-width: 62ch;
  color: var(--text-secondary);
}
.privacy-meta { font-size: 0.9rem; color: var(--text-tertiary); }
.privacy-entity { margin-bottom: 2.5rem; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.policy-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--glass-border);
}
.policy-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.policy-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.policy-card p:last-child { margin-bottom: 0; }
.policy-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.policy-card li { margin-bottom: 0.35rem; }
.policy-card--contact a { font-weight: 500; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-copy p { color: var(--text-secondary); }
.contact-note { font-size: 0.9rem; color: var(--text-tertiary) !important; }

.contact-cards {
  display: grid;
  gap: 1rem;
}
.contact-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(255, 193, 7, 0.3); }
.contact-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}
.contact-card a {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-all;
}
.contact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.25);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.footer-nav a:hover { color: var(--text-primary); }

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    margin-top: 1rem;
  }

  .section-title { max-width: none; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(15, 18, 23, 0.97);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }

  .hero { padding: 2.5rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }

  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
