/* ══════════════════════════════════════════════════════════════════
   v2-base.css — CSS variables, reset, typography
   CabHero landingpage redesign — premium SaaS direction
   ══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ── Core surfaces ── */
  --bg:         #09090b;
  --bg2:        #0f0f11;
  --bg3:        #15151a;
  --bg-card:    #17171c;
  --bg-raised:  #1c1c22;

  /* ── Lines & borders ── */
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.12);
  --line-light: #e7e8ec;

  /* ── Text ── */
  --text:       #fafafa;
  --text-dim:   #d4d4d8;
  --muted:      #9ca3af;
  --muted-2:    #6b7280;

  /* Light-section text */
  --text-light:  #0b0b0f;
  --muted-light: #5b6170;

  /* ── Brand ── */
  --accent:   #f59e0b;
  --accent2:  #fbbf24;
  --accent-tint:   rgba(245,158,11,0.12);
  --accent-tint-2: rgba(245,158,11,0.22);
  --accent-soft:   rgba(245,158,11,0.06);

  /* Legacy aliases (kept so existing pages keep rendering) */
  --border:    var(--line);
  --white:     #ffffff;

  /* ── Shape ── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --v2-card-radius: 20px;

  /* ── Shadows & glow ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 10px 30px rgba(15,23,42,0.10);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.45);
  --shadow-xl: 0 50px 120px rgba(0,0,0,0.55);
  --glow-amber:   0 0 120px 20px rgba(245,158,11,0.22);
  --glow-amber-sm:0 0 60px 4px rgba(245,158,11,0.28);

  /* ── Layout ── */
  --v2-nav-height:     92px;
  --v2-section-py:     112px;
  --v2-section-px:     5%;
  --v2-section-padding: var(--v2-section-py) var(--v2-section-px);
  --v2-hero-gradient: radial-gradient(ellipse 900px 520px at 50% 0%, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.04) 35%, transparent 70%);

  /* ── Light section backgrounds ── */
  --bg-light:  #fafafa;
  --bg-light-2: #ffffff;

  /* ── Motion ── */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 150ms;
  --dur:      220ms;
  --dur-slow: 380ms;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  font-feature-settings: 'cv11','ss01';
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-weight: 700; }
h2, h3, .v2-section-title { font-weight: 700; }
p  { line-height: 1.65; margin: 0; }
label, nav a { font-weight: 500; }

/* ── Section helpers ── */
section { padding: var(--v2-section-padding); }

.v2-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.v2-section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.v2-section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  max-width: 640px;
  text-wrap: balance;
}

.v2-section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.65;
}

.v2-center { text-align: center; }
.v2-center .v2-section-label { justify-content: center; }
.v2-center .v2-section-title,
.v2-center .v2-section-desc { margin-left: auto; margin-right: auto; }

/* ── Light / dark section helpers ── */
.v2-bg-light { background: var(--bg-light); }
.v2-bg-light .v2-section-label { color: var(--accent); }
.v2-bg-light .v2-section-title { color: var(--text-light); }
.v2-bg-light .v2-section-desc  { color: var(--muted-light); }

.v2-bg-dark { background: var(--bg2); }

/* Amber gradient text (used on hero <em>) */
.amber-grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent2) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Reveal-on-scroll base (progressive enhancement; works without JS) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
