/*
  Fluent-inspired dark theme styles for Xbox Game Bar landing
  Font: Segoe UI stack; Accent: #0078D4; Surfaces: Acrylic-like with blur
*/

:root {
  --bg: #0f0f10;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --text-muted: #c9c9c9;
  --accent: #0078d4;
  --accent-700: #106ebe;
  --accent-hover: #1890ff;
  --shadow: 0 10px 30px rgba(0,0,0,.45), 0 2px 12px rgba(0,0,0,.35);
  --shadow-accent: 0 6px 20px rgba(0,120,212,.4);
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 24px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", SegoeUI, system-ui, -apple-system, Roboto, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(0,120,212,.22), transparent 60%),
    radial-gradient(900px 700px at -10% 0%, rgba(16,110,190,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 30%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
}

/* Typography & vertical rhythm */
h1, h2, h3 { line-height: 1.3; margin: 0 0 16px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.section h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 32px); }
.card > * + * { margin-top: 16px; }
.feature > * + * { margin-top: 10px; }
.list { margin: 16px 0 0; padding-left: 20px; }
.list li + li { margin-top: 8px; line-height: 1.6; }
.steps { margin: 16px 0 0; padding-left: 20px; }
.steps li + li { margin-top: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand__logo-svg { width: 32px; height: 32px; display: inline-grid; place-items: center; filter: drop-shadow(0 2px 10px rgba(0,120,212,.35)); }
.brand__name { font-weight: 600; letter-spacing: .2px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; }
.nav__cta { margin-left: 6px; }

.hero {
  padding: 64px 0 32px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: 
    radial-gradient(800px 400px at 20% 0%, rgba(0,120,212,.18), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%);
  mask-image: linear-gradient(#000, transparent 75%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero__content h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.lead { color: var(--text-muted); font-size: clamp(16px, 2vw, 18px); }
.cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.badges { margin: 18px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.badges li { background: var(--surface); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.hero__media .screenshot { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero__media { display: grid; place-items: center; }
.hero__media .logo-hero { width: 160px; height: auto; border: 0; box-shadow: none; border-radius: 10px; }

.section { padding: 48px 0; }
.section:first-of-type { padding-top: 32px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(120%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4); }
.card--media { display: grid; place-items: center; padding: 0; overflow: hidden; }
.card--media img { width: 100%; height: auto; display: block; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 12px; }
.feature img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.feature h3 { margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--text-muted); }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1.1fr .9fr; }

.steps { margin: 10px 0 0; }
.steps li { margin: 8px 0; }
.steps--inline { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 10px; }

/* Stylish guide steps */
.steps--guide { list-style: none; padding-left: 0; margin-top: 12px; display: grid; gap: 10px; counter-reset: step; }
.steps--guide li { position: relative; margin: 0; padding: 12px 12px 12px 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.steps--guide li::before { counter-increment: step; content: counter(step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background: linear-gradient(180deg, var(--accent), var(--accent-700)); box-shadow: 0 4px 10px rgba(0,120,212,.35); }
.steps--guide li strong { color: #fff; }

.table { display: grid; gap: 10px; margin-top: 16px; }
.row { display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; transition: background .2s ease, border-color .2s ease; }
.row:hover { background: var(--surface-strong); border-color: rgba(255,255,255,.18); }
.cell { line-height: 1.5; }
.cell.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: linear-gradient(180deg, rgba(0,120,212,.25), rgba(0,120,212,.18)); border: 1px solid rgba(0,120,212,.3); border-radius: 8px; padding: 8px 12px; white-space: nowrap; font-size: 13px; font-weight: 600; color: #e3f2fd; text-align: center; min-width: fit-content; }
.cell:not(.kbd) { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; border-radius: 10px; padding: 10px 14px; border: 1px solid transparent; transition: transform .04s ease, background .2s ease, border-color .2s ease; }
.btn--lg { padding: 12px 18px; font-size: 16px; }
.btn--primary { color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-700)); border-color: rgba(255,255,255,.12); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: linear-gradient(180deg, var(--accent-hover), var(--accent)); box-shadow: 0 8px 24px rgba(0,120,212,.45); transform: translateY(-1px); }
.btn--store { gap: 8px; }
.btn__icon { display: inline-flex; }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); }
.btn--secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn:active { transform: translateY(1px); }

.footer { padding: 28px 0 50px; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--text-muted); }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; display: grid; place-items: center; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.to-top:hover { background: var(--surface-strong); }

/* Accessibility & responsive */
a:focus, button:focus, .btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 980px) {
  .hero__grid, .grid--2 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps--inline { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .cell.kbd { width: 100%; text-align: left; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .brand__name { display: none; }
  .features { grid-template-columns: 1fr; }
  .steps--inline { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .section { padding: 32px 0; }
  .card { padding: 20px; }
  .row { padding: 12px; }
  .cell.kbd { font-size: 12px; padding: 6px 10px; }
}


