@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
  --bg: #0b0b0d;
  --bg-soft: #131316;
  --bg-card: #161618;
  --border: #242427;
  --border-strong: #38383d;
  --text: #e6e6e8;
  --text-strong: #ffffff;
  --text-mute: #9a9aa0;
  --text-faint: #66666c;
  --accent: #b51f1c;
  --accent-2: #d6453a;
  --accent-soft: rgba(181, 31, 28, 0.15);
  --accent-grad: linear-gradient(135deg, #cf3b30 0%, #851010 100%);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(226, 59, 59, 0.4), 0 4px 16px rgba(181, 22, 22, 0.4);
  transform: rotate(45deg);
}
.brand-name { font-size: 18px; }
.brand-accent { color: var(--accent); margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 24px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  background: rgba(11, 11, 13, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--text-mute); }
.site-nav a:hover { color: var(--text); }
.nav-app {
  padding: 8px 16px; border-radius: 8px; color: #fff !important;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(226, 59, 59, 0.35);
}
.nav-app:hover { filter: brightness(1.08); }

/* ---------- Hero ---------- */
.hero {
  max-width: 860px; margin: 0 auto; padding: 96px 24px 72px; text-align: center;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px;
  color: var(--accent-2); margin: 0 0 18px; font-weight: 600;
}
/* Inter SemiBold, tight tracking — Obsidian's clean, restrained headline treatment. */
.hero-title {
  font-size: clamp(40px, 6.8vw, 62px); line-height: 1.05; margin: 0 0 22px;
  font-weight: 600; letter-spacing: -0.022em;
}
.brand-logo { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.hero-title .accent {
  background: linear-gradient(120deg, #d6453a, #a11919);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--text-mute); max-width: 640px; margin: 0 auto 34px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 20px; font-size: 13px; color: var(--text-faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .06s ease, filter .15s ease;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 0 0 1px rgba(226,59,59,.35), 0 6px 20px rgba(181,22,22,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
.section-title {
  text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.features { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.feature-grid {
  margin-top: 40px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent); margin-right: 9px; transform: rotate(45deg); vertical-align: middle;
}
.feature p { margin: 0; color: var(--text-mute); font-size: 14.5px; }
.feature code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 0.85em; }

/* ---------- Download ---------- */
.download { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; text-align: center; }
.download-sub { color: var(--text-mute); margin: 0 auto 34px; max-width: 560px; }
.download-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.dl-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.dl-card h3 { margin: 0; font-size: 19px; }
.dl-card p { margin: 0; color: var(--text-mute); font-size: 14.5px; flex: 1; }
.dl-card .btn { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); text-align: center; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-tag { color: var(--text-mute); margin: 4px 0 0; }
.footer-meta { color: var(--text-faint); font-size: 13px; margin: 0; }

@media (max-width: 560px) {
  .site-nav a:not(.nav-app) { display: none; }
  .hero { padding-top: 64px; }
}

/* ===== v2: icons, OS download cards, responsive ===== */
svg.ic, .feature-ic svg, .os-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* Download — OS cards */
.os-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 38px; }
.os-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: border-color .15s ease, transform .15s ease; }
.os-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.os-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.os-card .os-icon { width: 48px; height: 48px; color: var(--text-strong); display: flex; align-items: center; justify-content: center; }
.os-card .os-icon svg { width: 40px; height: 40px; }
.os-card h3 { margin: 4px 0 0; font-size: 18px; }
.os-card p { margin: 0; color: var(--text-mute); font-size: 13.5px; flex: 1; }
.os-card .btn { margin-top: 10px; width: 100%; }
.os-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.download-foot { margin-top: 28px; text-align: center; color: var(--text-mute); font-size: 14px; line-height: 1.7; }
.download-foot a { color: var(--accent-2); }
.download-foot .muted { color: var(--text-faint); font-size: 12.5px; }

/* Feature icons (replace the diamond bullet) */
.feature { display: flex; flex-direction: column; }
.feature-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-ic svg { width: 22px; height: 22px; }
.feature h3::before { content: none; }

/* Full responsive */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 14px; font-size: 13px; }
  .hero { padding: 56px 18px 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .features, .download { padding: 48px 18px; }
}
@media (max-width: 460px) {
  .site-nav a:not(.nav-app) { display: none; }
}

/* ===== App showcase mockup ===== */
.showcase { max-width: 960px; margin: 0 auto; padding: 6px 24px 48px; }
.app-win { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0e0e10; border-bottom: 1px solid var(--border); }
.win-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.win-bar .dot:first-child { background: #e2483b; }
.win-title { margin-left: 12px; font-size: 12px; color: var(--text-faint); }
.win-body { display: grid; grid-template-columns: 210px 1fr; min-height: 330px; }
.win-side { background: #050506; border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-mute); padding: 6px 9px; border-radius: 6px; }
.side-row i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: 0 0 auto; }
.side-row.child { margin-left: 14px; font-size: 12.5px; }
.side-row.active { background: #2a2a2e; color: var(--text-strong); }
.win-main { padding: 26px 32px; }
.m-title { font-size: 26px; font-weight: 800; color: var(--text-strong); margin-bottom: 14px; }
.m-h2 { height: 13px; width: 150px; border-radius: 4px; background: var(--text-mute); opacity: .5; margin: 22px 0 14px; }
.m-h2.short { width: 110px; }
.m-line { height: 9px; border-radius: 4px; background: var(--text-faint); opacity: .5; margin: 9px 0; }
.m-line.light { opacity: .35; }
.w-40 { width: 40%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; }
.w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }
.m-callout { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; padding: 12px 14px; margin: 18px 0; }
.m-tags { display: flex; gap: 8px; margin-top: 24px; }
.m-tags span { width: 56px; height: 20px; border-radius: 6px; background: var(--accent-soft); }
@media (max-width: 560px) { .win-side { display: none; } .win-body { grid-template-columns: 1fr; } }

/* ===== Konami RGB easter egg (↑ ↑ ↓ ↓ ← → ← → B A) — mirrors the desktop app ===== */
html[data-rgb] body { animation: mortis-rgb 6s linear infinite; }
@keyframes mortis-rgb {
  from { filter: hue-rotate(0deg) saturate(1.45); }
  to   { filter: hue-rotate(360deg) saturate(1.45); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-rgb] body { animation: none; filter: saturate(1.45) hue-rotate(40deg); }
  .cookie-banner { transition: none; }
  .feature:hover, .os-card:hover { transform: none; }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(13, 13, 16, 0.94);
  border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(115%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner:focus { outline: none; }
.cookie-banner:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 24px; flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: 13.5px; color: var(--text-mute); max-width: 720px; }
.cookie-text strong { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions .btn { padding: 9px 18px; font-size: 14px; }
.footer-link { color: var(--text-faint); }
.footer-link:hover { color: var(--accent-2); }
.footer-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 560px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}

/* ===== Contact + newsletter ===== */
.contact { max-width: 860px; margin: 0 auto; padding: 8px 24px 72px; text-align: center; }
.contact-sub { color: var(--text-mute); margin: 0 auto 34px; max-width: 560px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr; text-align: left; }
.cform { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cform-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cform-row > input { flex: 1 1 160px; }
.cform input, .cform textarea {
  width: 100%; background: var(--bg-soft); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s ease;
}
.cform input:focus, .cform textarea:focus { border-color: var(--accent); }
.cform textarea { resize: vertical; min-height: 96px; }
.cform-submit { align-self: flex-start; }
.cform-news .cform-submit { flex: 0 0 auto; }
.news-title { margin: 0; font-size: 17px; }
.news-note { margin: 0; color: var(--text-mute); font-size: 13.5px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { margin: 2px 0 0; font-size: 13px; min-height: 1.2em; }
.form-status.ok { color: #4eb87a; }
.form-status.err { color: var(--accent-2); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
