/* SwiftDMA — Restrained Dark Monochrome + Muted Sakura Halftone Clouds */
@font-face {
  font-family: "Inter";
  src: url("nl-reference-inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --ink: #f4f4f6;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --line: rgba(255, 255, 255, .09);
  --line-hover: rgba(255, 255, 255, .20);
  --accent: #d62862;
  --accent-hover: #e53973;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --max-w: 1120px;
  --gutter: 24px;
  --nav-h: 72px;
  --anchor-offset: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
p { color: var(--muted); }
p + p { margin-top: 12px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: #ffffff; }
button, textarea { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
::selection { background: var(--accent); color: #ffffff; }
section[id], div[id], h2[id] { scroll-margin-top: var(--anchor-offset); }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #09090b;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 14px; }

.wrap {
  width: min(var(--max-w), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER (clean, spacious, neutral dark + clear Join Discord button)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand__text {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: #ffffff;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}
.topnav a:hover { color: #ffffff; background: rgba(255, 255, 255, .05); }
.topnav a[aria-current="page"] { color: #ffffff; background: rgba(255, 255, 255, .09); }

/* ==========================================================================
   BUTTONS (zero neon bloom, clean contrast)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn img { width: 18px; height: 15px; flex: none; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }

.btn--secondary {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line);
  color: var(--ink);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, .11);
  border-color: var(--line-hover);
  color: #ffffff;
}

/* ==========================================================================
   HERO (calm matte black left + muted smoky halftone clouds right)
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #09090b 0%, rgba(9, 9, 11, .94) 36%, rgba(9, 9, 11, .35) 68%, transparent 100%),
    linear-gradient(180deg, rgba(9, 9, 11, .25) 0%, transparent 20%, #09090b 100%),
    url("/assets/pictures/halftone-clouds-hero.webp") right center / cover no-repeat;
}
.hero__inner {
  padding: clamp(72px, 10vw, 128px) 0 clamp(68px, 9vw, 112px);
}
.hero__copy { max-width: 560px; }
.hero__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #ffffff;
}
.hero__lead {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.3vw, 18.5px);
  line-height: 1.58;
  color: #b4b4bd;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

/* ==========================================================================
   SECTIONS & CARDS (pure neutral charcoal, consistent scale)
   ========================================================================== */
.section { padding-block: clamp(52px, 6vw, 80px); }
.section + .section { padding-top: 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 620; }
.section-head p { margin-top: 6px; font-size: 15.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 150ms ease;
}
.card:hover { border-color: var(--line-hover); }
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__head h3 { font-size: 20px; font-weight: 620; }
.price {
  font-size: 20px;
  font-weight: 650;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card__desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.specs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.specs span { color: var(--subtle); }
.specs strong { color: var(--ink); font-weight: 520; text-align: right; }
.card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Full-width properly proportioned media containers */
.diagram-frame {
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.diagram-frame img {
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  height: auto;
}
.diagram-frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.stat-cell {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.stat-cell strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.stat-cell span { font-size: 13.5px; color: var(--muted); }

/* Banner showcase (always full native 12:5 aspect ratio, never squished) */
.banner-frame {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #08080a;
}
.banner-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

/* Native HTML5 showcase video container */
.video-frame {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #050507;
}
.video-frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

/* Quiet bottom halftone cloud CTA */
.cloud-cta {
  padding: clamp(32px, 4.5vw, 52px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(14, 14, 17, .94) 0%, rgba(14, 14, 17, .74) 52%, rgba(14, 14, 17, .24) 100%),
    url("/assets/pictures/halftone-clouds-band.webp") right center / cover no-repeat;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.cloud-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 620; }
.cloud-cta p { margin-top: 8px; max-width: 48ch; color: #c4c4cc; }
.cloud-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   SUBPAGE HEADERS, TABLES, BENCHMARK CAPTURE, TICKET BOX & FAQ
   ========================================================================== */
.subhero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, #09090b 0%, rgba(9, 9, 11, .92) 45%, rgba(9, 9, 11, .38) 100%),
    url("/assets/pictures/halftone-clouds-band.webp") right center / cover no-repeat;
}
.subhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  gap: 28px 48px;
  align-items: center;
  padding: clamp(44px, 5.5vw, 72px) 0;
}
.subhero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 650; }
.subhero__lead { margin-top: 14px; max-width: 50ch; font-size: 16.5px; color: #b4b4bd; }
.subhero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.summary-box {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 20, .88);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-box__rows { display: grid; gap: 8px; }
.summary-box__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  font-size: 14.5px;
}
.summary-box__row span { color: var(--muted); }
.summary-box__row strong { color: #ffffff; font-variant-numeric: tabular-nums; }
.summary-box__note { font-size: 13.5px; color: var(--subtle); }
.summary-box .btn { width: 100%; }

.bullet-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bullet-list li {
  position: relative;
  padding-left: 16px;
  color: #c4c4cc;
  font-size: 15px;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--subtle);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 550; }
tbody td { color: var(--muted); }

/* Benchmark page: table + capped native-proportion terminal screenshot */
.bench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.bench-shot {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.bench-shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.bench-shot img { width: 100%; height: auto; border-radius: 8px; }
.bench-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--subtle);
  text-align: center;
}

/* Ticket builder */
.ticket-box {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.ticket-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 16px;
}
.preset-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.preset-btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.preset-btn:hover { color: #ffffff; }
.preset-btn.is-active { background: rgba(255, 255, 255, .12); color: #ffffff; }
.ticket-box textarea {
  width: 100%;
  min-height: 175px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  resize: vertical;
}
.ticket-box__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.copy-status { font-size: 14px; color: var(--muted); }

/* FAQ accordion */
.faq-list {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 17px 44px 17px 20px;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: rgba(255, 255, 255, .025); }
.faq-list details > div { padding: 0 20px 17px; font-size: 15px; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-note { font-size: 13px; color: var(--subtle); margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #ffffff; }
.footer-epvp { display: inline-flex; align-items: center; line-height: 0; }
.footer-epvp img { display: block; width: 145px; height: 30px; max-width: 100%; opacity: .9; transition: opacity .18s ease; }
.footer-epvp:hover img { opacity: 1; }

/* Lightbox */
.sd-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid var(--line-hover);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .85);
}
.sd-lightbox[open] { display: flex; flex-direction: column; }
.sd-lightbox::backdrop { background: rgba(0, 0, 0, .84); }
.sd-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.sd-lightbox__body {
  overflow: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  background: var(--bg);
}
.sd-lightbox__body img { max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 6px; }

/* Responsive */
@media (max-width: 960px) {
  :root { --nav-h: auto; --anchor-offset: 136px; }
  .topbar { padding: 10px 0; }
  .topbar__inner { flex-wrap: wrap; gap: 10px; }
  .topnav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 4px; }
  .topnav a { height: 34px; padding: 0 10px; font-size: 13.5px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subhero__grid, .bench-layout { grid-template-columns: 1fr; }
  .bench-shot { max-width: 380px; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .topbar .btn { height: 38px; padding: 0 13px; font-size: 13.5px; }
}
