/* SiegaDeck website: same look as the app (nebula theme). */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("/panel/fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/panel/fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/panel/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/panel/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/panel/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/panel/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #07060d;
  --bg-2: #0d0b16;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #f2f3f8;
  --dim: rgba(232, 236, 248, 0.66);
  --faint: rgba(232, 236, 248, 0.42);
  --a1: #ff4fd8;
  --a2: #3ddcff;
  --ok: #3ee39a;
  --warn: #ffb020;
  --on-accent: #12051a;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --ui: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: color-mix(in oklab, var(--a1) 45%, transparent); }

.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.grad { background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 1em; height: 1em; flex: none; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
       background: color-mix(in oklab, var(--bg) 72%, transparent); border-bottom: 1px solid var(--stroke); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand b { background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 14.5px; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav .grow { flex: 1; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 15px;
       border: 1px solid var(--stroke); background: var(--card-hi); color: var(--text); font: 700 15px var(--ui); text-decoration: none;
       cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.09); }
.btn .i { width: 19px; height: 19px; }
.btn.primary { border: 0; color: var(--on-accent); background: linear-gradient(120deg, var(--a1), var(--a2));
               box-shadow: 0 10px 34px -10px color-mix(in oklab, var(--a1) 70%, transparent); }
.btn.primary:hover { box-shadow: 0 14px 40px -10px color-mix(in oklab, var(--a1) 85%, transparent); }
.btn.small { height: 38px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.big { height: 58px; padding: 0 30px; border-radius: 18px; font-size: 16.5px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -10% -5% 20%; z-index: -2; background: url("/panel/themes/nebula.webp") center / cover;
                opacity: 0.55; mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
               background: radial-gradient(900px 500px at 15% 0%, rgba(255, 79, 216, 0.16), transparent 70%),
                           radial-gradient(800px 500px at 90% 10%, rgba(61, 220, 255, 0.12), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 700;
         color: var(--dim); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { font: 700 clamp(34px, 5vw, 58px)/1.06 var(--display); letter-spacing: -0.035em; margin: 22px 0 20px; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--dim); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 16px; font-size: 13.5px; color: var(--faint); }
.meta span + span::before { content: "·"; margin: 0 8px; }

.devices { position: relative; padding: 0 0 50px 0; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12);
          box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
.phone { position: absolute; right: -10px; bottom: 0; width: 31%; border-radius: 30px; padding: 7px; background: #111018;
         border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95); }
.phone img { border-radius: 24px; }

/* ----------------------------------------------------------- sections */
section { padding: 84px 0; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a2); margin: 0 0 12px; }
h2 { font: 700 clamp(26px, 3.4vw, 40px)/1.12 var(--display); letter-spacing: -0.03em; margin: 0 0 16px; }
.sub { color: var(--dim); font-size: 17.5px; max-width: 40em; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
                background: linear-gradient(135deg, color-mix(in oklab, var(--c, var(--a1)) 30%, transparent), color-mix(in oklab, var(--c, var(--a1)) 8%, transparent));
                color: var(--c, var(--a1)); border: 1px solid color-mix(in oklab, var(--c, var(--a1)) 35%, transparent); }
.feature .ico .i { width: 22px; height: 22px; }
.feature h3 { font: 700 16.5px var(--ui); margin: 0 0 6px; }
.feature p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9); }
.shot.phone-shot { max-width: 330px; margin: 0 auto; border-radius: 30px; padding: 7px; background: #111018; }
.shot.phone-shot img { border-radius: 24px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; }
.list .ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--card-hi); border: 1px solid var(--stroke); color: var(--a2); }
.list .ico .i { width: 18px; height: 18px; }
.list b { display: block; }
.list span { color: var(--dim); font-size: 15px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.mode { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--stroke); }
.mode b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mode b .i { color: var(--a2); width: 18px; height: 18px; }
.mode p { margin: 0; font-size: 14.5px; color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--stroke); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
                font: 700 16px var(--display); color: var(--on-accent); background: linear-gradient(120deg, var(--a1), var(--a2)); margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--dim); }

.final { position: relative; text-align: center; padding: 64px 24px; border-radius: 30px; overflow: hidden; border: 1px solid var(--stroke);
         background: radial-gradient(600px 300px at 20% 0%, rgba(255, 79, 216, 0.22), transparent 70%),
                     radial-gradient(600px 300px at 80% 100%, rgba(61, 220, 255, 0.18), transparent 70%), var(--bg-2); }
.final img { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 20px; box-shadow: 0 20px 40px -12px rgba(255, 79, 216, 0.5); }
.final .sub { margin-bottom: 28px; }

footer { padding: 40px 0 56px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--stroke); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* -------------------------------------------------------------- guide */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 48px 0 80px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc b { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px 12px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: background 0.15s, color 0.15s; }
.toc a:hover { color: var(--text); background: var(--card); }
.toc a.on { color: var(--text); background: var(--card-hi); box-shadow: inset 3px 0 0 var(--a1); }
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; }
.doc > .lead { margin-bottom: 40px; }
.doc section { padding: 0; margin: 0 0 56px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); padding-top: 8px; }
.doc h3 { font-size: 17.5px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--dim); }
.doc p strong, .doc li strong, .doc td strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code, kbd { font: 600 0.86em var(--mono); padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); color: var(--text); white-space: nowrap; }
kbd { border: 1px solid rgba(255, 255, 255, 0.14); border-bottom-width: 2px; }
.doc pre { margin: 16px 0; padding: 18px 20px; border-radius: 16px; background: #0c0b14; border: 1px solid var(--stroke); overflow-x: auto; }
.doc pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.75; white-space: pre; color: #d9dcf0; }
.doc pre .c { color: var(--faint); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 14.5px; border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--stroke); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: var(--card); }
.table td { color: var(--dim); }
.table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.table code { white-space: normal; }
.note { display: flex; gap: 12px; padding: 16px 18px; margin: 18px 0; border-radius: 16px; background: color-mix(in oklab, var(--a2) 8%, transparent);
        border: 1px solid color-mix(in oklab, var(--a2) 25%, transparent); }
.note.warn { background: color-mix(in oklab, var(--warn) 8%, transparent); border-color: color-mix(in oklab, var(--warn) 28%, transparent); }
.note .i { width: 20px; height: 20px; color: var(--a2); margin-top: 2px; }
.note.warn .i { color: var(--warn); }
.note p { margin: 0; }
.figure { margin: 22px 0; }
.figure.small { max-width: 320px; }
.figure img { border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); }
.figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--faint); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.cards > div { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); }
.cards b { display: block; margin-bottom: 4px; }
.cards span { color: var(--dim); font-size: 14.5px; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .toc b { display: none; }
  .toc a { white-space: nowrap; background: var(--card); }
}
@media (max-width: 680px) {
  .nav-links, br.wide { display: none; }
  .features, .steps, .modes, .cards { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero { padding-top: 44px; }
  .window { transform: none; }
  .phone { width: 38%; right: 0; }
  .table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
