/* ============================================================
   GLIDE — Universal TV Remote
   Dark, hardware-inspired. Inter. Blue used sparingly.
   ============================================================ */

:root {
  --bg: #080A0E;
  --surface: #15181F;
  --raised: #242832;
  --ink: #FFFFFF;
  --muted: #969BA5;
  --blue: #0071E3;
  --blue-hi: #3395F5;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --max: 1160px;
  --gut: 32px;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
::selection { background: var(--blue); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

.g-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ================= TOPBAR ================= */
.g-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.g-topbar-in { height: 72px; display: flex; align-items: center; gap: 28px; }
.g-brand { display: flex; align-items: center; gap: 10px; }
.g-brand-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
}
.g-brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.g-brand-sub {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px;
}
.g-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.g-nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s ease; }
.g-nav a:hover { color: var(--ink); }
.g-topbar-actions { display: flex; align-items: center; gap: 12px; }
.g-menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 10px;
}
.g-menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.g-mobilemenu {
  position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column;
  overflow: hidden; max-height: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  background: rgba(8, 10, 14, 0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.g-mobilemenu a {
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  font-weight: 600; font-size: 15px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.g-mobilemenu.open { max-height: 420px; opacity: 1; visibility: visible; transform: none; overflow-y: auto; transition: max-height 0.4s var(--ease), opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s; }
.g-mobilemenu.open a { opacity: 1; transform: none; }
.g-mobilemenu-cta { color: var(--blue-hi) !important; }

/* ================= BUTTONS ================= */
.g-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  padding: 16px 28px; border-radius: 999px; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s ease, border-color 0.25s ease;
}
.g-btn svg { width: 18px; height: 18px; flex: none; }
.g-btn:hover { transform: translateY(-2px); }
.g-btn:active { transform: translateY(0) scale(0.99); transition-duration: 0.12s; }
.g-btn-primary { background: var(--blue); color: #fff; }
.g-btn-primary:hover { background: var(--blue-hi); box-shadow: 0 14px 32px rgba(0, 113, 227, 0.4); }
.g-btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.g-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.g-btn-small { padding: 11px 20px; font-size: 13.5px; }
.g-btn-small svg { width: 15px; height: 15px; }

/* ================= HERO ================= */
.g-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  padding-top: 88px; padding-bottom: 72px;
}
.g-eyebrow { margin-bottom: 24px; }
.g-pill {
  display: inline-block;
  border: 1px solid rgba(0, 113, 227, 0.55); border-radius: 999px;
  padding: 6px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi);
}
.g-hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
}
.g-lede { margin-top: 24px; max-width: 500px; font-size: 17.5px; line-height: 1.75; color: var(--muted); }
.g-hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.g-hero-meta {
  display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
}
.g-hero-meta dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.g-hero-meta dd { font-size: 14px; font-weight: 600; }

/* phone mock — dark remote UI */
.g-hero-visual { display: flex; flex-direction: column; align-items: center; }
.g-phone {
  width: min(320px, 100%); border-radius: 44px; padding: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(36, 40, 50, 0.35);
  transform: rotate(-1.4deg); transition: transform 0.5s var(--ease);
}
.g-hero-visual:hover .g-phone { transform: rotate(0deg) translateY(-4px); }
.g-phone-notch { width: 112px; height: 26px; margin: 2px auto 10px; border-radius: 999px; background: #000; border: 1px solid rgba(255,255,255,0.08); }
.g-screen {
  border-radius: 34px; background: var(--bg);
  border: 1px solid var(--line-soft);
  padding: 20px 18px 22px;
}
.g-screen-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.g-screen-top b { color: #34C77B; font-size: 10px; }
.g-pad {
  position: relative; width: 188px; height: 188px; margin: 22px auto 6px;
  border-radius: 50%; background: var(--raised);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.g-pad i { position: absolute; font-style: normal; color: var(--muted); font-size: 15px; line-height: 1; }
.g-up { top: 12px; left: 50%; transform: translateX(-50%); }
.g-up::after { content: '▲'; }
.g-right { right: 14px; top: 50%; transform: translateY(-50%); }
.g-right::after { content: '▶'; }
.g-down { bottom: 12px; left: 50%; transform: translateX(-50%); }
.g-down::after { content: '▼'; }
.g-left { left: 14px; top: 50%; transform: translateY(-50%); }
.g-left::after { content: '◀'; }
.g-pad em {
  position: absolute; inset: 62px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.g-navkeys {
  display: flex; justify-content: space-between; gap: 8px; margin-top: 18px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.g-navkeys span {
  flex: 1; text-align: center; padding: 10px 0;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px;
}
.g-volrow {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding: 12px 20px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 999px;
  font-size: 15px; font-weight: 700;
}
.g-volrow b { font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); }
.g-powerrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.g-power {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.16); position: relative; flex: none;
}
.g-power::after {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  border: 2px solid var(--blue-hi); border-top-color: transparent;
  transform: rotate(-45deg);
}
.g-cap { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ================= PLATFORMS ================= */
.g-platforms { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.g-platforms-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.g-platforms ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.g-platforms li {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  background: var(--surface);
}

/* ================= SECTIONS ================= */
.g-section { padding-top: 104px; padding-bottom: 8px; }
.g-sec-index {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.g-sec-index span:first-child { color: var(--blue-hi); }
.g-sec-index i { display: block; width: 36px; height: 1px; background: var(--blue); }
.g-sec-head h2 {
  font-size: clamp(30px, 4.2vw, 42px); line-height: 1.08;
  letter-spacing: -0.035em; font-weight: 700; max-width: 20ch;
}
.g-sec-sub { margin-top: 16px; max-width: 600px; color: var(--muted); font-size: 16.5px; }

/* features grid */
.g-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 44px;
}
.g-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 30px 28px;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.g-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); background: var(--raised); }
.g-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 20px;
  background: var(--raised); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.g-icon span { display: block; position: relative; }
.g-icon-dpad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--blue-hi); }
.g-icon-dpad::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--blue-hi); }
.g-icon-power { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blue-hi); border-top-color: transparent; transform: rotate(-45deg); }
.g-icon-thumb { width: 14px; height: 22px; border-radius: 8px; border: 2px solid var(--blue-hi); }
.g-icon-decks { width: 22px; height: 16px; border-radius: 5px; border: 2px solid var(--blue-hi); }
.g-icon-decks::after { content: ''; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; background: var(--blue-hi); border-radius: 2px; }
.g-icon-switch { width: 22px; height: 14px; }
.g-icon-switch::before, .g-icon-switch::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--blue-hi); }
.g-icon-switch::before { top: 2px; } .g-icon-switch::after { bottom: 2px; }
.g-icon-lock { width: 16px; height: 18px; border-radius: 5px; border: 2px solid var(--blue-hi); }
.g-icon-lock::after { content: ''; position: absolute; left: 4px; right: 4px; top: 6px; height: 6px; border-radius: 0 0 3px 3px; background: var(--blue-hi); }
.g-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.g-card p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* compatibility */
.g-compat {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 44px;
}
.g-compat li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 20px 24px;
}
.g-compat b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.g-compat span {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-hi); border: 1px solid rgba(0, 113, 227, 0.4); border-radius: 999px;
  padding: 5px 14px; white-space: nowrap;
}
.g-notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 16px;
}
.g-notes > div {
  background: transparent; border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px; padding: 26px 28px;
}
.g-notes h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.g-notes ul { list-style: none; display: grid; gap: 9px; }
.g-notes li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.65; }
.g-notes li::before { content: '—'; position: absolute; left: 0; color: var(--blue-hi); }

/* how it works */
.g-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.g-steps li {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 30px 28px;
}
.g-steps span {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--blue-hi); border: 1px solid rgba(0, 113, 227, 0.4);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.g-steps h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.g-steps p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* faq */
.g-faq { display: grid; gap: 12px; margin-top: 44px; max-width: 820px; }
.g-faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 0 24px; overflow: hidden;
}
.g-faq details[open] { border-color: rgba(255, 255, 255, 0.16); }
.g-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--blue-hi);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; transition: transform 0.3s var(--ease);
}
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 0 22px; font-size: 14.5px; color: var(--muted); line-height: 1.75; max-width: 62ch; }

/* download */
.g-dl {
  margin-top: 40px;
  background: linear-gradient(135deg, #0E1622 0%, var(--surface) 60%);
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 24px; padding: 56px 52px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.g-dl::before {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -180px; top: -200px; border: 1px solid rgba(0, 113, 227, 0.25);
  box-shadow: 0 0 0 30px rgba(0, 113, 227, 0.04), 0 0 0 60px rgba(0, 113, 227, 0.025);
  pointer-events: none;
}
.g-dl h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; font-weight: 800; margin: 20px 0 12px; }
.g-dl > div:first-child > p:last-of-type { color: var(--muted); max-width: 42ch; }
.g-dl-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.gplay {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: #0A0C10; border-radius: 16px; padding: 14px 26px 14px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
a.gplay:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); }
.gplay svg { width: 30px; height: 30px; flex: none; }
.gplay small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5B636E; }
.gplay b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.gplay.is-soon { opacity: 0.75; cursor: default; }
.g-dl-note { font-size: 13.5px; color: var(--muted); max-width: 38ch; }
.g-dl-note a { color: var(--blue-hi); font-weight: 600; border-bottom: 1px solid rgba(0, 113, 227, 0.5); }
.g-dl-note a:hover { border-color: var(--blue-hi); }

/* ================= FOOTER ================= */
.g-footer { border-top: 1px solid var(--line-soft); margin-top: 104px; padding-top: 56px; }
.g-foot-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr; gap: 32px; }
.g-foot-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.g-foot-grid p, .g-foot-grid a { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.g-foot-grid > div { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.g-foot-grid a:hover { color: var(--ink); }
.g-foot-k { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; opacity: 0.7; }
.g-foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--muted);
}

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .g-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .g-phone { width: min(300px, 100%); }
  .g-grid { grid-template-columns: repeat(2, 1fr); }
  .g-steps { grid-template-columns: 1fr; }
  .g-dl { grid-template-columns: 1fr; padding: 44px 32px; gap: 32px; }
  .g-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --gut: 24px; }
  .g-nav { display: none; }
  .g-topbar-actions { margin-left: auto; }
  .g-topbar-actions .g-btn { display: none; }
  .g-menu-btn { display: flex; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; }
  section[id] { scroll-margin-top: 76px; }
  .g-topbar-in { height: 64px; }
  .g-brand-sub { display: none; }
  .g-section { padding-top: 76px; }
  .g-hero { padding-top: 52px; padding-bottom: 56px; }
  .g-hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .g-lede { font-size: 16px; }
  .g-hero-cta .g-btn { width: 100%; justify-content: center; }
  .g-hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .g-grid { grid-template-columns: 1fr; }
  .g-compat { grid-template-columns: 1fr; }
  .g-compat li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
  .g-notes { grid-template-columns: 1fr; }
  .g-dl { padding: 36px 24px; }
  .g-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .g-foot-base { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .g-btn:hover, .g-card:hover, .g-hero-visual:hover .g-phone { transform: none; }
}
