/* ============================================================
   SPLASH TIME — Design Tokens
   Art direction: deep navy foundation, clean aqua/blue,
   restrained lime accent, generous whitespace, sharp type.
   Premium / architectural — NOT cartoony pressure-washer clip art.
   ------------------------------------------------------------
   Main agent iteration notes:
   - All colors, spacing, radii, type sizes live here.
   - Change --brand-* to reshade the whole site.
   - Both light + dark modes defined.
   ============================================================ */

:root {
  /* ---------- Type scale (fluid) ---------- */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* ---------- Radii ---------- */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ---------- Content widths ---------- */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* ---------- Motion ---------- */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---------- Fonts ---------- */
  --font-display: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', system-ui, sans-serif;

  /* ============================================================
     BRAND PALETTE — the core identity
     ============================================================ */
  --brand-navy:       #0a1a2f;   /* deepest — hero ground */
  --brand-navy-2:     #0e2540;   /* raised navy panels */
  --brand-navy-3:     #143050;   /* borders on dark */
  --brand-aqua:       #23c4d6;   /* clean aqua highlight */
  --brand-blue:       #2f7ad1;   /* trustworthy service blue */
  --brand-blue-deep:  #1a4f8f;
  --brand-lime:       #b6e63e;   /* restrained lime accent — sparing use only */
  --brand-lime-deep:  #93c020;
}

/* ---------- LIGHT MODE ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f5f8fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f8;
  --color-surface-offset: #e4ecf3;
  --color-divider: #d9e2ec;
  --color-border: #cbd7e3;

  --color-text: #0c1b2e;
  --color-text-muted: #51637a;
  --color-text-faint: #8fa0b5;
  --color-text-inverse: #f5f8fb;

  --color-primary: var(--brand-blue-deep);
  --color-primary-hover: #143f74;
  --color-accent: var(--brand-aqua);
  --color-accent-deep: #148a99;
  --color-lime: var(--brand-lime-deep);

  /* On-dark hero surfaces stay navy in both modes */
  --color-ink: var(--brand-navy);
  --color-ink-2: var(--brand-navy-2);
  --color-ink-border: var(--brand-navy-3);

  --shadow-sm: 0 1px 3px rgba(12, 27, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(12, 27, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 27, 46, 0.16);
  --shadow-glow: 0 0 0 1px rgba(35,196,214,0.25), 0 12px 40px rgba(35,196,214,0.18);
}

/* ---------- DARK MODE ---------- */
[data-theme='dark'] {
  --color-bg: #060f1c;
  --color-surface: #0d1c31;
  --color-surface-2: #112742;
  --color-surface-offset: #16304f;
  --color-divider: #1c395c;
  --color-border: #22436a;

  --color-text: #e6eef8;
  --color-text-muted: #9db0c8;
  --color-text-faint: #61748e;
  --color-text-inverse: #060f1c;

  --color-primary: #4f9be0;
  --color-primary-hover: #6cb0ec;
  --color-accent: var(--brand-aqua);
  --color-accent-deep: #3ad3e5;
  --color-lime: var(--brand-lime);

  --color-ink: #030a14;
  --color-ink-2: #0a1a2f;
  --color-ink-border: #143050;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(35,196,214,0.35), 0 12px 40px rgba(35,196,214,0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #060f1c;
    --color-surface: #0d1c31;
    --color-surface-2: #112742;
    --color-surface-offset: #16304f;
    --color-divider: #1c395c;
    --color-border: #22436a;
    --color-text: #e6eef8;
    --color-text-muted: #9db0c8;
    --color-text-faint: #61748e;
    --color-text-inverse: #060f1c;
    --color-primary: #4f9be0;
    --color-primary-hover: #6cb0ec;
    --color-accent-deep: #3ad3e5;
    --color-lime: var(--brand-lime);
    --color-ink: #030a14;
    --color-ink-2: #0a1a2f;
    --color-ink-border: #143050;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  }
}
