/* No1d Swap Public Website — Design Tokens
 * Dark-first, exchange-grade palette derived from the No1d Swap desktop console.
 * Semantic discipline:
 *   - Amber (--due): user-action, attention, and warning cues only.
 *   - Mint (--safe): verified, checked, settled, and done states only.
 *   - Alarm (--alarm): invalid, danger, and rejected states only.
 *   - Coin colours (--noid, --eth): coin amounts, chain badges, and legs only.
 * Self-hosted Inter, Space Grotesk & JetBrains Mono (SIL OFL 1.1, assets/fonts/);
 * zero external fonts or third-party requests.
 */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:           #070d0b;
  --bg-elevated:  #0b1412;
  --panel:        #101d1a;
  --raise:        #172925;
  --raise-hover:  #1f3530;
  --backdrop:     rgba(3, 7, 6, 0.80);

  /* Hairlines & Control Edges
   * --rule / --rule-2 divide layout regions; --edge passes 3:1 against dark surfaces. */
  --rule:         #223632;
  --rule-2:       #334d47;
  --edge:         #6b857c;

  /* Ink */
  --text:         #e6edea;
  --quiet:        #b8c5c0;
  --faint:        #93a39d;
  --ghost:        #6f817b;
  --off:          #1b2725;
  --ink-dark:     #07100e;

  /* Semantic Tones */
  --due:          #f0b44c;
  --due-hover:    #f7c56b;
  --on-due:       #1a1204;
  --due-bg:       #1c1608;
  --due-rule:     #6b5220;

  --safe:         #3ee6b8;
  --on-safe:      #04110d;
  --safe-bg:      #08201a;
  --safe-rule:    #1d5a4a;

  --alarm:        #ff7a6b;
  --on-alarm:     #1a0705;
  --alarm-bg:     #220f0d;
  --alarm-rule:   #6e2f28;

  /* Chain Identity */
  --noid:         #9fe870;
  --noid-bg:      rgba(159, 232, 112, 0.10);
  --noid-rule:    #2f4d22;

  --eth:          #93a8ff;
  --eth-bg:       rgba(147, 168, 255, 0.10);
  --eth-rule:     #2d3869;

  --usdt:         #52d1c6;
  --usdt-bg:      rgba(82, 209, 198, 0.10);
  --usdt-rule:    #1f5752;

  --usdc:         #6bb6ff;
  --usdc-bg:      rgba(107, 182, 255, 0.10);
  --usdc-rule:    #254b73;

  /* Typography — self-hosted variable fonts (Inter body, Space Grotesk display, JetBrains Mono figures) */
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --fs-xs:        0.75rem;      /* 12px */
  --fs-sm:        0.8125rem;    /* 13px */
  --fs-base:      0.9375rem;    /* 15px */
  --fs-md:        1rem;         /* 16px */
  --fs-lg:        1.1875rem;    /* 19px */
  --fs-xl:        1.5rem;       /* 24px */
  --fs-2xl:       2rem;         /* 32px */
  --fs-hero:      clamp(2rem, 4.2vw, 3.125rem);

  --lh-tight:     1.15;
  --lh-snug:      1.3;
  --lh-base:      1.55;
  --track-tight:  -0.02em;
  --track-label:  0.06em;

  /* Spacing (4px base grid) */
  --s-1:          4px;
  --s-2:          8px;
  --s-3:          12px;
  --s-4:          16px;
  --s-5:          24px;
  --s-6:          32px;
  --s-7:          48px;
  --s-8:          64px;
  --s-9:          88px;

  /* Radii */
  --r-xs:         4px;
  --r-ctl:        6px;
  --r-panel:      10px;
  --r-modal:      12px;
  --r-pill:       999px;

  /* Elevation */
  --panel-sheen:        rgba(230, 237, 234, 0.055);
  --shadow-panel:       0 4px 16px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(230, 237, 234, 0.045);
  --shadow-panel-hover: 0 12px 30px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(230, 237, 234, 0.08);
  --shadow-stage:       0 18px 50px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(230, 237, 234, 0.08);
  --shadow-modal:       0 24px 64px rgba(0, 0, 0, 0.68);

  /* Focus */
  --focus-ring:   0 0 0 2px var(--bg), 0 0 0 4px var(--text);

  /* Motion */
  --t-fast:       130ms;
  --t-med:        220ms;
  --t-slow:       420ms;
  --ease:         cubic-bezier(0.2, 0.7, 0.3, 1);

  /* Layout */
  --max-w:        1140px;
  --header-h:     60px;
  --tap-min:      44px;

  /* Z-index layers */
  --z-base:       1;
  --z-header:     40;
  --z-toast:      60;
  --z-modal:      80;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-med:  0ms;
    --t-slow: 0ms;
  }
}
