:root {
  --bg: #14181e;
  --text: #ffffff;
  --muted: #b3b3b3;
  --accent: #4cc2ff;        /* Windows 11 dark accent, same as the app's buttons */
  --accent-strong: #0078d4; /* Windows system blue */
  --card: rgba(22, 27, 34, 0.8);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 10px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lexend Deca", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  /* Unity's dark slate gray lit by Windows blue */
  background-image:
    radial-gradient(ellipse 70% 55% at 85% -5%, rgba(0, 120, 212, 0.38), transparent 70%),
    radial-gradient(ellipse 60% 50% at -10% 60%, rgba(76, 194, 255, 0.10), transparent 70%),
    linear-gradient(180deg, #1d2530 0%, #161b22 45%, #13171c 100%);
  background-attachment: fixed;
}

a { color: var(--accent); }

img, video { display: block; max-width: 100%; height: auto; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(20, 24, 30, 0.7);
  border-bottom: 1px solid var(--card-border);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--accent); }
/* External link: a separate pill, so it does not read as an in-page section link. */
.top nav a.gh {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 8px; padding: 7px 12px 7px 14px; border-radius: 999px;
  background: rgba(22, 27, 34, 0.9); border: 1px solid var(--card-border);
  transition: border-color .15s;
}
.top nav a.gh:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.top nav a.gh .gh-logo { width: 17px; height: 17px; }
.top nav a.gh .ext { width: 14px; height: 14px; opacity: 0.7; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 16px; text-decoration: none;
  color: var(--text); background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--card-border);
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--accent); color: #0b1a24; border-color: transparent; }
.btn.primary:hover { background: #7dd3ff; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn[aria-disabled="true"]:hover { border-color: var(--card-border); }
.btn .soon { font-size: 12px; font-weight: 400; color: var(--muted); }
.btn.primary .soon { color: rgba(11, 26, 36, 0.7); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 24px; }
h1 { font-size: clamp(36px, 6vw, 61px); line-height: 1.1; font-weight: 700; margin: 0 0 16px; }
h1 span, h2 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; font-weight: 200; }
.hero .buttons { justify-content: center; }
.shot {
  margin: 56px auto 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 700; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 40px; max-width: 640px; font-weight: 200; }

.step {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center;
  padding: 40px 0;
}
.step .num { font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; margin: 8px 0 12px; }
.step p { color: var(--muted); font-weight: 200; margin: 0; }
.clip {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--card-border);
  background: #1b1f27;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.clip video { width: 100%; height: auto; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.card .tag { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--accent); font-weight: 500; }
.card code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.92em; color: #e8f6ff; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.card dt { color: var(--muted); font-weight: 400; }
.card dd { margin: 0; font-weight: 300; }

.safe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.safe .card { padding: 22px; }
.safe svg {
  display: block; width: 28px; height: 28px; margin-bottom: 14px;
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.safe h4 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.safe p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 200; }

.cta { text-align: center; }
.cta .buttons { justify-content: center; }

/* Long-form page (privacy) */
.doc { max-width: 760px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: #d6d6d6; font-weight: 300; }
.doc .date { color: var(--muted); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .note { width: 100%; font-size: 13px; opacity: 0.8; margin: 0; }

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .cards { grid-template-columns: 1fr; }
  .safe { grid-template-columns: repeat(2, 1fr); }
  .top nav { gap: 16px; }
}
@media (max-width: 560px) {
  .top nav a:not(.gh) { display: none; }
  .top nav a.gh { margin-left: 0; padding: 8px; }
  .top nav a.gh span, .top nav a.gh .ext { display: none; }
  .safe { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 48px 0; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
