/* TGK site: the app's palette (src/TGK.Client/Theme.cs) and the presentation video's type (marketing/video/stage). */
:root {
  --bg: #0b0c10;
  --bg-alt: #0f1015;
  --surface: #17191f;
  --surface-raised: #1e2028;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #e8ebf1;
  --text-2: #acb2c0;
  --muted: #787f8e;
  --accent: #528bff;
  --accent-hover: #6a9cff;
  --accent-soft: rgba(82, 139, 255, .14);
  --green: #3fb950;
  --red: #eb574f;
  --grad: linear-gradient(92deg, #6ea8ff 0%, #8f8bff 45%, #c78bff 100%);
  --radius: 14px;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* also for elements given display: flex below */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
  border-radius: 6px; padding: .08em .38em; color: #d6dcea; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; justify-content: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 16, .78); backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; padding: 11px 18px;
  font: 600 15px/1.2 var(--sans); color: var(--text); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(82, 139, 255, .25); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 7px 13px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, #121828 0%, var(--bg) 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(140, 160, 210, .14) 1.1px, transparent 1.2px); background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); }
.hero-in { position: relative; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #8fb4ff; }
h1 { margin: 0; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; font-weight: 760; letter-spacing: -.03em; }
.lead { max-width: 720px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.meta { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.meta .sep { margin: 0 8px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4); }
.shot-hero { margin: 56px auto 0; max-width: 1080px; box-shadow: 0 40px 120px rgba(40, 70, 150, .25), 0 30px 80px rgba(0, 0, 0, .6); }

/* ---------- sections ---------- */
.band { padding: 96px 0; }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin: 0 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 740; letter-spacing: -.022em; text-align: center; }
.section-title.left { text-align: left; }
.sub { margin: 0 0 40px; color: var(--text-2); font-size: 17px; }
.sub.small { margin: 36px 0 0; font-size: 15px; color: var(--muted); }
.body { color: var(--text-2); font-size: 17px; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s, transform .15s; }
.feat:hover { border-color: rgba(82, 139, 255, .45); transform: translateY(-2px); }
.feat h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--text-2); font-size: 15px; }
.feat-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font: 700 18px var(--mono);
  color: #cfe0ff; background: var(--accent-soft); border: 1px solid rgba(82, 139, 255, .35); }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: 1.15fr 1fr; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 13px; color: #d7dce7; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(63, 185, 80, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2356d364' d='M6.2 11.3 3 8.1l1-1 2.2 2.2L12 3.5l1 1z'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(63, 185, 80, .45); }

/* ---------- downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); }
.dl.mine { border-color: rgba(82, 139, 255, .6); box-shadow: 0 0 0 1px rgba(82, 139, 255, .25), 0 20px 50px rgba(30, 60, 140, .2); }
.dl.mine .dl-head::after { content: "Your system"; margin-left: auto; font-size: 12px; font-weight: 600; color: #cfe0ff;
  background: var(--accent-soft); border: 1px solid rgba(82, 139, 255, .4); border-radius: 999px; padding: 2px 10px; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head h3 { margin: 0; font-size: 20px; }
.os { width: 28px; height: 28px; fill: var(--text); }
.dl-note { margin: 0 0 6px; color: var(--text-2); font-size: 14.5px; flex: 1; }
.dl .btn { width: 100%; }
.dl .alt { text-align: center; font-size: 14px; font-weight: 500; color: var(--text-2); }

/* ---------- sync server status ---------- */
.server-status { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 8px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); }
.server-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(63, 185, 80, .15); }
.server-status.down .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(235, 87, 79, .15); }

/* ---------- changelog ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; }
.tab { font: 600 14.5px var(--sans); color: var(--text-2); background: transparent; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.tab[aria-selected="true"] { color: #fff; background: var(--accent-soft); border-color: rgba(82, 139, 255, .6); }
.log { display: flex; flex-direction: column; gap: 16px; }
.log-status { text-align: center; color: var(--muted); }
.release { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.release-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; }
.release-head h3 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.release-head time, .release-head .tag { font-size: 13.5px; color: var(--muted); }
.release-head .tag { font-weight: 600; color: #cfe0ff; background: var(--accent-soft); border-radius: 999px; padding: 1px 10px; }
.release h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8fb4ff; }
.release p { margin: 8px 0; color: var(--text-2); font-size: 15px; }
.release ul { margin: 6px 0; padding-left: 20px; }
.release li { margin: 7px 0; color: var(--text-2); font-size: 15px; }
.release li strong { color: var(--text); }
.log-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }

.closing { background: radial-gradient(70% 90% at 50% 100%, #121828 0%, var(--bg) 70%); }
.closing .sub { margin-bottom: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .features, .downloads { grid-template-columns: 1fr 1fr; }
  .split, .split-rev { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .shot { order: 2; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .features, .downloads { grid-template-columns: 1fr; }
  .band { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .release { padding: 20px; }
}
