/* TrackGlow site. Colours match the app (Desktop/Theme/Theme.xaml). */

@font-face { font-family: "Saira"; src: url("../assets/fonts/Saira-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../assets/fonts/Saira-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../assets/fonts/Saira-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../assets/fonts/Saira-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../assets/fonts/SairaCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../assets/fonts/SairaCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0A0919;
  --bg-2: #0E0C22;
  --card: #121030;
  --card-2: #17143C;
  --border: #242050;
  --text: #EEEBFF;
  --muted: #A8A3D6;
  --dim: #6F6A9E;
  --primary: #6D4BFF;
  --primary-h: #7B5CFF;
  --accent: #B9A4FF;
  --green: #22E07A;
  --red: #FF4D6A;
  --yellow: #FFB000;
  --blue: #3D7BFF;
  --purple: #B04DFF;

  --flag: var(--green);            /* set by js/main.js from the hero demo */

  --f-display: "Saira Condensed", "Saira", system-ui, sans-serif;
  --f-body: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 0; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, var(--primary-h), var(--primary));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(185,164,255,.25) inset, 0 10px 30px -8px rgba(109,75,255,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(185,164,255,.4) inset, 0 16px 40px -8px rgba(123,92,255,.85); }
.btn--ghost { background: rgba(23,20,60,.6); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Brand mark (the app icon) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { display: block; width: 34px; height: 34px; }
.brand__name { font: 700 22px/1 var(--f-display); letter-spacing: .02em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10,9,25,.78); backdrop-filter: blur(14px) saturate(140%); border-color: rgba(36,32,80,.7); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Common type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .num { color: var(--primary-h); padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,77,106,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,77,106,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,77,106,0); } }
.grad {
  background: linear-gradient(92deg, var(--accent) 0%, #8E73FF 45%, #4D8BFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head h2 {
  margin-top: 18px;
  font: 700 clamp(38px, 5.4vw, 64px)/1.02 var(--f-display);
  letter-spacing: -.005em; text-transform: uppercase;
}
.sec-lead { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 620px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 15vw, 170px) 0 clamp(90px, 10vw, 130px);
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 45% at 72% 42%, color-mix(in srgb, var(--flag) 26%, transparent), transparent 70%),
    radial-gradient(35% 40% at 20% 20%, rgba(109,75,255,.22), transparent 70%),
    radial-gradient(50% 50% at 50% 110%, rgba(61,123,255,.14), transparent 70%);
  transition: background .8s;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(36,32,80,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,32,80,.55) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title {
  margin-top: 22px;
  font: 700 clamp(46px, 6.3vw, 100px)/.92 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.hero__lead { margin-top: 26px; font-size: clamp(17px, 1.55vw, 20px); color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__actions--center { justify-content: center; }
.hero__meta { margin-top: 16px; font: 400 13px/1.4 var(--f-mono); color: var(--dim); letter-spacing: .02em; }

.flagpad { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.flagpad__label { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.flagbtn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}
.flagbtn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.flagbtn:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 60%, var(--border)); }
.flagbtn.is-on { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); box-shadow: 0 0 20px -6px var(--c); }

.kerb {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--red) 0 34px, var(--text) 34px 68px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------- Floating 3D windows ("screenshots") ---------- */
.stage {
  position: relative;
  perspective: 1800px;
  perspective-origin: 50% 40%;
  container-type: inline-size;
}
.win {
  --ry: -16deg; --rx: 7deg; --rz: 1.5deg;
  --py: 0deg; --px: 0deg;                 /* pointer parallax, set by JS */
  margin: 0;
  position: relative;
  font-size: clamp(6px, 1.62cqi, 13px);   /* everything inside is sized in em, so the window scales */
  border-radius: 1em;
  background: var(--bg);
  border: 1px solid #2B2662;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 2em 4em -1em rgba(0,0,0,.65),
    0 4em 9em -2em rgba(109,75,255,.45),
    0 0 6em -1em color-mix(in srgb, var(--glow, var(--primary)) 45%, transparent);
  transform: rotateY(calc(var(--ry) + var(--py))) rotateX(calc(var(--rx) + var(--px))) rotateZ(var(--rz));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease), opacity .9s var(--ease), box-shadow .8s;
  overflow: hidden;
  will-change: transform;
}
.win::after {  /* glass sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 70%, rgba(185,164,255,.05) 100%);
}
/* The side nearest the screen edge comes toward the viewer */
.side-right { --ry: -17deg; --rx: 7deg;  --rz: 1.5deg; }
.side-left  { --ry: 17deg;  --rx: 7deg;  --rz: -1.5deg; }
.stage .win { animation: float 9s ease-in-out infinite; }
.feat:nth-of-type(even) .stage .win { animation-delay: -4.5s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
/* Entry: windows swing in from a steeper angle */
.js .stage .win:not(.is-in) { opacity: 0; transform: rotateY(calc(var(--ry) * 2.2)) rotateX(calc(var(--rx) * 2)) rotateZ(var(--rz)) translateZ(-160px); }

.stage::after { /* soft floor glow beneath each window */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -10%; height: 22%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(109,75,255,.35), transparent 70%);
  filter: blur(20px);
}

.win__img { display: block; width: 100%; height: auto; background: var(--bg); }
.win__bar {
  display: flex; align-items: center; gap: .7em;
  height: 3em; padding: 0 1.1em;
  background: #0D0B22; border-bottom: 1px solid #1E1A48;
  font-size: 1em; white-space: nowrap;
}
.win__bar b { font: 600 1.1em/1 var(--f-body); }
.win__logo { display: block; width: 1.9em; height: 1.9em; }
.pro { font: 700 .72em/1 var(--f-body); letter-spacing: .06em; padding: .35em .55em; border-radius: .4em; background: #2A2170; color: var(--accent); font-style: normal; }
.win__crumb { color: var(--muted); font-size: 1.05em; margin-left: .3em; }
.win__live { display: inline-flex; align-items: center; gap: .5em; margin-left: .6em; padding: .35em .7em; border-radius: .5em; border: 1px solid #241F55; font-size: .85em; color: var(--muted); }
.win__ctl { margin-left: auto; display: inline-flex; gap: 1.6em; }
.win__ctl i { width: .9em; height: .9em; border: 1.5px solid var(--dim); border-radius: 2px; opacity: .8; }
.win__ctl i:first-child { border-width: 0 0 1.5px; border-radius: 0; height: .5em; }
.win__ctl i:last-child { border: 0; position: relative; }
.win__ctl i:last-child::before, .win__ctl i:last-child::after { content: ""; position: absolute; left: 50%; top: -10%; width: 1.5px; height: 120%; background: var(--dim); transform: rotate(45deg); }
.win__ctl i:last-child::after { transform: rotate(-45deg); }

.m-sub { font-size: .85em; color: var(--muted); }
.m-flag {
  align-self: flex-start;
  font: 700 1.55em/1 var(--f-display); letter-spacing: .04em;
  padding: .35em .6em; border-radius: .4em;
  background: var(--flag); color: #0A0919;
  box-shadow: 0 0 1.6em -0.2em var(--flag);
  transition: background .4s, box-shadow .4s;
}
.rig { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: .9em 1.2em; align-items: center; }
.rig__kb { display: grid; grid-template-columns: repeat(18, 1fr); gap: .22em; padding: .6em; border-radius: .6em; background: #07061A; border: 1px solid #1E1A48; }
.rig__fans { display: flex; gap: .8em; }
.rig__fan { position: relative; width: 4.6em; height: 4.6em; border-radius: 50%; background: radial-gradient(circle, #07061A 45%, #0D0B22 46%); border: 1px solid #1E1A48; }
.rig__fan .led { position: absolute; left: 50%; top: 50%; width: .55em; height: .55em; margin: -.275em; border-radius: 50%; }
.rig__strip { grid-column: 1 / -1; display: flex; gap: .3em; padding: .45em .5em; border-radius: 99px; background: #07061A; border: 1px solid #1E1A48; }
.rig__kb .led { height: .95em; border-radius: .18em; }
.rig__strip .led { flex: 1; height: .5em; border-radius: 99px; }
.led { color: #15123A; background: currentColor; box-shadow: 0 0 .45em -.05em currentColor; }

/* Hero: Live Timing clip with the lights demo floating in front */
.stage--hero { margin-right: calc(-1 * min(6vw, 90px)); padding-bottom: 9%; }
.win--hero { --glow: var(--flag); overflow: visible; }
.win--hero .win__img, .win--wide .win__img { border-radius: inherit; }
.win--leds {
  position: absolute; left: -12%; bottom: -2%; width: 50%; z-index: 3;
  font-size: clamp(5px, 1.05cqi, 10px);
  --ry: -14deg; --rx: 8deg; --rz: 2deg;
  box-shadow: 0 2em 4em -1em rgba(0,0,0,.8), 0 0 5em -1em color-mix(in srgb, var(--flag) 60%, transparent);
}
.stage .win--leds { animation-delay: -3s; animation-duration: 7s; }
.leds { padding: 1.2em; display: flex; flex-direction: column; gap: 1.1em; }
.leds__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.leds__top b { color: var(--text); font-weight: 600; }

/* Live Timing section */
.section--lt { overflow-x: clip; }
.lt-glow {
  position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 50% at 50% 20%, rgba(34,224,122,.10), transparent 70%),
    radial-gradient(60% 60% at 50% 40%, rgba(109,75,255,.22), transparent 70%);
}
.sec-head--wide { max-width: 900px; }
.sec-head--wide .sec-lead { max-width: 760px; }
.side-flat { --ry: 0deg; --rx: 14deg; --rz: 0deg; }
.stage--wide { margin: 0 calc(-1 * min(4vw, 60px)); perspective: 2400px; }
.stage--wide .win { animation-duration: 11s; }
.ltgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: clamp(70px, 9vw, 120px); }
.ltgrid .stage .win { font-size: clamp(6px, 1.5cqi, 12px); }
.ltgrid .ltcard:first-child .stage { margin-left: calc(-1 * min(6vw, 90px)); }
.ltgrid .ltcard:last-child .stage { margin-right: calc(-1 * min(6vw, 90px)); }
.ltcard__copy { margin-top: 44px; max-width: 520px; }
.ltcard__copy h3, .feat--pit h3 { margin-top: 18px; font: 700 clamp(28px, 3.2vw, 40px)/1.05 var(--f-display); text-transform: uppercase; }
.ltcard__copy p { margin-top: 12px; color: var(--muted); }
.feat--pit { margin-top: clamp(40px, 6vw, 70px); }
.win--crop { max-width: 600px; margin-left: auto; }
.ltfeat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(30px, 5vw, 60px); }
.ltfeat li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); border-top: 2px solid rgba(34,224,122,.5); }
.ltfeat b { font-weight: 600; font-size: 17px; }
.ltfeat span { color: var(--muted); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; margin-bottom: clamp(20px, 4vw, 50px); }
.steps::before {
  content: ""; position: absolute; top: 47px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.step { position: relative; padding: 32px 28px 30px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border); }
.step__n {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); color: #fff; font: 700 18px/1 var(--f-display);
  box-shadow: 0 0 24px -4px var(--primary);
}
.step:nth-child(2) .step__n { background: var(--yellow); color: #1A1200; box-shadow: 0 0 24px -4px var(--yellow); }
.step:nth-child(3) .step__n { background: var(--green); color: #052012; box-shadow: 0 0 24px -4px var(--green); }
.step h3 { margin-top: 22px; font: 700 26px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* ---------- Features ---------- */
.section--clip { overflow-x: clip; }
.sec-head--sub { margin-top: clamp(80px, 10vw, 130px); }
.section--features { overflow-x: clip; background: linear-gradient(180deg, transparent, rgba(18,16,48,.45) 20%, rgba(18,16,48,.45) 80%, transparent); }
.feat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.feat--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feat--flip .feat__copy { order: 2; }
.feat--flip .stage { order: 1; }
/* Windows reach out toward the screen edge */
.feat .stage { margin-right: calc(-1 * min(9vw, 140px)); }
.feat--flip .stage { margin-right: 0; margin-left: calc(-1 * min(9vw, 140px)); }
.tag {
  display: inline-block; padding: 6px 12px; border-radius: 99px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(109,75,255,.14); border: 1px solid rgba(109,75,255,.4); color: var(--accent);
}
.tag--pro { background: linear-gradient(90deg, rgba(109,75,255,.3), rgba(176,77,255,.2)); }
.feat h3 { margin-top: 20px; font: 700 clamp(32px, 4vw, 48px)/1.02 var(--f-display); text-transform: uppercase; }
.feat p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 6px;
  background: rgba(34,224,122,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322E07A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--pro li::before { background-color: rgba(185,164,255,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9A4FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 80px); }
.mini { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.mini:hover { border-color: rgba(109,75,255,.6); transform: translateY(-4px); background: var(--card-2); }
.mini__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(109,75,255,.14); border: 1px solid rgba(109,75,255,.35); }
.mini__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini h3 { margin-top: 18px; font: 600 19px/1.2 var(--f-body); }
.mini p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Lights ---------- */
.lights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.light { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); position: relative; overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.light:hover { border-color: rgba(109,75,255,.6); transform: translateY(-4px); }
.light h3 { font: 700 24px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.light p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.light--main { grid-column: span 2; grid-row: span 3; padding: 34px; background: radial-gradient(120% 90% at 100% 0%, rgba(109,75,255,.22), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.light--main h3 { font-size: clamp(36px, 4vw, 48px); margin-top: 16px; }
.light--main p { font-size: 17px; }
.light__badge { display: inline-block; padding: 5px 10px; border-radius: 99px; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(34,224,122,.14); color: var(--green); border: 1px solid rgba(34,224,122,.35); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pills li { padding: 6px 13px; border-radius: 99px; background: rgba(10,9,25,.6); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.light__strip { display: flex; gap: 5px; margin-top: 30px; padding: 7px; border-radius: 99px; background: #07061A; border: 1px solid #1E1A48; }
.light__strip .led { flex: 1; height: 8px; border-radius: 99px; }

/* ---------- Series ---------- */
.series { columns: 3 300px; column-gap: 18px; }
.sgroup { break-inside: avoid; margin-bottom: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--border); }
.sgroup h3 { font: 700 15px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.sgroup h3::before { content: ""; width: 14px; height: 10px; border-radius: 2px; background: conic-gradient(var(--text) 25%, var(--bg) 0 50%, var(--text) 0 75%, var(--bg) 0) 0 0 / 7px 5px; opacity: .8; }
.sgroup__h2 { margin-top: 22px; }
.sgroup ul { margin-top: 14px; display: flex; flex-direction: column; }
.sgroup li { padding: 7px 0; border-top: 1px solid rgba(36,32,80,.6); font-size: 16px; }
.sgroup li:first-child { border-top: 0; }
.series__note { margin-top: 18px; color: var(--dim); font-size: 14px; max-width: 760px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 42px); border-radius: 26px; background: var(--card); border: 1px solid var(--border); }
.plan h3 { font: 700 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.plan__price { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.plan__price b { font: 700 52px/1 var(--f-display); }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__desc { margin-top: 10px; color: var(--muted); }
.plan .ticks { margin: 26px 0 32px; flex: 1; }
.plan--pro {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(109,75,255,.35), transparent 60%),
    linear-gradient(180deg, #1A1646, var(--card));
  border-color: rgba(123,92,255,.6);
  box-shadow: 0 30px 80px -30px rgba(109,75,255,.6);
}
.plan--pro .plan__price b { background: linear-gradient(92deg, var(--accent), #7B9BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__flag { position: absolute; top: -13px; right: 28px; padding: 6px 12px; border-radius: 99px; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--primary); color: #fff; box-shadow: 0 6px 20px -4px var(--primary); }
.plan__fine { margin-top: 14px; text-align: center; font-size: 13px; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(109,75,255,.55); background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq__more { margin-top: 28px; text-align: center; color: var(--muted); }
.faq__more a { color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 clamp(90px, 11vw, 140px); }
.cta__inner {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(50px, 7vw, 90px) clamp(20px, 5vw, 60px);
  border-radius: 32px; border: 1px solid rgba(123,92,255,.5);
  background: radial-gradient(80% 120% at 50% 0%, rgba(109,75,255,.35), transparent 65%), linear-gradient(180deg, #17143C, #0E0C26);
}
.cta__inner h2 { font: 700 clamp(40px, 6vw, 76px)/1 var(--f-display); text-transform: uppercase; }
.cta__inner p { margin: 16px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; }
.cta__leds { display: flex; gap: 6px; max-width: 420px; margin: 0 auto 34px; }
.cta__leds .led { flex: 1; height: 10px; border-radius: 99px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: #08071500; padding: 60px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { margin-top: 12px; color: var(--dim); font-size: 15px; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer__cols h4 { font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(36,32,80,.6); color: var(--dim); font-size: 13px; }
.footer__notes { display: grid; gap: 10px; max-width: 760px; }
.footer__by { font-size: 14px; }
.footer__by b { color: var(--muted); font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lights { grid-template-columns: repeat(2, 1fr); }
  .light--main { grid-row: auto; }
  .minis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px var(--gutter) 22px;
    background: rgba(10,9,25,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { background: rgba(10,9,25,.96); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgba(36,32,80,.5); }
  .nav__cta { margin-top: 12px; height: 48px; }

  .hero__inner { grid-template-columns: 1fr; }
  .stage--hero { margin: 30px 0 0; padding-bottom: 18%; }
  .win--leds { left: -2%; width: 62%; bottom: 0; }
  .ltgrid { grid-template-columns: 1fr; }
  .ltgrid .ltcard:first-child .stage, .ltgrid .ltcard:last-child .stage { margin: 0; }
  .ltfeat { grid-template-columns: 1fr 1fr; }
  .win--crop { margin: 0 auto; }
  .feat, .feat--flip { grid-template-columns: 1fr; }
  .feat--flip .feat__copy { order: 0; }
  .feat .stage, .feat--flip .stage { order: 1; margin: 0; }
  .side-right { --ry: -10deg; --rx: 9deg; --rz: 1deg; }
  .side-left  { --ry: 10deg;  --rx: 9deg; --rz: -1deg; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .lights, .minis { grid-template-columns: 1fr; }
  .light--main { grid-column: auto; }
  .hero__actions .btn { width: 100%; }
  .hero__title { font-size: clamp(50px, 15vw, 72px); }
  .ltfeat { grid-template-columns: 1fr; }
  .win--leds { width: 72%; font-size: clamp(5px, 1.6cqi, 10px); }
  .stage--wide { margin: 0; }
  .footer__legal { flex-direction: column; }
}

/* ---------- Phones and tablets: lighter scrolling ---------- */
/* Blurs behind fixed or moving layers, endless floating and wide soft shadows are what make
   phones stutter while scrolling. The windows keep their tilt and swing-in. */
@media (max-width: 920px) {
  .nav.is-scrolled { background: rgba(10,9,25,.95); backdrop-filter: none; }
  .nav__links { backdrop-filter: none; }
  .btn--ghost { backdrop-filter: none; background: rgba(23,20,60,.9); }
  .stage .win { animation: none; will-change: auto; }
  .win { box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 1.6em 3em -1em rgba(0,0,0,.7), 0 2.5em 5em -2em rgba(109,75,255,.4); }
  .win--leds { box-shadow: 0 1.6em 3em -1em rgba(0,0,0,.8); }
  .stage::after { filter: none; background: radial-gradient(50% 50% at 50% 50%, rgba(109,75,255,.22), transparent 80%); }
  .mini:hover, .light:hover { transform: none; }
}

/* ---------- Phones: shorter page ---------- */
/* Card groups become swipeable rows, and spacing tightens. */
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2 { margin-top: 14px; }
  .sec-head--sub { margin-top: 56px; }
  .hero { padding: 104px 0 64px; }
  .feat { gap: 28px; padding: 28px 0; }
  .feat h3 { margin-top: 16px; }
  .feat p { margin-top: 12px; font-size: 16px; }
  .feat .ticks { display: none; }
  .ltgrid { gap: 40px; margin-top: 48px; }
  .ltcard__copy { margin-top: 28px; }
  .minis { margin-top: 24px; }

  /* The flag buttons scroll sideways in one row (min-width keeps that row from widening the hero) */
  .hero__copy { min-width: 0; }
  .flagpad { flex-wrap: nowrap; overflow-x: auto; margin: 26px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter); scrollbar-width: none; }
  .flagpad::-webkit-scrollbar { display: none; }
  .flagbtn, .flagpad__label { flex: none; }

  .ltfeat, .steps, .minis, .series {
    display: flex; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; columns: auto;
  }
  .ltfeat::-webkit-scrollbar, .steps::-webkit-scrollbar, .minis::-webkit-scrollbar,
  .series::-webkit-scrollbar { display: none; }
  .ltfeat > *, .steps > *, .minis > *, .series > * { flex: 0 0 84%; scroll-snap-align: start; }
  .series { align-items: flex-start; }
  /* Cards beside the screen are revealed by swiping, not by the scroll animation */
  .js .ltfeat .reveal, .js .steps .reveal, .js .minis .reveal, .js .series .reveal { opacity: 1; transform: none; transition: none; }
  .sgroup { margin-bottom: 0; }
  .steps { margin-bottom: 8px; }
  .step { padding: 26px 22px; }
  .mini, .sgroup { padding: 22px; }
  /* OpenRGB across the top, the other lights two by two */
  .lights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .light { padding: 18px 16px; border-radius: var(--r); }
  .light h3 { font-size: 20px; }
  .light p { font-size: 14px; line-height: 1.5; }
  .light--main { grid-column: 1 / -1; padding: 24px; border-radius: var(--r-lg); }
  .light--main h3 { font-size: 36px; }
  .light--main p { font-size: 16px; }

  .plan { padding: 26px 22px; }
  .plan .ticks { gap: 7px; margin: 20px 0 24px; }
  .plan .ticks li { font-size: 15px; }
  .faq { gap: 8px; }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; }

  /* The menu already has the page links, so the footer keeps download, Patreon and contact */
  .footer { padding: 44px 0 30px; }
  .footer__inner { gap: 28px; }
  .footer__cols { gap: 36px; }
  .footer__cols > div:first-child { display: none; }
  .footer__legal { margin-top: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .stage .win:not(.is-in) { opacity: 1; transform: rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(var(--rz)); }
  .js .reveal { transform: none; }
}
