/* ══════════════════════════════════════════════════════════════
 * Sampingan.io Coming Soon — Official Design Tokens & Typography
 * Matches sampingan/apps/web/src/app/globals.css
 * Font loaded directly via <link> in index.html (no @import waterfall)
 * ══════════════════════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #f8fafc;
  --card-foreground: #0f172a;
  --muted: #e2e8f0;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --accent: #eff6ff;
  --accent-foreground: #2563eb;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #0f172a;
  --secondary-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --success: #15803d;

  /* Brand Palette */
  --brand-blue: #2563eb;
  --brand-green: #00f172;
  --brand-green-hover: #00dc68;
  --brand-navy: #0f172a;
  --brand-midnight: #0b1120;
  --brand-violet: #281c3a;

  /* Hero Kinetic Mosaic — Sampingan Palette (Light Mode) */
  --hero-canvas: #ffffff;
  --bp-line: rgba(15, 23, 42, 0.14);
  --bp-subgrid: rgba(15, 23, 42, 0.055);
  --bp-pin: #0f172a;
  --shape-blue: #2563eb;
  --shape-green: #00f172;
  --shape-navy: #0f172a;
  --shape-violet: #281c3a;
  --shape-sky: #93c5fd;
  --shape-mint: #7af6b4;
  --shape-slate: #cbd5e1;

  /* Surface Helpers */
  --surface-subtle: rgba(248, 250, 252, 0.85);
  --surface-hover: rgba(241, 245, 249, 0.9);
  --compare-right-bg: rgba(248, 250, 252, 0.92);
  --badge-bg: rgba(15, 23, 42, 0.05);
  --badge-border: rgba(226, 232, 240, 0.9);
  --faq-icon-bg: rgba(241, 245, 249, 0.85);
  --faq-icon-hover: #e2e8f0;
  --faq-row-hover: rgba(248, 250, 252, 0.7);
  --check-badge-bg: #0f172a;
  --check-badge-fg: #00f172;
  --nav-cta-bg: #0f172a;
  --nav-cta-fg: #ffffff;
  --subtitle-grad-start: #0f172a;
  --subtitle-grad-mid: #334155;
  --subtitle-grad-end: #64748b;
  --faq-accent-icon: #059669;

  /* Typography */
  --font-sans: "Satoshi", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Radii & Layout */
  --radius: 1.3rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-4xl: 2rem;
  --container-max: 1280px;
}

.dark,
[data-theme="dark"] {
  --background: #0b1120;
  --foreground: #f8fafc;
  --card: #0f172a;
  --card-foreground: #e2e8f0;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --border: #1e293b;
  --input: #1e293b;
  --accent: #172554;
  --accent-foreground: #3b82f6;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #00f172;
  --secondary-foreground: #0f172a;
  --destructive: #f87171;
  --destructive-foreground: #ffffff;
  --success: #00f172;

  /* Dark Surface Helpers */
  --hero-canvas: #0b1120;
  --bp-line: rgba(248, 250, 252, 0.14);
  --bp-subgrid: rgba(59, 130, 246, 0.08);
  --bp-pin: #f8fafc;
  --shape-blue: #2563eb;
  --shape-green: #00f172;
  --shape-navy: #1e293b;
  --shape-violet: #432c66;
  --shape-sky: #60a5fa;
  --shape-mint: #34d399;
  --shape-slate: #334155;

  --surface-subtle: rgba(15, 23, 42, 0.72);
  --surface-hover: rgba(30, 41, 59, 0.8);
  --compare-right-bg: #0f172a;
  --badge-bg: rgba(255, 255, 255, 0.08);
  --badge-border: rgba(255, 255, 255, 0.1);
  --faq-icon-bg: rgba(255, 255, 255, 0.06);
  --faq-icon-hover: rgba(255, 255, 255, 0.12);
  --faq-row-hover: rgba(255, 255, 255, 0.025);
  --check-badge-bg: #00f172;
  --check-badge-fg: #0b1120;
  --nav-cta-bg: #ffffff;
  --nav-cta-fg: #0b1120;
  --subtitle-grad-start: #ffffff;
  --subtitle-grad-mid: #e2e8f0;
  --subtitle-grad-end: #64748b;
  --faq-accent-icon: #00f172;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

[hidden] {
  display: none !important;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

button,
input {
  font-family: inherit;
}

::selection {
  background-color: #2563eb;
  color: #ffffff;
}

/* ── Theme-Aware Logo Visibility (Zero Flicker) ───────────────── */
.logo-theme-light {
  display: block;
}
.logo-theme-dark {
  display: none;
}
.dark .logo-theme-light,
[data-theme="dark"] .logo-theme-light {
  display: none !important;
}
.dark .logo-theme-dark,
[data-theme="dark"] .logo-theme-dark {
  display: block !important;
}

/* ── Container & Accessibility Helpers ────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Off-screen honeypot trap (invisible to humans, accessible to naive bots) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Scroll Reveal Motion ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
