:root {
  --bg: #1a1a2e;
  --accent: #6b4ce6;
  --accent2: #f5c542;
  --text: #c4b5fc;
  --muted: #8b9bb8;
  --cork: #5c4033;
  --cork-light: #7a5644;
  --frame: #2d2d44;
  --sheet: #12121f;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.page-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.margin-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 40;
}

.margin-dots a {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

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

.hero-band {
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-band .intro {
  margin-bottom: 2rem;
}

.hero-band .intro.align-right {
  text-align: right;
  margin-left: auto;
  max-width: 28rem;
}

.hero-band h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.hero-band .kicker {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero-band .tagline {
  color: var(--muted);
  max-width: 32rem;
  margin: 0;
  font-size: 1.15rem;
}

.window-frame {
  position: relative;
  padding: 1rem;
  background: linear-gradient(145deg, var(--frame), #1f1f32);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(107, 76, 230, 0.35);
}

.window-frame::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 1rem;
  right: 1rem;
  height: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    #3a3a52 0 10px,
    transparent 10px 18px
  );
  opacity: 0.7;
}

.window-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 1.25rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 2rem;
}

.section-intro {
  max-width: 26rem;
  margin-bottom: 2rem;
}

.section-intro.align-left {
  text-align: left;
}

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

.section-intro h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

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

.cork-board {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, var(--cork-light), var(--cork));
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cork-board {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.cork-note {
  position: relative;
  padding: 1.25rem 1.1rem 1.1rem;
  background: #f4ecd8;
  color: #2a2230;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--rot, -2deg));
  min-height: 140px;
}

.cork-note:nth-child(2) {
  --rot: 1.5deg;
}

.cork-note:nth-child(3) {
  --rot: -1deg;
}

.cork-note::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #888, #444);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.cork-note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #3d2f50;
}

.cork-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.device-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-end;
}

.phone-shell {
  flex: 1 1 240px;
  max-width: 280px;
  padding: 0.65rem;
  background: #0e0e18;
  border-radius: 28px;
  border: 2px solid rgba(107, 76, 230, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.phone-shell.offset {
  transform: translateY(-18px);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(107, 76, 230, 0.25);
}

.footer-sheet {
  margin-top: 3rem;
  padding: 2rem 1.75rem 2.5rem;
  background: var(--sheet);
  border-radius: 24px 24px 8px 8px;
  border: 1px solid rgba(107, 76, 230, 0.2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.footer-sheet h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.legal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.legal-tabs button {
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 252, 0.35);
  background: transparent;
  color: var(--text);
}

.legal-tabs button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.legal-panel {
  display: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-panel.is-visible {
  display: block;
}

.legal-panel p {
  margin: 0 0 0.85rem;
}

.site-foot {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .margin-dots {
    right: 0.65rem;
    gap: 0.55rem;
  }

  .margin-dots a {
    width: 10px;
    height: 10px;
  }

  .hero-band {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .phone-shell.offset {
    transform: none;
  }
}
