:root {
  --bg: #f3f0ff;
  --canvas: #ddd4ff;
  --raised: #dccfff;
  --accent: #326bff;
  --accent2: #8955f7;
  --lilac: #b7a4ff;
  --text: #20254b;
  --muted: #7a80a5;
  --paper: #ffffff;
  --stroke: #e4dff8;
  --radius: 22px;
  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(166, 106, 255, 0.28), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(50, 107, 255, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--canvas) 55%, #ebe4ff);
  min-height: 100vh;
  line-height: 1.55;
}

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

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

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

.margin-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent2);
  box-shadow: 0 4px 14px rgba(32, 37, 75, 0.12);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.margin-dots .dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  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.15s ease;
}

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

@media (max-width: 720px) {
  .margin-dots {
    right: 10px;
    gap: 10px;
  }
  .margin-dots .dot::after {
    display: none;
  }
}

main {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 32px;
}

/* —— centered_stack hero —— */
.hero--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 12px 28px;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
}

.hero-art {
  margin: 20px 0 0;
  width: min(920px, 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(89, 85, 247, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

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

.band {
  padding: 56px 0 12px;
}

.intro--left {
  text-align: left;
  max-width: 36rem;
  margin-bottom: 28px;
}

.intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

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

/* —— bento_uneven —— */
.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(220, 207, 255, 0.75));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: 0 10px 30px rgba(32, 37, 75, 0.06);
}

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

.tile:nth-child(2) {
  background: linear-gradient(145deg, #326bff, #8955f7);
  color: var(--paper);
  border: none;
}

.tile:nth-child(2) p {
  color: rgba(255, 255, 255, 0.88);
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

@media (max-width: 720px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .tile--wide {
    grid-column: auto;
  }
}

.gallery-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--stroke);
}

@media (max-width: 640px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
}

/* —— device_pair —— */
.device-pair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(18px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 12px 0 8px;
}

.device {
  margin: 0;
  width: min(280px, 42vw);
  text-align: center;
}

.device img {
  width: 100%;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 28px 50px rgba(32, 37, 75, 0.2),
    0 0 0 1px rgba(137, 85, 247, 0.15);
  background: var(--raised);
}

.device:nth-child(2) {
  transform: translateY(18px);
}

.device figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.about {
  padding-bottom: 40px;
}

/* —— footer_sheet legal —— */
.legal-sheet {
  margin: 0;
  padding: 0 16px 40px;
}

.sheet-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-radius: 28px 28px 18px 18px;
  padding: 36px clamp(20px, 4vw, 44px) 28px;
  box-shadow:
    0 -8px 40px rgba(89, 85, 247, 0.12),
    0 18px 40px rgba(32, 37, 75, 0.08);
  border: 1px solid var(--stroke);
  display: grid;
  gap: 28px;
}

.sheet-inner h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.sheet-inner p {
  margin: 0 0 12px;
  color: var(--muted);
}

.sheet-inner .effective {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.sheet-foot {
  margin: 8px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--muted);
}
