:root {
  --bg: #1e2838;
  --bg-deep: #141923;
  --accent: #f48423;
  --accent2: #3893db;
  --text: #f4f7f9;
  --muted: #93a3b2;
  --panel: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --max: 920px;
  --pad: clamp(20px, 4vw, 32px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent2); }

main {
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: var(--pad) calc(var(--pad) + 36px) 64px var(--pad);
}

/* margin_dots nav */
.margin-dots {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 20;
}

.margin-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  position: relative;
}

.margin-dots .dot:hover,
.margin-dots .dot.is-active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.15);
}

.margin-dots .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.margin-dots .dot:hover::after { opacity: 1; }

/* hero centered_stack */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}

.hero-stack { max-width: 640px; margin: 0 auto 28px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-art {
  margin: 0 auto;
  max-width: 760px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* section intros alternating_lr */
section { padding: 56px 0 16px; }

.section-intro { max-width: 520px; margin-bottom: 24px; }

.section-intro.align-left { margin-right: auto; text-align: left; }
.section-intro.align-right { margin-left: auto; text-align: right; }

.section-intro h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

/* bento_uneven */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bento-tile {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.bento-tile.tile-wide { grid-column: 1 / -1; }

.bento-tile h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}

.bento-tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* device_pair screens */
.device-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.device {
  flex: 1 1 240px;
  max-width: 320px;
  margin: 0;
  text-align: center;
}

.device img {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.device figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* tab_switch legal */
.legal {
  max-width: var(--max);
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab.is-active {
  background: rgba(244, 132, 35, 0.15);
  border-color: var(--accent);
  color: var(--text);
}

.tab-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.tab-panel[hidden] { display: none; }

.tab-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.tab-panel p { margin: 0 0 14px; color: var(--muted); }
.tab-panel p:last-child { margin-bottom: 0; }

.site-footer {
  text-align: center;
  padding: 32px var(--pad) 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .margin-dots { right: 8px; gap: 10px; }
  .margin-dots .dot::after { display: none; }
  main { padding-right: var(--pad); }
  .bento { grid-template-columns: 1fr; }
  .bento-tile.tile-wide { grid-column: auto; }
  .section-intro.align-right { text-align: left; margin-left: 0; }
}
