:root {
  --bg: #17191f;
  --card: #22232d;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --radius: 14px;
  --max: 1080px;
  --dot-size: 12px;
  font-family: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem clamp(1.25rem, 6vw, 3.5rem);
}

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

.margin-dots .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  border: 2px solid var(--muted);
  background: transparent;
  text-decoration: none;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

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

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

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 3.5rem;
  min-height: min(92vh, 820px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-backdrop {
  position: absolute;
  inset: -10% -20% auto -10%;
  height: 70%;
  z-index: -2;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 20%, transparent);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.window-shell {
  margin: 0;
  background: #0d1016;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.12);
  overflow: hidden;
  max-width: 320px;
  justify-self: center;
}

.window-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1e2530, #12161d);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3b4250;
}

.window-chrome span:nth-child(1) {
  background: #f87171;
}

.window-chrome span:nth-child(2) {
  background: #fbbf24;
}

.window-chrome span:nth-child(3) {
  background: #4ade80;
}

.window-shell img {
  width: 100%;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

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

.section-lede {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.cork-board {
  padding: 4rem 0;
}

.cork-surface {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 94, 60, 0.35), transparent 45%),
    linear-gradient(145deg, #3d2f24, #2a221c);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  min-height: 420px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.note {
  position: relative;
  width: min(100%, 280px);
  padding: 1.1rem 1.25rem 1.25rem;
  background: #fff9c4;
  color: #2c2418;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.25);
  transform: rotate(-2deg);
}

.note h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.note-a {
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.note-b {
  margin-left: auto;
  margin-right: 8%;
  margin-bottom: 1.5rem;
  transform: rotate(2.5deg);
  background: #e0f2fe;
}

.note-c {
  margin-left: 12%;
  transform: rotate(-1deg);
  background: #f0fdf4;
}

.cork-accent {
  position: absolute;
  border-radius: 8px;
  opacity: 0.55;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.cork-accent.gallery-a {
  width: 110px;
  right: 12%;
  top: 8%;
  transform: rotate(8deg);
}

.cork-accent.gallery-b {
  width: 96px;
  left: 6%;
  bottom: 10%;
  transform: rotate(-6deg);
}

.device-pair {
  padding: 3rem 0 4rem;
  position: relative;
}

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

.phone-frame {
  margin: 0;
  text-align: center;
}

.phone-frame img {
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  width: min(240px, 42vw);
}

.phone-frame.secondary img {
  transform: translateY(24px) scale(0.92);
  opacity: 0.92;
}

.phone-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.screens-ambient {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: min(220px, 40vw);
  border-radius: var(--radius);
  opacity: 0.35;
  z-index: -1;
}

.legal {
  padding: 3rem 0 2rem;
}

.tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-bar button {
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  color: var(--muted);
}

.tab-bar button[aria-selected="true"] {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
}

.legal-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.legal-panel h3 {
  margin-top: 0;
}

.legal-panel p {
  color: var(--muted);
}

.site-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .margin-dots {
    right: 0.5rem;
    gap: 0.85rem;
  }

  .margin-dots .dot::after {
    display: none;
  }
}