/* =========================================
   Capital Fleet Tracker - Global Stylesheet
   Light Mode: White & Silver
   Dark Mode:  Dark & Gold
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ---------- Theme Tokens ---------- */
:root {
  /* Light Mode (default): White & Silver */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f5f7;
  --bg-tertiary: #e9ebef;
  --bg-elevated: #ffffff;
  --bg-inverse: #0c0d10;

  --text-primary: #0c0d10;
  --text-secondary: #4a4d56;
  --text-tertiary: #7a7e88;
  --text-inverse: #ffffff;

  --accent: #6b6e78;
  --accent-strong: #2a2c33;
  --accent-soft: #d4d6dc;

  --silver: #c2c5cc;
  --silver-light: #e4e6eb;
  --silver-dark: #8a8d96;

  --border: #dcdee3;
  --border-strong: #b7bac2;
  --shadow-sm: 0 1px 2px rgba(12, 13, 16, 0.04), 0 1px 3px rgba(12, 13, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 13, 16, 0.06), 0 2px 4px rgba(12, 13, 16, 0.04);
  --shadow-lg: 0 20px 50px rgba(12, 13, 16, 0.08), 0 10px 20px rgba(12, 13, 16, 0.04);

  --success: #1f8a4c;
  --warning: #b67611;
  --danger: #b8332a;

  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f1f2f5 100%);
  --gradient-accent: linear-gradient(135deg, #e9ebef 0%, #c2c5cc 100%);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Mode: Slate & Cyan */
  --bg-primary: #1b2630;
  --bg-secondary: #213140;
  --bg-tertiary: #2a3b4a;
  --bg-elevated: #2e4053;
  --bg-inverse: #d0e2e8;

  --text-primary: #d0e2e8;
  --text-secondary: #a9d1db;
  --text-tertiary: #89a9b4;
  --text-inverse: #16202a;

  --accent: #89a9b4;
  --accent-strong: #a9d1db;
  --accent-soft: #33495c;

  --silver: #89a9b4;
  --silver-light: #a9d1db;
  --silver-dark: #536878;

  --border: #536878;
  --border-strong: #6e8696;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 10px 20px rgba(0, 0, 0, 0.4);

  --success: #5cb578;
  --warning: #e0a93d;
  --danger: #d97169;

  --gradient-hero: radial-gradient(ellipse at top, rgba(137, 169, 180, 0.10) 0%, transparent 60%), linear-gradient(180deg, #1b2630 0%, #213140 100%);
  --gradient-accent: linear-gradient(135deg, #89a9b4 0%, #536878 100%);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; color: var(--text-secondary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

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

section { padding: 96px 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-primary) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-primary); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .brand-mark { color: #0c0d10; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent-strong);
  color: var(--text-inverse);
  border-color: var(--accent-strong);
}
[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #0c0d10;
  border-color: var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-inverse);
}
[data-theme="dark"] .btn-primary:hover { color: #0c0d10; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero h1 {
  font-weight: 400;
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
}
.hv-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hv-stat {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.hv-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.hv-stat-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
}
[data-theme="dark"] .hv-stat-pct { color: var(--accent); }
.hv-stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.hv-stat-total {
  font-size: 1.1rem;
  color: var(--text-tertiary);
}

.hv-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}
.hv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  animation: fadeSlide 0.6s var(--ease) backwards;
}
.hv-item:last-child { border-bottom: none; }
.hv-item:nth-child(1) { animation-delay: 0.2s; }
.hv-item:nth-child(2) { animation-delay: 0.35s; }
.hv-item:nth-child(3) { animation-delay: 0.5s; }
.hv-item:nth-child(4) { animation-delay: 0.65s; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.hv-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.hv-item-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.hv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 4px;
  border-top: 1px solid var(--border);
}
.hv-foot-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hv-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
}
.hv-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hv-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
[data-theme="dark"] .hv-pill { color: var(--accent-strong); }

.hv-pill-green {
  background: rgba(31, 138, 76, 0.12);
  color: #1f8a4c;
}
[data-theme="dark"] .hv-pill-green {
  background: rgba(92, 181, 120, 0.16);
  color: #5cb578;
}

.hv-pill-amber {
  background: rgba(182, 118, 17, 0.12);
  color: #b67611;
}
[data-theme="dark"] .hv-pill-amber {
  background: rgba(224, 169, 61, 0.16);
  color: #e0a93d;
}

.hv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hv-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  overflow: hidden;
}
.hv-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 100px;
}

/* ---------- Sections ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

.bg-soft { background: var(--bg-secondary); }

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
[data-theme="dark"] .feature-icon { color: var(--accent); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  position: relative;
  padding-top: 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-strong);
  color: var(--text-inverse);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}
[data-theme="dark"] .price-card.featured::before {
  background: var(--accent);
  color: #0c0d10;
}
.price-tier { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}
.price-amount sub { font-size: 0.9rem; color: var(--text-tertiary); font-weight: 400; letter-spacing: 0; }
.price-desc { color: var(--text-secondary); font-size: 0.95rem; margin: 14px 0 24px; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-list li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border);
}
.price-list li:first-child { border-top: none; }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 14px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.price-list li::after {
  content: '';
  position: absolute;
  left: 4px; top: 21px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent-strong);
  border-bottom: 1.5px solid var(--accent-strong);
  transform: rotate(-45deg);
}
[data-theme="dark"] .price-list li::after { border-color: var(--accent); }

/* ---------- Table ---------- */
.table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data-table thead {
  background: var(--bg-secondary);
}
.data-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.data-table tr:first-child td { border-top: none; }
.data-table td:first-child { color: var(--text-primary); font-weight: 500; }
.data-table .discount {
  font-weight: 600;
  color: var(--accent-strong);
}
[data-theme="dark"] .data-table .discount { color: var(--accent); }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(60px);
}
.cta-strip h2 { color: var(--text-inverse); position: relative; }
.cta-strip p { color: rgba(255, 255, 255, 0.7); position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
[data-theme="dark"] .cta-strip p { color: rgba(208, 226, 232, 0.7); }
.cta-strip .btn-primary {
  background: #ffffff;
  color: #0c0d10;
  border-color: #ffffff;
  position: relative;
}
[data-theme="dark"] .cta-strip .btn-primary {
  background: var(--accent);
  color: #0c0d10;
  border-color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 24px; max-width: 700px; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 18px;
  max-width: 580px;
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-help { font-size: 0.82rem; color: var(--text-tertiary); }

/* ---------- Industry / Component cards ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tile p { font-size: 0.93rem; margin: 0; }

/* ---------- Connect / Social ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease);
}
.social-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  color: var(--text-primary);
}
.social-left { display: flex; align-items: center; gap: 18px; }
.social-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  flex-shrink: 0;
}
[data-theme="dark"] .social-icon { color: var(--accent); }
.social-name { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.social-handle { font-size: 0.85rem; color: var(--text-tertiary); }
.social-arrow { color: var(--text-tertiary); transition: transform 0.2s var(--ease); }
.social-card:hover .social-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 { margin-top: 2.2em; font-size: 1.6rem; }
.legal-body h3 { margin-top: 1.8em; font-size: 1.15rem; }
.legal-body p, .legal-body li { color: var(--text-secondary); }
.legal-body ul { padding-left: 1.2em; }
.legal-meta { color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: 2.5em; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 60px 24px;
  background: var(--gradient-hero);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 26px; }
.auth-card .btn { width: 100%; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 0.92rem; color: var(--text-tertiary); }
.auth-status { min-height: 1.2em; margin: 0; }
.auth-status.error { color: var(--danger); font-weight: 600; }
.auth-status.success { color: var(--success); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand p {
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.93rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-secondary);
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-tertiary); }
.divider { height: 1px; background: var(--border); margin: 48px 0; border: none; }
.note {
  padding: 18px 22px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .feature-grid, .pricing-grid, .tile-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 24px 28px;
    gap: 18px;
  }
  .mobile-toggle { display: grid; place-items: center; }
  .feature-grid, .pricing-grid, .tile-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .auth-card { padding: 28px; }
  .hero { padding: 70px 0 60px; }
  .hero-visual { padding: 18px; gap: 12px; }
  .hv-stat { padding: 14px 16px; }
  .hv-stat-value { font-size: 2rem; }
  .hv-item { padding: 10px 4px; }
  .hv-item-title { font-size: 0.9rem; }
  .hv-item-sub { font-size: 0.75rem; }
}
