/* ==========================================================================
   Bardsen Hosting Design System Tokens & Layered Cutout Components
   Direction: Layered Flat Cutout & Ink Outlines (Byte vector-extrusion grammar)
   Canvas: Neutral Graphite Dark (#15171a) + Tinted Sage-Paper Light (#e4eee8)
   Typography: Self-hosted Rubik, Figtree, and Fira Code
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Self-Hosted Variable Webfonts (GDPR-clean local WOFF2, zero external hits)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./fonts/rubik-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./fonts/rubik-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  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-2021, U+2023-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("./fonts/figtree-dots.woff2") format("woff2-variations");
  unicode-range: U+2022, U+25CF, U+25E6, U+2731;
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("./fonts/fira-code-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "Fira Code";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("./fonts/fira-code-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  /* ------------------------------------------------------------------------
     1. Primitive Color Ramps (Unmixed Flat Cutout Inks)
     ------------------------------------------------------------------------ */
  --bds-slate-950: #08090b;
  --bds-slate-925: #101114;
  --bds-slate-900: #15171a;
  --bds-slate-850: #1a1c20;
  --bds-slate-800: #202328;
  --bds-slate-750: #2a2e35;
  --bds-slate-700: #333840;
  --bds-slate-650: #454b56;
  --bds-slate-600: #5e6675;
  --bds-slate-400: #949aa4;
  --bds-slate-300: #c7cbd1;
  --bds-slate-25:  #f5f6f8;

  --bds-forest-500:    #496b5a;
  --bds-forest-200:    #aec7b8;
  --bds-forest-150:    #d0dfd6;
  --bds-forest-100:    #e4eee8;
  --bds-forest-50:     #e7f0eb;
  --bds-paper-surface: #f1f7f3;
  --bds-paper-input:   #f6faf7;
  --bds-white:         #ffffff;

  /* Byte & Electric Mint Ramp */
  --bds-mint-electric:  #38e578;
  --bds-mint-bright:    #4ce686;
  --bds-mint-light:     #2be06e;
  --bds-mint-pressed:   #27c462;
  --bds-mint-soft:      #7ef5a8;
  --bds-byte-emerald:   #2fa75d;
  --bds-byte-side:      #1a8048;
  --bds-byte-lip:       #166a39;
  --bds-byte-link:      #0f6e3a;
  --bds-byte-outline:   #0e4f2c;
  --bds-byte-stroke:    #0b3d20;
  --bds-byte-ink:       #051f10;
  --bds-byte-cream:     #f5f1e6;
  --bds-byte-visor:     #14201d;
  --bds-byte-gold:      #f2ca77;
  --bds-byte-pink:      #ef9acb;

  /* ------------------------------------------------------------------------
     2. Typography Tokens (Zero template fonts)
     ------------------------------------------------------------------------ */
  --font-display: "Rubik", system-ui, -apple-system, sans-serif;
  --font-sans:    "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono:    "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-xs:      0.75rem;                         /* 12px: stamped badges, captions */
  --text-mono-sm: 0.8125rem;                       /* 13px: console lines, IPs, ports, tokens */
  --text-sm:      0.875rem;                        /* 14px: labels, nav, buttons */
  --text-base:    1rem;                            /* 16px: body copy, form inputs, card descriptions */
  --text-lg:      1.125rem;                        /* 18px: hero lead copy, section intros */
  --text-xl:      1.25rem;                         /* 20px: card headings (h3), plan titles */
  --text-2xl:     1.75rem;                         /* 28px: section headings (h2), primary prices */
  --text-3xl:     2.25rem;                         /* 36px: inner page h1 headings */
  --text-display: clamp(2.5rem, 5vw, 3.625rem);    /* 40px -> 58px: poster hero headline */

  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-title:     650;
  --weight-bold:      700;
  --weight-extrabold: 700;

  --leading-display: 1.08;
  --leading-tight:   1.18;
  --leading-snug:    1.28;
  --leading-normal:  1.55;
  --leading-relaxed: 1.65;

  --tracking-display: -0.018em;
  --tracking-heading: -0.012em;
  --tracking-title:   -0.006em;
  --tracking-normal:  0em;
  --tracking-body:    0em;

  /* ------------------------------------------------------------------------
     3. Spacing & Container Rhythm (Varied tight/loose grouping)
     ------------------------------------------------------------------------ */
  --space-1:   0.25rem;   /* 4px */
  --space-1-5: 0.5rem;    /* 8px */
  --space-2:   0.5rem;    /* 8px */
  --space-2-5: 0.75rem;   /* 12px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-14:  3.5rem;    /* 56px */
  --space-16:  4rem;      /* 64px */

  --container-max:    1180px;
  --container-narrow: 760px;
  --container-auth:   420px;
  --prose-max:        54ch;

  /* ------------------------------------------------------------------------
     4. Standardized Cutout Corner Radii (6px compact chips, 10px all UI, zero pills)
     ------------------------------------------------------------------------ */
  --radius-xs: 6px;    /* compact stamped badges, tags, code chips, checkboxes */
  --radius-sm: 10px;   /* inputs, selects, textareas */
  --radius-md: 10px;   /* buttons, sub-tiles, alerts, dropdowns */
  --radius-lg: 10px;   /* cards, panels, terminals, modals */
  --radius-xl: 10px;   /* hero & showcase containers */

  /* ------------------------------------------------------------------------
     5. Cutout Ink Strokes, Extruded Lips & Motion
     ------------------------------------------------------------------------ */
  --border-width:    2px;
  --border-hairline: 1px;
  --focus-ring-width:  2px;
  --focus-ring-offset: 2px;

  --duration-fast: 110ms;
  --duration-base: 160ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Component dimensions (strict 4/8px system) */
  --btn-radius:     var(--radius-md);
  --btn-height-sm:  36px;
  --btn-height-md:  40px;
  --btn-height-lg:  48px;
  --btn-px-sm:      var(--space-3);
  --btn-px-md:      var(--space-5);
  --btn-px-lg:      var(--space-6);

  --input-radius:   var(--radius-sm);
  --input-height:   40px;
  --input-px:       var(--space-3);

  --card-radius:    var(--radius-lg);
  --card-padding:   var(--space-6);
  --subtile-radius: var(--radius-md);
  --subtile-py:     var(--space-3);
  --subtile-px:     var(--space-4);

  --badge-radius:   var(--radius-xs);
  --badge-py:       4px;
  --badge-px:       8px;

  --icon-xs:        13px;
  --icon-sm:        15px;
  --icon-md:        18px;
  --icon-lg:        20px;
}

/* ==========================================================================
   Dark Theme (Default: Neutral Graphite + Crisp 3D Cutout Plates)
   ========================================================================== */
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg-canvas:   var(--bds-slate-900); /* #15171a */
  --bg-surface:  var(--bds-slate-800); /* #202328 */
  --bg-elevated: var(--bds-slate-750); /* #2a2e35 */
  --bg-recessed: var(--bds-slate-925); /* #101114 */
  --bg-input:    #121417;

  --border-subtle:  var(--bds-slate-700); /* #333840 */
  --border-default: var(--bds-slate-650); /* #454b56 */
  --border-strong:  var(--bds-slate-600); /* #5e6675 */
  --border-extrude: var(--bds-slate-950); /* #08090b */
  --plate-shadow:   2px 2px 0 var(--border-extrude);

  --text-primary:   var(--bds-slate-25);  /* #f5f6f8 */
  --text-secondary: var(--bds-slate-300); /* #c7cbd1 */
  --text-muted:     var(--bds-slate-400); /* #949aa4 */
  --text-on-accent: var(--bds-byte-ink);  /* #051f10 */

  --accent-solid:        var(--bds-mint-electric); /* #38e578 */
  --accent-solid-hover:  var(--bds-mint-bright);   /* #4ce686 */
  --accent-solid-active: var(--bds-mint-pressed);  /* #27c462 */
  --accent-stroke:       var(--bds-byte-stroke);   /* #0b3d20 */
  --accent-lip:          var(--bds-byte-lip);      /* #166a39 */
  --accent-subtle:       #163d27;
  --accent-border:       #35b868;
  --accent-text:         var(--bds-mint-bright);   /* #4ce686 */
  --accent-text-hover:   var(--bds-mint-soft);     /* #7ef5a8 */
  --focus-ring:          var(--bds-mint-bright);

  /* Alternating Full-Bleed Same-Polarity Cutout Bands & Terminal / Hero Plates */
  --band-alt-bg:        var(--bds-slate-850); /* #1a1c20 */
  --band-alt-surface:   #24272d;
  --band-alt-fg:        var(--bds-slate-25);  /* #f5f6f8 */
  --band-alt-muted:     var(--bds-slate-300); /* #c7cbd1 */
  --band-alt-border:    var(--bds-slate-650); /* #454b56 */
  --band-alt-lip:       var(--bds-slate-950); /* #08090b */
  --band-alt-plate-lip: var(--bds-slate-950);

  --band-emerald-bg:     #152b21;
  --band-emerald-fg:     var(--bds-slate-25); /* #f5f6f8 */
  --band-emerald-muted:  #c2dfd0;
  --band-emerald-border: #2fa75d;

  --term-head-bg: #181a1e;
  --term-body-bg: #101114;
  --term-fg:      #f5f6f8;
  --term-muted:   #949aa4;
  --term-prompt:  #4ce686;
  --term-ok:      #ffd86b;
  --term-track:   #262a31;

  --hero-plate-back:        #1d2025;
  --hero-plate-back-border: #3a3f48;
  --hero-plate-mid:         #252930;
  --hero-plate-mid-border:  #4d5461;

  --danger-solid:        #f05a52;
  --danger-solid-hover:  #ff736b;
  --danger-stroke:       #4f1310;
  --danger-lip:          #6e1b17;
  --text-on-danger:      #1c0403;

  --status-ok-fg:     #6bf59b;
  --status-ok-bg:     #163d27;
  --status-ok-border: #35b868;

  --status-warn-fg:     #f0d5b8;
  --status-warn-bg:     #241f1b;
  --status-warn-border: #785c42;

  --status-danger-fg:     #ff9494;
  --status-danger-bg:     #3d171a;
  --status-danger-border: #d94850;

  --status-info-fg:     #85d4ff;
  --status-info-bg:     #142d42;
  --status-info-border: #3888c9;

  --selection-bg: rgb(56 229 120 / 0.28);

  /* 6 Product Category Cutout Worlds */
  --offer-vps-bg:     #192521;
  --offer-vps-head:   #131c19;
  --offer-vps-border: #2f6b53;
  --offer-vps-hover:  #429674;
  --offer-vps-accent: #4ee39b;

  --offer-web-bg:     #18202c;
  --offer-web-head:   #121822;
  --offer-web-border: #2e568c;
  --offer-web-hover:  #437bc4;
  --offer-web-accent: #73b8ff;

  --offer-storage-bg:     #211d1a;
  --offer-storage-head:   #181513;
  --offer-storage-border: #69503c;
  --offer-storage-hover:  #947054;
  --offer-storage-accent: #ebb98a;

  --offer-mc-bg:     #1b241c;
  --offer-mc-head:   #141b15;
  --offer-mc-border: #3b6342;
  --offer-mc-hover:  #528a5c;
  --offer-mc-accent: #78d182;

  --offer-games-bg:     #24191e;
  --offer-games-head:   #1a1216;
  --offer-games-border: #6e384b;
  --offer-games-hover:  #9c4e69;
  --offer-games-accent: #f58ea3;

  --offer-bots-bg:     #1c1f2e;
  --offer-bots-head:   #151722;
  --offer-bots-border: #46508f;
  --offer-bots-hover:  #6472c9;
  --offer-bots-accent: #a3b0ff;
}

/* ==========================================================================
   Tinted Sage-Paper Light Theme (Soothing Off-Whites + Bold Ink Cutouts)
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  --bg-canvas:   var(--bds-forest-100);    /* #e4eee8 */
  --bg-surface:  var(--bds-paper-surface); /* #f1f7f3 */
  --bg-elevated: var(--bds-forest-50);     /* #e7f0eb */
  --bg-recessed: var(--bds-forest-150);    /* #d0dfd6 */
  --bg-input:    var(--bds-paper-input);   /* #f6faf7 */

  --border-subtle:  var(--bds-forest-200); /* #aec7b8 */
  --border-default: #1c4230;
  --border-strong:  var(--bds-byte-outline); /* #0e4f2c */
  --border-extrude: #143324;
  --plate-shadow:   2px 2px 0 var(--border-extrude);

  --text-primary:   #0c1f16;
  --text-secondary: #294738;
  --text-muted:     var(--bds-forest-500); /* #496b5a */
  --text-on-accent: var(--bds-byte-ink);   /* #051f10 */

  --accent-solid:        var(--bds-mint-light);    /* #2be06e */
  --accent-solid-hover:  var(--bds-mint-electric); /* #38e578 */
  --accent-solid-active: #20c45d;
  --accent-stroke:       var(--bds-byte-stroke);   /* #0b3d20 */
  --accent-lip:          var(--bds-byte-stroke);   /* #0b3d20 */
  --accent-subtle:       #dff5e7;
  --accent-border:       #16733f;
  --accent-text:         var(--bds-byte-link);     /* #0f6e3a */
  --accent-text-hover:   #094d27;
  --focus-ring:          var(--bds-byte-outline);  /* #0e4f2c */

  /* Alternating Full-Bleed Same-Polarity Cutout Bands & Terminal / Hero Plates */
  --band-alt-bg:        #d8e6de;
  --band-alt-surface:   var(--bds-paper-surface); /* #f1f7f3 */
  --band-alt-fg:        #0c1f16;
  --band-alt-muted:     #264536;
  --band-alt-border:    #1c4230;
  --band-alt-lip:       #143324;
  --band-alt-plate-lip: #143324;

  --band-emerald-bg:     #cbeedb;
  --band-emerald-fg:     #082415;
  --band-emerald-muted:  #164a2d;
  --band-emerald-border: #165934;

  --term-head-bg: #d0dfd6;
  --term-body-bg: #ebf3ee;
  --term-fg:      #0c1f16;
  --term-muted:   #3b5e4d;
  --term-prompt:  #0d6936;
  --term-ok:      #7d4306;
  --term-track:   #c5d9cd;

  --hero-plate-back:        #eaf2ed;
  --hero-plate-back-border: #1c4230;
  --hero-plate-mid:         #cbeedb;
  --hero-plate-mid-border:  #0e4f2c;

  --danger-solid:        #d92d20;
  --danger-solid-hover:  #b82217;
  --danger-stroke:       #5c120d;
  --danger-lip:          #5c120d;
  --text-on-danger:      #ffffff;

  --status-ok-fg:     #063b1d;
  --status-ok-bg:     #bcefd0;
  --status-ok-border: #0f7a3e;

  --status-warn-fg:     #3d2410;
  --status-warn-bg:     #f4ece4;
  --status-warn-border: #8a6240;

  --status-danger-fg:     #4a0906;
  --status-danger-bg:     #fad2d2;
  --status-danger-border: #b82217;

  --status-info-fg:     #062c4d;
  --status-info-bg:     #c9e5fc;
  --status-info-border: #0b5896;

  --selection-bg: rgb(43 224 110 / 0.28);

  /* 6 Product Category Cutout Worlds */
  --offer-vps-bg:     #dff2e8;
  --offer-vps-head:   #cae8d8;
  --offer-vps-border: #164a30;
  --offer-vps-hover:  #0e4f2c;
  --offer-vps-accent: #0b6132;

  --offer-web-bg:     #e1ecfa;
  --offer-web-head:   #ccddf5;
  --offer-web-border: #163e6e;
  --offer-web-hover:  #0f4c96;
  --offer-web-accent: #0d478a;

  --offer-storage-bg:     #f5ede6;
  --offer-storage-head:   #eadcd0;
  --offer-storage-border: #664329;
  --offer-storage-hover:  #875835;
  --offer-storage-accent: #6e3f1d;

  --offer-mc-bg:     #e4f2e6;
  --offer-mc-head:   #cfe6d2;
  --offer-mc-border: #26522e;
  --offer-mc-hover:  #1f662c;
  --offer-mc-accent: #1c5927;

  --offer-games-bg:     #f7e8ec;
  --offer-games-head:   #edd5dc;
  --offer-games-border: #692438;
  --offer-games-hover:  #8c2f4a;
  --offer-games-accent: #7d1e36;

  --offer-bots-bg:     #e4e8fa;
  --offer-bots-head:   #d0d7f5;
  --offer-bots-border: #232c69;
  --offer-bots-hover:  #313f99;
  --offer-bots-accent: #2d3b8f;
}

@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    color-scheme: light;

    --bg-canvas:   var(--bds-forest-100);
    --bg-surface:  var(--bds-paper-surface);
    --bg-elevated: var(--bds-forest-50);
    --bg-recessed: var(--bds-forest-150);
    --bg-input:    var(--bds-paper-input);

    --border-subtle:  var(--bds-forest-200);
    --border-default: #1c4230;
    --border-strong:  var(--bds-byte-outline);
    --border-extrude: #143324;
    --plate-shadow:   2px 2px 0 var(--border-extrude);

    --text-primary:   #0c1f16;
    --text-secondary: #294738;
    --text-muted:     var(--bds-forest-500);
    --text-on-accent: var(--bds-byte-ink);

    --accent-solid:        var(--bds-mint-light);
    --accent-solid-hover:  var(--bds-mint-electric);
    --accent-solid-active: #20c45d;
    --accent-stroke:       var(--bds-byte-stroke);
    --accent-lip:          var(--bds-byte-stroke);
    --accent-subtle:       #dff5e7;
    --accent-border:       #16733f;
    --accent-text:         var(--bds-byte-link);
    --accent-text-hover:   #094d27;
    --focus-ring:          var(--bds-byte-outline);

    --band-alt-bg:        #d8e6de;
    --band-alt-surface:   var(--bds-paper-surface);
    --band-alt-fg:        #0c1f16;
    --band-alt-muted:     #264536;
    --band-alt-border:    #1c4230;
    --band-alt-lip:       #143324;
    --band-alt-plate-lip: #143324;

    --band-emerald-bg:     #cbeedb;
    --band-emerald-fg:     #082415;
    --band-emerald-muted:  #164a2d;
    --band-emerald-border: #165934;

    --term-head-bg: #d0dfd6;
    --term-body-bg: #ebf3ee;
    --term-fg:      #0c1f16;
    --term-muted:   #3b5e4d;
    --term-prompt:  #0d6936;
    --term-ok:      #7d4306;
    --term-track:   #c5d9cd;

    --hero-plate-back:        #eaf2ed;
    --hero-plate-back-border: #1c4230;
    --hero-plate-mid:         #cbeedb;
    --hero-plate-mid-border:  #0e4f2c;

    --danger-solid:        #d92d20;
    --danger-solid-hover:  #b82217;
    --danger-stroke:       #5c120d;
    --danger-lip:          #5c120d;
    --text-on-danger:      #ffffff;

    --status-ok-fg:     #063b1d;
    --status-ok-bg:     #bcefd0;
    --status-ok-border: #0f7a3e;
    --status-warn-fg:     #3d2410;
    --status-warn-bg:     #f4ece4;
    --status-warn-border: #8a6240;
    --status-danger-fg:     #4a0906;
    --status-danger-bg:     #fad2d2;
    --status-danger-border: #b82217;
    --status-info-fg:     #062c4d;
    --status-info-bg:     #c9e5fc;
    --status-info-border: #0b5896;

    --selection-bg: rgb(43 224 110 / 0.28);

    --offer-vps-bg: #dff2e8; --offer-vps-head: #cae8d8; --offer-vps-border: #164a30; --offer-vps-hover: #0e4f2c; --offer-vps-accent: #0b6132;
    --offer-web-bg: #e1ecfa; --offer-web-head: #ccddf5; --offer-web-border: #163e6e; --offer-web-hover: #0f4c96; --offer-web-accent: #0d478a;
    --offer-storage-bg: #f5ede6; --offer-storage-head: #eadcd0; --offer-storage-border: #664329; --offer-storage-hover: #875835; --offer-storage-accent: #6e3f1d;
    --offer-mc-bg: #e4f2e6; --offer-mc-head: #cfe6d2; --offer-mc-border: #26522e; --offer-mc-hover: #1f662c; --offer-mc-accent: #1c5927;
    --offer-games-bg: #f7e8ec; --offer-games-head: #edd5dc; --offer-games-border: #692438; --offer-games-hover: #8c2f4a; --offer-games-accent: #7d1e36;
    --offer-bots-bg: #e4e8fa; --offer-bots-head: #d0d7f5; --offer-bots-border: #232c69; --offer-bots-hover: #313f99; --offer-bots-accent: #2d3b8f;
  }
}

/* ==========================================================================
   7. Canonical Base & Typography Rules
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-body);
}

::selection {
  background: var(--selection-bg);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.bds-tabular,
.bds-price,
.bds-metric {
  font-variant-numeric: tabular-nums;
}

.bds-mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  font-variant-ligatures: none;
}

.bds-prose {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  max-width: var(--prose-max);
}

.bds-link {
  color: var(--accent-text);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard);
}

.bds-link:hover {
  color: var(--accent-text-hover);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* ==========================================================================
   8. Alternating Same-Polarity Cutout Section Bands
   ========================================================================== */
.bds-band {
  width: 100%;
  padding-block: var(--space-12);
}

.bds-band--alt {
  background-color: var(--band-alt-bg);
  color: var(--band-alt-fg);
  border-top: var(--border-width) solid var(--band-alt-border);
  border-bottom: var(--border-width) solid var(--band-alt-border);
}

.bds-band--emerald {
  background-color: var(--band-emerald-bg);
  color: var(--band-emerald-fg);
  border-top: var(--border-width) solid var(--band-emerald-border);
  border-bottom: var(--border-width) solid var(--band-emerald-border);
  padding-block: var(--space-8);
}

/* ==========================================================================
   9. Inline Icons & Tactile Cutout Buttons (2px Ink Outline + 3px Bottom Lip)
   ========================================================================== */
[hidden],
svg[hidden],
.bds-icon[hidden] {
  display: none !important;
}

.bds-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.bds-icon--xs {
  width: var(--icon-xs);
  height: var(--icon-xs);
}

.bds-icon--sm {
  width: var(--icon-sm);
  height: var(--icon-sm);
}

.bds-icon--lg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

.bds-btn {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--btn-height-md);
  padding: 0 var(--btn-px-md);
  border-radius: var(--btn-radius);
  border: var(--border-width) solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: none;
  transition:
    background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.bds-btn:hover {
  transform: none;
}

.bds-btn--sm {
  height: var(--btn-height-sm);
  padding: 0 var(--btn-px-sm);
  font-size: var(--text-xs);
}

.bds-btn--lg {
  height: var(--btn-height-lg);
  padding: 0 var(--btn-px-lg);
  font-size: var(--text-base);
}

.bds-btn--primary {
  background-color: var(--accent-solid);
  border-color: var(--accent-stroke);
  color: var(--text-on-accent);
  box-shadow: 0 3px 0 var(--accent-lip);
}

.bds-btn--primary:hover {
  background-color: var(--accent-solid-hover);
}

.bds-btn--primary:active {
  background-color: var(--accent-solid-active);
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-lip);
}

.bds-btn--secondary {
  background-color: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
  box-shadow: 0 3px 0 var(--border-extrude);
}

.bds-btn--secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-strong);
}

.bds-btn--secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border-extrude);
}

.bds-btn--ghost {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: none;
}

.bds-btn--ghost:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.bds-btn--danger {
  background-color: var(--danger-solid);
  border-color: var(--danger-stroke);
  color: var(--text-on-danger);
  box-shadow: 0 3px 0 var(--danger-lip);
}

.bds-btn--danger:hover {
  background-color: var(--danger-solid-hover);
}

.bds-btn--danger:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--danger-lip);
}

.bds-btn:disabled,
.bds-btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ==========================================================================
   10. Inputs, Selects & Textareas (8px Radius, 2px Stroke, Zero Blur Shadow)
   ========================================================================== */
.bds-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
}

.bds-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.4;
}

.bds-input,
.bds-select,
.bds-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--input-radius);
  border: var(--border-width) solid var(--border-default);
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  box-shadow: none;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

.bds-input,
.bds-select {
  height: var(--input-height);
  padding: 0 var(--input-px);
}

.bds-textarea {
  min-height: 96px;
  padding: var(--space-3) var(--input-px);
  resize: vertical;
}

.bds-input[type="password"] {
  font-family: -apple-system, BlinkMacSystemFont, "Figtree", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-variant-ligatures: none;
}

.bds-input[type="password"]::placeholder {
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-body);
}

.bds-input::placeholder,
.bds-textarea::placeholder {
  color: var(--text-muted);
}

.bds-input:hover,
.bds-select:hover,
.bds-textarea:hover {
  border-color: var(--border-strong);
}

.bds-input:focus-visible,
.bds-select:focus-visible,
.bds-textarea:focus-visible {
  border-color: var(--focus-ring);
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: -1px;
}

.bds-input[aria-invalid="true"],
.bds-select[aria-invalid="true"],
.bds-textarea[aria-invalid="true"] {
  border-color: var(--status-danger-fg);
}

.bds-input:disabled,
.bds-select:disabled,
.bds-textarea:disabled {
  background-color: var(--bg-recessed);
  color: var(--text-muted);
  cursor: not-allowed;
}

.bds-help {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--text-muted);
}

.bds-error {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--status-danger-fg);
}

/* ==========================================================================
   11. Cutout Cards, Flush Window Headers & 6 Product Worlds
   ========================================================================== */
.bds-card {
  box-sizing: border-box;
  background-color: var(--bg-surface);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--plate-shadow);
  transform: none;
  transition:
    border-color var(--duration-base) var(--ease-standard),
    background-color var(--duration-base) var(--ease-standard);
}

.bds-card--flush {
  padding: 0;
  overflow: hidden;
}

.bds-card--interactive:hover {
  border-color: var(--border-strong);
  transform: none;
}

.bds-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background-color: var(--bg-recessed);
  border-bottom: var(--border-width) solid var(--border-default);
}

.bds-card__body {
  padding: var(--card-padding);
}

.bds-subtile {
  display: block;
  box-sizing: border-box;
  background-color: var(--bg-recessed);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--subtile-radius);
  padding: var(--subtile-py) var(--subtile-px);
  color: var(--text-primary);
  text-decoration: none;
  transform: none;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}

a.bds-subtile:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
  transform: none;
}

/* 6 Product Category Cutout Cards */
.bds-home-offers .bds-offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: var(--border-width) solid var(--offer-border, var(--border-default));
  background-color: var(--offer-bg, var(--bg-surface));
  box-shadow: var(--plate-shadow);
  transform: none;
  transition: border-color var(--duration-base) var(--ease-standard);
}

.bds-home-offers .bds-offer-card:hover {
  border-color: var(--offer-hover, var(--border-strong));
  transform: none;
}

.bds-home-offers .bds-offer-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--offer-head, var(--bg-recessed));
  border-bottom: var(--border-width) solid var(--offer-border, var(--border-default));
}

.bds-home-offers .bds-offer-card__body {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bds-home-offers .bds-offer-accent {
  color: var(--offer-accent, var(--accent-text));
}

.bds-home-offers .bds-offer-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--badge-py) var(--badge-px);
  border-radius: var(--badge-radius);
  border: var(--border-width) solid var(--offer-border, var(--border-default));
  background-color: var(--offer-bg, var(--bg-elevated));
  color: var(--offer-accent, var(--text-primary));
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-variant-ligatures: none;
  line-height: 1.4;
  white-space: nowrap;
}

.bds-home-offers [data-offer="vps"] {
  --offer-bg: var(--offer-vps-bg);
  --offer-head: var(--offer-vps-head);
  --offer-border: var(--offer-vps-border);
  --offer-hover: var(--offer-vps-hover);
  --offer-accent: var(--offer-vps-accent);
}

.bds-home-offers [data-offer="web"] {
  --offer-bg: var(--offer-web-bg);
  --offer-head: var(--offer-web-head);
  --offer-border: var(--offer-web-border);
  --offer-hover: var(--offer-web-hover);
  --offer-accent: var(--offer-web-accent);
}

.bds-home-offers [data-offer="storage"] {
  --offer-bg: var(--offer-storage-bg);
  --offer-head: var(--offer-storage-head);
  --offer-border: var(--offer-storage-border);
  --offer-hover: var(--offer-storage-hover);
  --offer-accent: var(--offer-storage-accent);
}

.bds-home-offers [data-offer="mc"] {
  --offer-bg: var(--offer-mc-bg);
  --offer-head: var(--offer-mc-head);
  --offer-border: var(--offer-mc-border);
  --offer-hover: var(--offer-mc-hover);
  --offer-accent: var(--offer-mc-accent);
}

.bds-home-offers [data-offer="games"] {
  --offer-bg: var(--offer-games-bg);
  --offer-head: var(--offer-games-head);
  --offer-border: var(--offer-games-border);
  --offer-hover: var(--offer-games-hover);
  --offer-accent: var(--offer-games-accent);
}

.bds-home-offers [data-offer="bots"] {
  --offer-bg: var(--offer-bots-bg);
  --offer-head: var(--offer-bots-head);
  --offer-border: var(--offer-bots-border);
  --offer-hover: var(--offer-bots-hover);
  --offer-accent: var(--offer-bots-accent);
}

/* ==========================================================================
   12. Stamped Status Badges & Alerts (6px / 10px Radius, 2px Ink Border)
   ========================================================================== */
.bds-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--badge-py) var(--badge-px);
  border-radius: var(--badge-radius);
  border: var(--border-width) solid var(--border-default);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-variant-ligatures: none;
  line-height: 1.4;
  white-space: nowrap;
}

.bds-badge--ok {
  color: var(--status-ok-fg);
  background-color: var(--status-ok-bg);
  border-color: var(--status-ok-border);
}

.bds-badge--warn {
  color: var(--status-warn-fg);
  background-color: var(--status-warn-bg);
  border-color: var(--status-warn-border);
}

.bds-badge--danger {
  color: var(--status-danger-fg);
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
}

.bds-badge--info {
  color: var(--status-info-fg);
  background-color: var(--status-info-bg);
  border-color: var(--status-info-border);
}

.bds-alert {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-default);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}

p.bds-alert {
  display: block;
}

p.bds-alert .bds-link {
  white-space: nowrap;
}

.bds-alert.bds-alert--ok {
  background-color: var(--status-ok-bg);
  border-color: var(--status-ok-border);
  color: var(--status-ok-fg);
}

.bds-alert.bds-alert--warn {
  background-color: var(--status-warn-bg);
  border-color: var(--status-warn-border);
  color: var(--status-warn-fg);
}

.bds-alert.bds-alert--danger {
  background-color: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger-fg);
}

.bds-alert.bds-alert--info {
  background-color: var(--status-info-bg);
  border-color: var(--status-info-border);
  color: var(--status-info-fg);
}

/* ==========================================================================
   13. Segmented Footer Theme Switcher (Zero Layout Shift)
   ========================================================================== */
.bds-theme-switch {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: 2px;
  gap: 2px;
  margin: 0;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-default);
  background-color: var(--bg-recessed);
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  font: inherit;
  color: inherit;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.bds-theme-switch:hover {
  border-color: var(--border-strong);
}

.bds-theme-switch:active {
  transform: translateY(1px);
}

.bds-theme-switch:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.bds-theme-switch__thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 3px);
  box-sizing: border-box;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface);
  border: 2px solid var(--border-default);
  box-shadow: 0 1px 0 var(--border-extrude);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  transition:
    transform 240ms var(--ease-standard),
    background-color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard);
}

html:not(.dark) .bds-theme-switch__thumb {
  transform: translate3d(calc(100% + 2px), 0, 0);
}

.bds-theme-switch__btn {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-standard);
}

.bds-theme-switch__btn:not(:has(span)) {
  width: 32px;
  min-width: 32px;
  padding: 0;
}

html.dark .bds-theme-switch:hover .bds-theme-switch__btn[data-bds-set-theme="light"],
html:not(.dark) .bds-theme-switch:hover .bds-theme-switch__btn[data-bds-set-theme="dark"] {
  color: var(--text-primary);
}

html.dark .bds-theme-switch__btn[data-bds-set-theme="dark"],
html:not(.dark) .bds-theme-switch__btn[data-bds-set-theme="light"] {
  color: var(--text-primary);
}

/* ==========================================================================
   14. Smooth Theme Polarity Transitions & Reduced Motion
   ========================================================================== */
html.bds-theme-vt .bds-theme-switch__thumb {
  transition: none !important;
}

html.bds-theme-vt::view-transition-old(root),
html.bds-theme-vt::view-transition-new(root),
html.bds-theme-vt::view-transition-group(bds-theme-track),
html.bds-theme-vt::view-transition-group(bds-theme-thumb),
html.bds-theme-vt::view-transition-group(bds-theme-dark),
html.bds-theme-vt::view-transition-group(bds-theme-light),
html.bds-theme-vt::view-transition-old(bds-theme-track),
html.bds-theme-vt::view-transition-new(bds-theme-track),
html.bds-theme-vt::view-transition-old(bds-theme-thumb),
html.bds-theme-vt::view-transition-new(bds-theme-thumb),
html.bds-theme-vt::view-transition-old(bds-theme-dark),
html.bds-theme-vt::view-transition-new(bds-theme-dark),
html.bds-theme-vt::view-transition-old(bds-theme-light),
html.bds-theme-vt::view-transition-new(bds-theme-light) {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
  mix-blend-mode: normal;
}

html.bds-theme-transitioning,
html.bds-theme-transitioning *,
html.bds-theme-transitioning *::before,
html.bds-theme-transitioning *::after {
  transition:
    background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    fill 260ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke 260ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html.bds-theme-transitioning .bds-theme-switch__thumb {
  transition:
    transform 340ms cubic-bezier(0.32, 0.72, 0, 1),
    background-color 280ms cubic-bezier(0.32, 0.72, 0, 1),
    border-color 280ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 280ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-spin,
  .bds-spin {
    animation-duration: 1.8s !important;
    animation-iteration-count: infinite !important;
  }
}
