/* ================================================================
   STARTORCH STUDIOS — base.css
   Design tokens, reset, global background, accessibility,
   layout utilities, shared badges & section typography.
   ================================================================ */


/* ----------------------------------------------------------------
   1. DESIGN TOKENS — LIGHT BLUE THEME
   ---------------------------------------------------------------- */
:root {
  /* ── Base palette: Atmospheric Contrast & Luminous Accents ── */
  --clr-bg:          #051525;   /* Deep base                            */
  --clr-bg-alt:      #082038;   /* Section contrast                     */
  --clr-surface:     rgba(7, 28, 46, 0.75);  /* Frosted Dark Glass      */
  --clr-surface-2:   rgba(11, 38, 62, 0.90); /* Hovered card surface    */
  --clr-surface-solid: #071C2E;

  /* ── Supa Light Blue Signature Palette ── */
  --clr-blue-light:  #BAE6FD;   /* Soft Sky Blue Accent                 */
  --clr-blue:        #38BDF8;   /* Electric Sky Blue                    */
  --clr-blue-vivid:  #0EA5E9;   /* Primary Brand Blue                   */
  --clr-blue-deep:   #0284C7;   /* Deep Ocean Blue                      */
  --clr-blue-dark:   #051C33;   /* High-Contrast Navy for Light Top     */
  
  --clr-accent:      #38BDF8;
  --clr-accent-glow: rgba(56, 189, 248, 0.25);
  --clr-accent-glow-strong: rgba(56, 189, 248, 0.55);

  /* ── Secondary Badges (Supa Color Pills) ── */
  --clr-pill-cyan:   #38BDF8;
  --clr-pill-ice:    #E0F2FE;
  --clr-pill-orange: #FB923C;
  --clr-pill-purple: #818CF8;

  /* ── Borders (Luminous Ice Glass) ── */
  --clr-border:      rgba(56, 189, 248, 0.20);
  --clr-border-mid:  rgba(56, 189, 248, 0.35);
  --clr-border-glow: rgba(56, 189, 248, 0.70);

  /* ── Typography ── */
  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* ── Text scale (High-contrast for dark & light gradient zones) ── */
  --clr-text:        #FFFFFF;   /* Primary crisp white text for dark/gradient zones */
  --clr-text-dark:   #051C33;   /* High-contrast midnight navy for light top zone   */
  --clr-muted:       #CBD5E1;   /* Readable light slate body text                  */
  --clr-muted-dark:  #102A43;   /* Readable dark slate body for light top zone      */
  --clr-muted-2:     #94A3B8;   /* Crisp secondary captions                         */

  /* ── Fluid type scale ── */
  --text-xs:    clamp(0.68rem, 1.1vw, 0.78rem);
  --text-sm:    clamp(0.82rem, 1.4vw, 0.90rem);
  --text-base:  clamp(0.95rem, 1.8vw, 1.05rem);
  --text-lg:    clamp(1.10rem, 2.2vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 2.8vw, 1.48rem);
  --text-2xl:   clamp(1.50rem, 3.5vw, 1.95rem);
  --text-3xl:   clamp(2.0rem,  4.5vw, 2.8rem);
  --text-4xl:   clamp(2.8rem,  6vw,   4.4rem);
  --text-hero:  clamp(3.4rem,  8.5vw, 6.4rem);

  /* ── Spacing ── */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* ── Radii ── */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* ── Shadows & Glows ── */
  --shadow-card:  0 10px 36px rgba(7, 28, 46, 0.07), 0 0 0 1px var(--clr-border);
  --shadow-hover: 0 18px 54px rgba(7, 28, 46, 0.14), 0 0 28px rgba(14, 165, 233, 0.16), 0 0 0 1px var(--clr-border-mid);
  --glow-blue:    0 0 35px rgba(14, 165, 233, 0.35);

  /* ── Transitions ── */
  --ease:       240ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow:  500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout ── */
  --container-max: 1320px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);
  --nav-height:    76px;
  --section-pad:   clamp(5rem, 12vw, 9.5rem);

  /* ── 3D PC Component (exact values from pc-3d.css) ── */
  --clr-monitor-bg:       #061524;
  --clr-monitor-bezel:    #0f2d4a;
  --clr-monitor-depth-bg: #081d33;
  --clr-monitor-depth-border: #1a4267;
  --clr-topbar-bg:        #0a2238;
  --clr-screen-bg:        #07192b;
  --clr-stand-top:        #163d63;
  --clr-stand-bottom:     #0c233a;
  --clr-stand-border:     #23588a;
  --clr-base-grad-start:  #1c4b7a;
  --clr-base-grad-end:    #0d2742;
  --clr-keyboard-bg:      #092036;
  --clr-key-bg:           #103254;
  --clr-key-shadow:       #061626;

  /* ── Light Zone Dark ── */
  --clr-blue-dark-alt:    #0a4a8a;
}


/* ----------------------------------------------------------------
   2. RESET & SEAMLESS LIGHT BLUE ATMOSPHERIC BACKGROUND
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  background-color: #000000;
}

::selection {
  background-color: var(--clr-blue-light);
  color: var(--clr-blue-dark);
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--clr-text);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ── Full-Page Seamless Light Blue Mesh Gradient ── */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f0fe 0%, #1538c8 45%, #000000 80%);
}

/* Subtle Supa Dupa grid matrix with light blue tint */
.global-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.12) 1px,
    transparent 1px
  );
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.85;
}

img, svg, video { display: block; max-width: 100%; }
a               { color: inherit; text-decoration: none; }
ul, ol          { list-style: none; }
button          { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.1; font-weight: 700; color: var(--clr-text); }


/* ----------------------------------------------------------------
   3. ACCESSIBILITY
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--clr-blue-vivid);
  color: #ffffff;
  font-weight: 800;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }


/* ----------------------------------------------------------------
   4. LAYOUT UTILITY
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.line {
  width: 100%;
  height: 1px;
  background: var(--clr-border-mid);
  margin-block: var(--sp-6);
}


/* ----------------------------------------------------------------
   5. SUPA DUPA BADGES & EMBLEMS
   ---------------------------------------------------------------- */
.supa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7DD3FC;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  width: fit-content;
}

.star-emblem {
  display: inline-block;
  width: 15px;
  height: 15px;
  color: #38BDF8;
  animation: spinSlow 18s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  line-height: 1.06;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.section-sub {
  font-size: var(--text-lg);
  color: #CBD5E1;
  max-width: 54ch;
  line-height: 1.75;
}

.section-header { margin-bottom: var(--sp-8); }

.accent {
  color: var(--clr-blue-vivid);
  text-shadow: 0 0 35px rgba(14, 165, 233, 0.25);
}
