/* ==========================================================================
   HAIQ Design System — Colors & Type
   Dark Cinematic / Ascend-style — All black with subtle white luminance.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Color tokens ---------- */
  --bg-page: #09090B;
  --bg-section: #111113;
  --bg-card: #18181B;
  --bg-card-hover: #27272A;
  --bg-tertiary: #27272A;
  --bg-elevated: #1C1C20;

  --border: #27272A;
  --border-strong: #3F3F46;
  --border-hover: #52525B;

  --fg-primary: #FAFAFA;
  --fg-secondary: #D4D4D8;
  --fg-tertiary: #A1A1AA;
  --fg-label: #818CF8;
  --fg-muted: #71717A;
  --fg-disabled: #52525B;
  --color-card-title: #FAFAFA;

  --accent: #FAFAFA;
  --accent-primary: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-muted: #6366F1;

  --glow-soft: rgba(255, 255, 255, 0.03);   /* Section bloom */
  --glow-medium: rgba(255, 255, 255, 0.06);
  --glow-strong: rgba(255, 255, 255, 0.1);

  --gradient-radial: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);

  /* ---------- Type families ---------- */
  --font-serif: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* ---------- Type scale ---------- */
  --fs-hero: clamp(42px, 6vw, 80px);        /* H1 */
  --fs-h2:   clamp(32px, 4.5vw, 56px);      /* Section H2 */
  --fs-h3:   24px;                          /* Card H3 */
  --fs-h4:   20px;
  --fs-stat: clamp(56px, 8vw, 96px);        /* Big counter */
  --fs-body: 16px;                          /* Default body */
  --fs-body-sm: 14px;
  --fs-caption: 13px;
  --fs-label: 12px;                          /* Eyebrow uppercase */
  --fs-micro: 10px;

  --lh-display: 1.15;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --lh-tight: 1.3;

  --ls-display: -0.03em;
  --ls-body: -0.01em;
  --ls-label: 0.1em;

  /* ---------- Geometry ---------- */
  --radius-section: 24px;
  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-chip: 12px;

  --space-section-y: 80px;
  --space-section-x: 60px;
  --space-section-y-mobile: 60px;
  --space-section-x-mobile: 24px;

  --maxw-content: 1200px;
  --maxw-section: 1300px;

  /* ---------- Elevation / glow ---------- */
  --shadow-section: 0 0 80px rgba(255, 255, 255, 0.03);
  --shadow-card-hover: 0 0 0 1px rgba(255,255,255,0.15), 0 20px 40px rgba(0,0,0,0.6);

  /* ---------- Motion ---------- */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;
  --dur-reveal: 1s;
}

/* ==========================================================================
   Base / semantic styles
   ========================================================================== */

html, body {
  background: var(--bg-page);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  color: var(--fg-primary);
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: -0.03em;
  color: var(--fg-primary);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--fg-primary);
}

p, .body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.01em;
  color: var(--fg-secondary);
}

.serif-accent,
em.accent,
.italic {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 400;
}

.label,
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-label);
}

.caption {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  color: var(--fg-tertiary);
  line-height: 1.5;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-primary);
}

/* ==========================================================================
   Reusable surface + control classes
   ========================================================================== */

.section-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-section);
  position: relative;
  overflow: hidden;
}

.inner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform var(--dur-base) var(--ease-cinematic),
              border-color var(--dur-base) var(--ease-cinematic),
              background var(--dur-base) var(--ease-cinematic);
}

.inner-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-cinematic);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg-primary);
}

.btn-pill:hover {
  background: #E4E4E7;
  color: #09090B;
  transform: scale(1.03);
}

.btn-pill--ghost {
  border-color: #52525B;
  color: #FAFAFA;
}

.btn-pill--ghost:hover {
  background: #18181B;
  color: #FAFAFA;
  transform: translateY(-1px);
  border-color: #52525B;
}

.btn-pill--filled {
  background: #FAFAFA;
  color: #09090B;
  border-color: #FAFAFA;
}

.btn-pill--filled:hover {
  background: #E4E4E7;
  transform: scale(1.03);
}

/* ==========================================================================
   Typographic hierarchy utility classes
   ========================================================================== */

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.card-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #F5F5F5;
}

.body-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: #D4D4D4;
}

.small-text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #A3A3A3;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7C6AE8;
}

.metric-number {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: #A3A3A3;
}

.cta-button {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.price {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
