/* ==========================================================================
   H2x AI — Colors & Type
   --------------------------------------------------------------------------
   Tokens for the H2x AI brand. Warm, professional, friendly-but-technical.
   The signature note is a clean black/white surface with one bright cyan
   accent (lifted from the "2" in the wordmark). Everything else stays out
   of the way.
   ========================================================================== */

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

:root {
  /* --------------------------------------------------------------------
     COLOR — Brand
     -------------------------------------------------------------------- */
  --brand-cyan:        #2BB3FF;   /* signature accent — the "2" cyan */
  --brand-cyan-bright: #4FC3FF;   /* hover / glow */
  --brand-cyan-deep:   #0E8FE0;   /* press / link visited */
  --brand-cyan-soft:   #DCF0FB;   /* tint backgrounds, badges */
  --brand-ink:         #0B0F14;   /* near-black wordmark color */

  /* --------------------------------------------------------------------
     COLOR — Neutrals (warm-leaning grayscale)
     A whisper of warmth keeps surfaces feeling human, not clinical.
     -------------------------------------------------------------------- */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #FAFAF9;
  --neutral-100: #F4F4F2;
  --neutral-200: #E8E8E5;
  --neutral-300: #D4D4D0;
  --neutral-400: #A3A39E;
  --neutral-500: #76766F;
  --neutral-600: #525249;
  --neutral-700: #3A3A33;
  --neutral-800: #22221E;
  --neutral-900: #111110;
  --neutral-950: #0B0B0A;

  /* --------------------------------------------------------------------
     COLOR — Semantic foreground / background
     -------------------------------------------------------------------- */
  --fg-1: var(--neutral-950);   /* primary text, headlines */
  --fg-2: var(--neutral-700);   /* secondary text */
  --fg-3: var(--neutral-500);   /* muted text, captions */
  --fg-4: var(--neutral-400);   /* placeholder, disabled */
  --fg-on-brand: #FFFFFF;       /* text on cyan */

  --bg-1: var(--neutral-0);     /* primary surface */
  --bg-2: var(--neutral-50);    /* page surface */
  --bg-3: var(--neutral-100);   /* raised card / well */
  --bg-4: var(--neutral-200);   /* hover surface */
  --bg-inverse: var(--neutral-950);

  --border-subtle: var(--neutral-200);
  --border-default: var(--neutral-300);
  --border-strong: var(--neutral-700);

  /* --------------------------------------------------------------------
     COLOR — Status
     -------------------------------------------------------------------- */
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warning: #D97706;
  --warning-soft: #FEF3C7;
  --danger:  #DC2626;
  --danger-soft: #FEE2E2;
  --info: var(--brand-cyan);
  --info-soft: var(--brand-cyan-soft);

  /* --------------------------------------------------------------------
     TYPE — Families
     -------------------------------------------------------------------- */
  --font-display: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* --------------------------------------------------------------------
     TYPE — Scale
     -------------------------------------------------------------------- */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  --text-4xl:  56px;
  --text-5xl:  72px;
  --text-6xl:  96px;

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.015em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-widest:  0.16em;

  /* --------------------------------------------------------------------
     SPACING — 4px base
     -------------------------------------------------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* --------------------------------------------------------------------
     RADIUS
     -------------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* --------------------------------------------------------------------
     SHADOWS / ELEVATION
     Soft, low-spread, warm-tinted. Never harsh.
     -------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(11, 15, 20, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 15, 20, 0.06), 0 1px 2px rgba(11, 15, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 15, 20, 0.06), 0 2px 4px rgba(11, 15, 20, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 15, 20, 0.08), 0 4px 8px rgba(11, 15, 20, 0.04);
  --shadow-xl: 0 24px 60px rgba(11, 15, 20, 0.12), 0 8px 16px rgba(11, 15, 20, 0.04);
  --shadow-glow: 0 0 0 4px rgba(43, 179, 255, 0.18);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.4);

  /* --------------------------------------------------------------------
     MOTION
     -------------------------------------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;

  /* --------------------------------------------------------------------
     LAYOUT
     -------------------------------------------------------------------- */
  --container-max: 1240px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   SEMANTIC TYPOGRAPHY
   Use these classes (or copy the rules) instead of declaring sizes ad-hoc.
   ========================================================================== */

.h2x-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, var(--text-6xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--fg-1);
}

.h2x-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, var(--text-4xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.h2x-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.h2x-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}

.h2x-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--fg-1);
}

.h2x-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-cyan-deep);
}

.h2x-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  text-wrap: pretty;
}

.h2x-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  text-wrap: pretty;
}

.h2x-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-3);
}

.h2x-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}

.h2x-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
  color: var(--fg-1);
}

/* ==========================================================================
   GLOBAL HELPERS
   ========================================================================== */

.h2x-accent { color: var(--brand-cyan); }
.h2x-link {
  color: var(--brand-cyan-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--brand-cyan-deep) 30%, transparent);
  transition: border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.h2x-link:hover {
  color: var(--brand-cyan);
  border-bottom-color: var(--brand-cyan);
}
