:root {
  --bg: #0A0E1A;
  --panel: #141B2D;
  --panel-raised: #1C2540;
  --line: #2A3555;
  --text: #F8F6FF;
  --muted: #B8B4D0;
  --faint: #7A7594;
  --pink: #FF3D9A;
  --cyan: #00E5FF;
  --violet: #A855F7;
  --spine-w: 72px;
  --content-max: 1080px;
  --radius: 18px;
  --font: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* Page shell — single spine offset via main padding only */
.page {
  min-height: 100vh;
  width: 100%;
}

/* Spine nav (fixed left rail) */
.spine {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--spine-w);
  height: 100vh;
  height: 100dvh;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 100;
  overflow: hidden;
}

.spine-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.spine-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.spine-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 10px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.spine-link:hover,
.spine-link:focus-visible {
  background: var(--panel-raised);
  color: var(--text);
  text-decoration: none;
}

.spine-link span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1;
  max-height: 36px;
  overflow: hidden;
}

.spine-foot {
  font-size: 9px;
  color: var(--faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-top: 8px;
}

/* Main column */
.main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: var(--spine-w);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.section-intro {
  margin-bottom: 32px;
}

.section-intro h2 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-intro p {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 560px;
  margin: 0;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--panel);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.35) 0%,
    rgba(10, 14, 26, 0.55) 45%,
    rgba(10, 14, 26, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px) clamp(48px, 8vw, 64px);
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 100%;
}

.hero-title .accent {
  color: var(--pink);
}

.hero-tagline {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: min(520px, 100%);
  margin: 16px 0 0;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(255, 61, 154, 0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 61, 154, 0.35);
  text-decoration: none;
}

/* Features zigzag */
.features {
  padding: clamp(48px, 8vw, 80px) 0;
  width: 100%;
}

.zigzag {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

.zigzag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.zigzag-row.reverse .zigzag-visual { order: 2; }
.zigzag-row.reverse .zigzag-text { order: 1; }

.zigzag-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}

.zigzag-visual.is-photo {
  aspect-ratio: 4 / 3;
}

.zigzag-visual.is-screen {
  aspect-ratio: 9 / 19;
  max-width: 280px;
  margin: 0 auto;
  background: var(--panel-raised);
}

.zigzag-row.reverse .zigzag-visual.is-screen {
  margin-left: auto;
  margin-right: 0;
}

.zigzag-row:not(.reverse) .zigzag-visual.is-screen {
  margin-left: 0;
  margin-right: auto;
}

.zigzag-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zigzag-visual.is-screen img {
  object-fit: contain;
  object-position: top center;
}

.zigzag-text {
  min-width: 0;
}

.zigzag-text h3 {
  font-family: var(--font);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.zigzag-text p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.65;
}

.zigzag-num {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Screens mosaic */
.screens {
  padding: clamp(48px, 8vw, 80px) 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(20, 27, 45, 0.5));
}

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
}

.mosaic-cell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-raised);
  min-width: 0;
}

.mosaic-large {
  grid-row: span 2;
}

.mosaic-cell img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  margin: 0 auto;
}

.mosaic-small img {
  max-height: 260px;
}

.mosaic-caption {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 12px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Legal */
.legal {
  padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 100px);
  width: 100%;
}

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

.legal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 32px);
  min-width: 0;
}

.legal-panel h3 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.legal-panel p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-panel p:last-child { margin-bottom: 0; }

.legal-panel a.mail {
  color: var(--pink);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 4vw, 32px);
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Anchor scroll offset */
#hero,
#features,
#screens,
#privacy,
#support {
  scroll-margin-top: 16px;
  scroll-margin-bottom: 80px;
}

/* Mobile bottom dock */
.bottom-dock {
  display: none;
}

@media (max-width: 900px) {
  .spine {
    display: none;
  }

  .main {
    padding-left: 0;
    padding-bottom: 72px;
  }

  .bottom-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 6px 8px;
    gap: 2px;
    z-index: 100;
    justify-content: space-around;
    max-width: 100vw;
  }

  .dock-link {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 10px 2px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font);
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 8px;
    line-height: 1.2;
  }

  .dock-link:hover {
    background: var(--panel-raised);
    color: var(--text);
    text-decoration: none;
  }

  .zigzag-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .zigzag-row.reverse .zigzag-visual,
  .zigzag-row.reverse .zigzag-text {
    order: unset;
  }

  .zigzag-visual.is-screen {
    max-width: 240px;
    margin: 0 auto;
  }

  .mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic-large {
    grid-row: auto;
  }

  .mosaic-cell img {
    max-height: 420px;
  }

  .mosaic-small img {
    max-height: 320px;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 72vh;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic-large {
    grid-row: auto;
  }
}
