/* ==========================================================================
   SwayByte — design system
   Palette derived from the SwayByte mark: cobalt -> violet -> magenta,
   with an ice-cyan signal accent on a graphite base.
   Visual language: sharp edges, hairline rules, mono eyebrows, editorial grid.
   ========================================================================== */

:root {
  /* base */
  --ink:        #05060b;
  --ink-2:      #0a0c14;
  --panel:      #10131e;
  --panel-2:    #161a28;
  --line:       #232839;
  --line-soft:  #1a1e2c;

  /* type */
  --fg:         #eef1f8;
  --fg-2:       #a9b1c6;
  --fg-3:       #6f7893;

  /* brand */
  --cobalt:     #0048d8;
  --violet:     #7830f0;
  --magenta:    #d830f0;
  --cyan:       #30c0f0;

  --grad:       linear-gradient(100deg, var(--cobalt) 0%, var(--violet) 46%, var(--magenta) 100%);
  --grad-soft:  linear-gradient(100deg, rgba(0,72,216,.16), rgba(216,48,240,.16));

  --radius:     4px;
  --radius-lg:  8px;

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1160px;
  --gut:  24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.024em; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0.3em 0; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 40px 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.rule-top { border-top: 1px solid var(--line-soft); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--grad);
  flex: none;
}
.h-xl  { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
.h-lg  { font-size: clamp(2rem, 4.4vw, 3rem); }
.h-md  { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.lede  { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--fg-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { opacity: .92; }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--fg-3); background: rgba(255,255,255,.03); }
.btn--sm { padding: 9px 17px; font-size: 13.5px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5,6,11,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand__txt {
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 14px; color: var(--fg-2); position: relative; padding: 4px 0;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--grad);
}
.hdr__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); width: 40px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--fg); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--fg);
}
.burger span::before { top: -5.5px; } .burger span::after { top: 5.5px; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav a[aria-current="page"]::after { display: none; }
  .burger { display: flex; margin-left: auto; }
  .hdr__cta .btn--ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 104px 0 84px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
}
.hero__meta span { display: flex; align-items: center; gap: 7px; }
.hero__meta span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
}
/* beam backdrop */
.beam {
  position: absolute; pointer-events: none; z-index: -1;
  filter: blur(90px); opacity: .38;
}
.beam--a { width: 620px; height: 380px; top: -120px; left: -180px;
  background: radial-gradient(circle, var(--cobalt), transparent 66%); }
.beam--b { width: 560px; height: 420px; top: 40px; right: -200px;
  background: radial-gradient(circle, var(--magenta), transparent 66%); }

/* hero visual: signal-wave panel */
.wavecard {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  padding: 22px; position: relative; overflow: hidden;
}
.wavecard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad);
}
.wavecard__hd {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(48,192,240,.14); display: inline-block; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 116px; margin-bottom: 18px; }
.bars i {
  flex: 1; border-radius: 2px 2px 0 0; background: var(--grad);
  opacity: .82; animation: sway 2.6s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.bars i { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }
.wavecard__rows { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.wrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--ink-2); font-size: 13px;
}
.wrow b { font-weight: 600; }
.wrow em { font-family: var(--mono); font-style: normal; font-size: 11.5px; color: var(--fg-3); letter-spacing: .06em; }

@media (max-width: 940px) {
  .hero { padding: 68px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 15px 0; background: var(--ink-2);
}
.ticker__track {
  display: flex; gap: 44px; width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3); white-space: nowrap;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- bento / cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel); padding: 26px;
  position: relative; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card--wide { grid-column: span 3; }
.card--third { grid-column: span 2; }
.card--half { grid-column: span 3; }
.card--full { grid-column: span 6; }
.card h3 { font-size: 1.06rem; margin-bottom: 9px; }
.card p { color: var(--fg-2); font-size: 14.6px; margin: 0; }
.card__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--fg-3); margin-bottom: 16px; display: block;
}
.card__ico {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 16px;
  font-family: var(--mono); font-size: 15px; color: var(--fg);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide, .card--third, .card--half, .card--full { grid-column: span 2; }
}

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--panel); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -0.03em; margin-bottom: 4px; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel); padding: 30px 26px; position: relative;
}
.tier--feature { border-color: transparent; background:
  linear-gradient(var(--panel), var(--panel)) padding-box,
  var(--grad) border-box; border: 1px solid transparent; }
.tier__tag {
  position: absolute; top: -11px; left: 26px;
  background: var(--grad); color: #fff; font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.tier h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.tier__price b { font-size: 2.6rem; letter-spacing: -0.035em; font-weight: 650; }
.tier__price span { color: var(--fg-3); font-size: 14px; }
.tier__note { color: var(--fg-3); font-size: 13px; margin-bottom: 20px; }
.tier .btn { width: 100%; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0; font-size: 14.3px; color: var(--fg-2); }
.tier li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "→"; color: var(--cyan); flex: none; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-weight: 600; font-size: 15.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 18px;
  font-family: var(--mono); font-size: 19px; color: var(--fg-3); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--fg-2); font-size: 14.8px; padding-right: 40px; margin: -4px 0 20px; }

/* ---------- cta band ---------- */
.band {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(0,72,216,.14), rgba(216,48,240,.12)), var(--panel);
  padding: 52px 44px; text-align: center;
}
.band h2 { margin-bottom: 14px; }
.band .lede { margin: 0 auto 26px; }
.band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .band { padding: 38px 24px; } }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line-soft); background: var(--ink-2); padding: 60px 0 30px; }
.ftr__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px;
}
.ftr__brand img { height: 44px; margin-bottom: 16px; }
.ftr__brand p { color: var(--fg-3); font-size: 13.6px; max-width: 34ch; }
.ftr h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 16px;
}
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 0 0 10px; }
.ftr li a { font-size: 14px; color: var(--fg-2); transition: color .15s ease; }
.ftr li a:hover { color: var(--fg); }
.ftr__base {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 12.6px; color: var(--fg-3);
}
.ftr__base a { color: var(--fg-3); } .ftr__base a:hover { color: var(--fg-2); }
.ftr__legal { max-width: 78ch; margin-top: 16px; font-size: 12.2px; color: var(--fg-3); line-height: 1.7; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- legal / article pages ---------- */
.doc { padding: 64px 0 90px; }
.doc__hd { border-bottom: 1px solid var(--line-soft); padding-bottom: 30px; margin-bottom: 40px; }
.doc__hd h1 { margin-bottom: 14px; }
.doc__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); }
.doc__body { max-width: 78ch; }
.doc__body h2 {
  font-size: 1.24rem; margin: 44px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.doc__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h3 { font-size: 1.02rem; margin: 26px 0 10px; color: var(--fg); }
.doc__body p, .doc__body li { color: var(--fg-2); font-size: 15.2px; }
.doc__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.doc__body strong { color: var(--fg); font-weight: 600; }
.callout {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel); padding: 20px 22px 20px 25px; border-radius: var(--radius);
  margin: 24px 0; overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--grad);
}
.callout p:last-child { margin-bottom: 0; }
.toc {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel); padding: 22px 24px; margin-bottom: 40px;
}
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.2em; font-size: 13.8px; }
.toc a { color: var(--fg-2); } .toc a:hover { color: var(--cyan); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.addr { font-style: normal; font-family: var(--mono); font-size: 13.4px;
  color: var(--fg-2); line-height: 1.9; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--panel);
  padding: 10px 16px; border: 1px solid var(--line); z-index: 100; border-radius: var(--radius);
}
.skip:focus { left: 16px; top: 12px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 18px; }
