/* ============================================================
   SGFX Design Tokens
   Source: scraped from www.sgfx.com (Inter / Tailwind base)
   Extended for trading-product needs (ticker up/down, surfaces)
   ============================================================ */

/* ============================================================
   Poppins — brand typeface (uploaded TTFs in fonts/)
   ============================================================ */
@font-face { font-family: 'Poppins'; font-weight: 100; font-style: normal;
  src: url("../fonts/Poppins-Thin.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 100; font-style: italic;
  src: url("../fonts/Poppins-ThinItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 200; font-style: normal;
  src: url("../fonts/Poppins-ExtraLight.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 200; font-style: italic;
  src: url("../fonts/Poppins-ExtraLightItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal;
  src: url("../fonts/Poppins-Light.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: italic;
  src: url("../fonts/Poppins-LightItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal;
  src: url("../fonts/Poppins-Regular.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: italic;
  src: url("../fonts/Poppins-Italic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal;
  src: url("../fonts/Poppins-Medium.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: italic;
  src: url("../fonts/Poppins-MediumItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal;
  src: url("../fonts/Poppins-SemiBold.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: italic;
  src: url("../fonts/Poppins-SemiBoldItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal;
  src: url("../fonts/Poppins-Bold.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: italic;
  src: url("../fonts/Poppins-BoldItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: normal;
  src: url("../fonts/Poppins-ExtraBold.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 800; font-style: italic;
  src: url("../fonts/Poppins-ExtraBoldItalic.ttf") format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 900; font-style: normal;
  src: url("../fonts/Poppins-Black.otf") format('opentype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 900; font-style: italic;
  src: url("../fonts/Poppins-BlackItalic.ttf") format('truetype'); font-display: swap; }

/* JetBrains Mono kept for tabular numerals / token chips */
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  /* ---------- BRAND ----------
     Updated 2026-05-11. New visual identity is a deep navy capsule
     with a bright cyan/aqua arrow mark — confident, futuristic fintech.
     Cyan is HIGH-CHROMA; never place it on white as a flat fill (fails
     WCAG). Use it ONLY on navy/dark surfaces, as a stroke/icon accent,
     or paired with --sgfx-navy text for buttons. */
  --sgfx-navy:        #061b3f;  /* primary brand — logo capsule, dark surfaces */
  --sgfx-navy-900:    #030F25;  /* deepest — gradient base */
  --sgfx-navy-800:    #061b3f;
  --sgfx-navy-700:    #0D2856;
  --sgfx-navy-600:    #173771;
  --sgfx-navy-500:    #244A8E;
  --sgfx-navy-300:    #6F86B7;
  --sgfx-navy-100:    #D9DFEC;  /* navy-tinted neutral */
  --sgfx-navy-50:     #ECEFF5;

  --sgfx-cyan:        #00fff2;  /* accent — the arrow, highlights, glow */
  --sgfx-cyan-600:    #00D4C9;  /* hover on cyan-filled buttons */
  --sgfx-cyan-700:    #00A89F;  /* press */
  --sgfx-cyan-300:    #66FFF7;
  --sgfx-cyan-100:    #CCFFFC;
  --sgfx-cyan-50:     #E6FFFD;

  /* Legacy aliases — old --sgfx-blue / --sgfx-cta references in older
     files keep working but now resolve to the new palette. Prefer the
     navy / cyan names in new work. */
  --sgfx-blue:        var(--sgfx-navy);
  --sgfx-blue-700:    var(--sgfx-navy-700);
  --sgfx-blue-600:    var(--sgfx-navy-600);
  --sgfx-blue-500:    var(--sgfx-navy-500);
  --sgfx-blue-400:    var(--sgfx-navy-300);
  --sgfx-blue-100:    var(--sgfx-navy-100);
  --sgfx-blue-50:     var(--sgfx-navy-50);
  --sgfx-cta:         var(--sgfx-navy);
  --sgfx-cta-hover:   var(--sgfx-navy-700);
  --sgfx-cta-press:   var(--sgfx-navy-900);

  /* ---------- NEUTRALS (Tailwind-derived slate) ---------- */
  --sgfx-ink:         #111928;  /* near-black for headings, links */
  --sgfx-ink-soft:    #1F2A37;
  --sgfx-text:        #0F1419;  /* default body when high-emphasis */
  --sgfx-muted:       #637381;  /* secondary text */
  --sgfx-muted-2:     #9CA3AF;
  --sgfx-line:        #E5E7EB;  /* hairline borders */
  --sgfx-line-soft:   #F1F3F5;
  --sgfx-surface:     #FFFFFF;
  --sgfx-surface-2:   #F9FAFB;  /* page bg / panel inset */
  --sgfx-surface-3:   #F3F4F6;

  /* On dark surfaces (web trader chart, video cards) */
  --sgfx-dark:        #0B0F1A;
  --sgfx-dark-2:      #121826;
  --sgfx-dark-3:      #1B2233;
  --sgfx-dark-line:   #232B3E;
  --sgfx-on-dark:     #F4F6FB;
  --sgfx-on-dark-mut: #8A93A6;

  /* ---------- SEMANTIC (trading) ---------- */
  --sgfx-up:          #19B26B;  /* bid / long / positive change */
  --sgfx-up-soft:     #E6F6EE;
  --sgfx-down:        #E5484D;  /* ask / short / negative change */
  --sgfx-down-soft:   #FDECEC;
  --sgfx-warn:        #F0A30A;
  --sgfx-warn-soft:   #FFF6DE;
  --sgfx-success:     #4BBF73;  /* general "good" — from scrape secondary */
  --sgfx-info:        var(--sgfx-navy);

  /* ---------- TYPE ---------- */
  --sgfx-font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sgfx-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Display / heading scale (matches scraped h1=48 / h2=40, extends down) */
  --sgfx-fs-display:  64px;  /* hero */
  --sgfx-fs-h1:       48px;
  --sgfx-fs-h2:       40px;
  --sgfx-fs-h3:       28px;
  --sgfx-fs-h4:       22px;
  --sgfx-fs-h5:       18px;
  --sgfx-fs-body:     18px;  /* default body */
  --sgfx-fs-body-sm:  16px;
  --sgfx-fs-small:    14px;
  --sgfx-fs-micro:    12px;  /* eyebrows, table cells, badges */

  --sgfx-lh-tight:    1.1;   /* @kind font */ /* display / h1 */
  --sgfx-lh-snug:     1.25;  /* @kind font */
  --sgfx-lh-normal:   1.5;   /* @kind font */
  --sgfx-lh-relaxed:  1.65;  /* @kind font */

  --sgfx-tracking-tight: -0.02em;
  --sgfx-tracking-normal: 0;
  --sgfx-tracking-wide: 0.04em;
  --sgfx-tracking-eyebrow: 0.18em;  /* "### Your Global Trading Partner" — uppercase eyebrow */

  --sgfx-fw-regular: 400;  /* @kind font */
  --sgfx-fw-medium:  500;  /* @kind font */
  --sgfx-fw-semi:    600;  /* @kind font */
  --sgfx-fw-bold:    700;  /* @kind font */
  --sgfx-fw-black:   800;  /* @kind font */

  /* ---------- SPACING (4-pt base, scraped) ---------- */
  --sgfx-sp-0:  0;  /* @kind spacing */
  --sgfx-sp-1:  4px;
  --sgfx-sp-2:  8px;
  --sgfx-sp-3:  12px;
  --sgfx-sp-4:  16px;
  --sgfx-sp-5:  20px;
  --sgfx-sp-6:  24px;
  --sgfx-sp-8:  32px;
  --sgfx-sp-10: 40px;
  --sgfx-sp-12: 48px;
  --sgfx-sp-16: 64px;
  --sgfx-sp-20: 80px;
  --sgfx-sp-24: 96px;
  --sgfx-sp-32: 128px;

  /* ---------- RADII ---------- */
  --sgfx-r-xs:  4px;
  --sgfx-r-sm:  6px;   /* buttons (scraped) */
  --sgfx-r-md:  8px;   /* inputs, base card (scraped) */
  --sgfx-r-lg:  12px;  /* feature cards */
  --sgfx-r-xl:  16px;
  --sgfx-r-2xl: 24px;  /* big hero / image containers */
  --sgfx-r-full: 999px;

  /* ---------- ELEVATION ---------- */
  --sgfx-shadow-xs: 0 1px 2px rgba(15, 20, 25, 0.05);
  --sgfx-shadow-sm: 0 1px 3px rgba(15, 20, 25, 0.06), 0 1px 2px rgba(15, 20, 25, 0.04);
  --sgfx-shadow-md: 0 4px 10px rgba(15, 20, 25, 0.06), 0 2px 4px rgba(15, 20, 25, 0.04);
  --sgfx-shadow-lg: 0 16px 32px rgba(15, 20, 25, 0.08), 0 4px 8px rgba(15, 20, 25, 0.04);
  --sgfx-shadow-xl: 0 24px 48px rgba(15, 20, 25, 0.12);
  --sgfx-shadow-ring: 0 0 0 4px rgba(0, 255, 242, 0.32);   /* focus ring — cyan */
  --sgfx-shadow-pop-navy: 0 12px 32px -8px rgba(6, 27, 63, 0.45);
  --sgfx-glow-cyan: 0 0 0 1px rgba(0, 255, 242, 0.45), 0 8px 32px -4px rgba(0, 255, 242, 0.35);
  /* Legacy alias */
  --sgfx-shadow-pop-blue: var(--sgfx-shadow-pop-navy);

  /* ---------- MOTION ---------- */
  --sgfx-ease:        cubic-bezier(.2, .8, .2, 1);  /* @kind other */
  --sgfx-ease-out:    cubic-bezier(0, 0, .2, 1);    /* @kind other */
  --sgfx-dur-fast:    120ms;  /* @kind other */
  --sgfx-dur:         200ms;  /* @kind other */
  --sgfx-dur-slow:    360ms;  /* @kind other */

  /* ---------- LAYOUT ---------- */
  --sgfx-container:   1200px;
  --sgfx-container-wide: 1320px;
  --sgfx-gutter:      24px;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES
   ============================================================ */

.sgfx-display {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-display);
  line-height: var(--sgfx-lh-tight);
  letter-spacing: var(--sgfx-tracking-tight);
  font-weight: var(--sgfx-fw-bold);
  color: var(--sgfx-ink);
}

.sgfx-h1 {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-h1);
  line-height: var(--sgfx-lh-tight);
  letter-spacing: var(--sgfx-tracking-tight);
  font-weight: var(--sgfx-fw-bold);
  color: var(--sgfx-ink);
}

.sgfx-h2 {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-h2);
  line-height: var(--sgfx-lh-snug);
  letter-spacing: var(--sgfx-tracking-tight);
  font-weight: var(--sgfx-fw-bold);
  color: var(--sgfx-ink);
}

.sgfx-h3 {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-h3);
  line-height: var(--sgfx-lh-snug);
  letter-spacing: -0.01em;
  font-weight: var(--sgfx-fw-semi);
  color: var(--sgfx-ink);
}

.sgfx-h4 {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-h4);
  line-height: var(--sgfx-lh-snug);
  font-weight: var(--sgfx-fw-semi);
  color: var(--sgfx-ink);
}

.sgfx-h5 {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-h5);
  line-height: var(--sgfx-lh-normal);
  font-weight: var(--sgfx-fw-semi);
  color: var(--sgfx-ink);
}

.sgfx-eyebrow {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-micro);
  letter-spacing: var(--sgfx-tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--sgfx-fw-semi);
  color: var(--sgfx-navy);
}

/* Cyan eyebrow — for use ONLY on navy/dark surfaces */
.sgfx-eyebrow-cyan {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-micro);
  letter-spacing: var(--sgfx-tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--sgfx-fw-semi);
  color: var(--sgfx-cyan);
}

.sgfx-body {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-body);
  line-height: var(--sgfx-lh-relaxed);
  font-weight: var(--sgfx-fw-regular);
  color: var(--sgfx-muted);
}

.sgfx-body-sm {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-body-sm);
  line-height: var(--sgfx-lh-normal);
  color: var(--sgfx-muted);
}

.sgfx-small {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-small);
  line-height: var(--sgfx-lh-normal);
  color: var(--sgfx-muted);
}

.sgfx-disclaimer {
  font-family: var(--sgfx-font-sans);
  font-size: var(--sgfx-fs-small);
  line-height: var(--sgfx-lh-relaxed);
  color: var(--sgfx-muted-2);
}

.sgfx-mono {
  font-family: var(--sgfx-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

/* Numbers — tabular for prices/quotes */
.sgfx-quote {
  font-family: var(--sgfx-font-sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  font-weight: var(--sgfx-fw-semi);
}
