/* Noosmos family brand tokens, v1.1.0 (brand-kit/VERSION).
   Family-wide tokens (Noosmos, PassionCode, Fabric) use the --nf- prefix.
   Noosmos-only tokens (the galaxy, the cosmic glows) use the --noosmos- prefix.
   Dark is the default; the light variant applies under [data-theme="light"] or .nf-theme-light.
   Same values as noosmos.com (site/styles/main.css). Source of truth: brand-kit/tokens.json. */

@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-wght.woff2") format("woff2-variations"), url("./fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- color: family-wide, dark (default) ---- */
  --nf-bg: #05060a;
  --nf-surface-1: #0b0d14;
  --nf-surface-2: #10131d;
  --nf-surface-3: #161a26;
  --nf-ink: #eef2f7;
  --nf-ink-muted: #a3adbb;
  --nf-ink-faint: #6c7686;
  --nf-hairline: rgba(238, 242, 247, 0.09);
  --nf-hairline-strong: rgba(238, 242, 247, 0.16);
  --nf-accent: #7fe6ff;              /* ice blue: links, signal, focus */
  --nf-accent-dim: rgba(127, 230, 255, 0.16);
  --nf-core: #ffd21a;                /* gold: the core, the primary CTA only */
  --nf-core-ink: #05060a;            /* text on gold */
  --nf-danger: #ff8a7a;
  --nf-ok: #7fe6c4;

  /* ---- glass and shadow ---- */
  --nf-glass: rgba(8, 10, 16, 0.45);
  --nf-glass-blur: 10px;
  --nf-glass-solid: rgba(8, 10, 16, 0.66); /* phones and coarse pointers: no blur */
  --nf-scrim: rgba(5, 6, 10, 0.74);
  --nf-shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nf-shadow-cta: 0 0 0 1px rgba(255, 210, 26, 0.45), 0 10px 40px rgba(255, 210, 26, 0.22);

  /* ---- typography ---- */
  --nf-font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nf-font-cyrillic: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; /* Sora has no Cyrillic */
  --nf-text-body: 1.0625rem;
  --nf-text-small: 0.88rem;
  --nf-text-eyebrow: 0.78rem;
  --nf-text-lede: clamp(1.1rem, 1.6vw, 1.3rem);
  --nf-text-h3: clamp(1.35rem, 2vw, 1.7rem);
  --nf-text-h2: clamp(2rem, 4.4vw, 3.6rem);
  --nf-text-display: clamp(2.7rem, 7vw, 6.4rem);
  --nf-weight-light: 300;
  --nf-weight-regular: 400;
  --nf-weight-medium: 500;
  --nf-leading-body: 1.6;
  --nf-leading-tight: 1.1;
  --nf-tracking-display: -0.035em;
  --nf-tracking-title: -0.02em;
  --nf-tracking-eyebrow: 0.32em;
  --nf-tracking-wordmark: 0.05em;

  /* ---- space and layout ---- */
  --nf-space-1: 0.25rem;
  --nf-space-2: 0.5rem;
  --nf-space-3: 0.75rem;
  --nf-space-4: 1rem;
  --nf-space-5: 1.5rem;
  --nf-space-6: 2rem;
  --nf-space-7: 3rem;
  --nf-space-8: 4.5rem;
  --nf-wrap: 1180px;
  --nf-gutter: clamp(1.4rem, 7vw, 7rem);
  --nf-section: clamp(6rem, 16svh, 11rem);
  --nf-tap: 44px;

  /* ---- radius ---- */
  --nf-r-sm: 6px;
  --nf-r-md: 12px;
  --nf-r-lg: 22px;
  --nf-r-pill: 999px;

  /* ---- motion ---- */
  --nf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nf-dur-press: 0.14s;
  --nf-dur-fast: 0.2s;
  --nf-dur-entrance: 0.7s;

  /* ---- Noosmos only ---- */
  --noosmos-galaxy-bg: #05060a;
  --noosmos-galaxy-ice: #7fe6ff;
  --noosmos-galaxy-core: #ffd21a;
  --noosmos-galaxy-star: #eef2f7;
  --noosmos-core-glow: 0 0 40px rgba(255, 210, 26, 0.35);
  --noosmos-breath: 50svh;
  --noosmos-breath-phone: 38svh;
}

/* Light variant: for light backgrounds (documents, partner pages, light sections). */
[data-theme="light"], .nf-theme-light {
  --nf-bg: #f6f8fb;
  --nf-surface-1: #ffffff;
  --nf-surface-2: #eef2f7;
  --nf-surface-3: #e3e8ef;
  --nf-ink: #0b0d14;
  --nf-ink-muted: #4a5566;
  --nf-ink-faint: #6b7584;
  --nf-hairline: rgba(11, 13, 20, 0.1);
  --nf-hairline-strong: rgba(11, 13, 20, 0.18);
  --nf-accent: #08708f;              /* ice blue darkened for contrast on light (5.2:1 on --nf-bg) */
  --nf-accent-dim: rgba(8, 112, 143, 0.14);
  --nf-core: #ffd21a;                /* CTA fill stays gold with dark ink */
  --nf-core-mark: #d99a00;           /* gold inside logos on light (mark-light.svg) */
  --nf-core-ink: #05060a;
  --nf-glass: rgba(255, 255, 255, 0.6);
  --nf-glass-solid: rgba(255, 255, 255, 0.85);
  --nf-scrim: rgba(246, 248, 251, 0.8);
  --nf-shadow-card: 0 16px 40px rgba(11, 13, 20, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  :root { --nf-dur-press: 0.01ms; --nf-dur-fast: 0.01ms; --nf-dur-entrance: 0.01ms; }
}
