:root {
  --bg: #050807;
  --panel: #101a14;
  --pulse: #3dff6a;
  --scan: #3ce7ff;
  --mist: #e7ffef;
  --muted: #6b9a7a;
  --cork: #3d3226;
  --pin: #c94b4b;
  --font-display: "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", "Menlo", monospace;
  --edge: clamp(1.25rem, 4vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--mist);
  line-height: 1.55;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(61, 255, 106, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(60, 231, 255, 0.06), transparent 50%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  padding-right: calc(var(--edge) + 2.75rem);
}

.wrap {
  width: min(var(--max), 100% - var(--edge) * 2);
  margin-inline: auto;
}

/* margin_dots nav */
.dot-nav {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 40;
}

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

.dot-nav a:hover,
.dot-nav a.is-active {
  border-color: var(--pulse);
  background: var(--pulse);
  transform: scale(1.15);
}

.dot-nav a:focus-visible {
  outline: 2px solid var(--scan);
  outline-offset: 4px;
}

/* hero window_frame */
.hero {
  padding: calc(var(--edge) + 1rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-copy .kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--scan);
  margin: 0 0 0.75rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.35rem;
  color: var(--mist);
}

.hero-copy h1 span {
  display: block;
  color: var(--pulse);
  font-weight: 600;
  font-size: 0.92em;
}

.hero-copy .tagline {
  font-size: 1.125rem;
  color: rgba(231, 255, 239, 0.88);
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.hero-window {
  background: linear-gradient(145deg, #0c1410, #060a08);
  border: 1px solid rgba(61, 255, 106, 0.25);
  border-radius: 1.25rem;
  padding: 0.65rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.window-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.65rem;
}

.window-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2a3d32;
}

.window-chrome span:nth-child(1) {
  background: #ff5f57;
}
.window-chrome span:nth-child(2) {
  background: #febc2e;
}
.window-chrome span:nth-child(3) {
  background: #28c840;
}

.hero-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(60, 231, 255, 0.15);
}

.hero-art {
  margin-top: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(61, 255, 106, 0.12);
}

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

/* section intros alternating_lr */
.section {
  padding: 4rem 0;
}

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

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

.section-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--pulse);
}

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

/* cork_notes features */
.cork-board {
  background: var(--cork)
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.04) 18px,
      rgba(0, 0, 0, 0.04) 19px
    );
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 2.5rem;
  display: grid;
  gap: 1.25rem;
  border: 3px solid #2a221a;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

.note {
  background: #f4eed8;
  color: #1a1f1c;
  padding: 1.25rem 1.1rem 1.5rem;
  border-radius: 2px;
  position: relative;
  transform: rotate(var(--rot, -1deg));
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}

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

.note::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.note p {
  margin: 0;
  line-height: 1.45;
}

/* device_pair screens */
#screens .device-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: flex-end;
}

.phone-shell {
  width: min(280px, 42vw);
  background: #0a0f0c;
  border-radius: 2rem;
  padding: 0.65rem;
  border: 2px solid rgba(61, 255, 106, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.phone-shell.offset {
  transform: translateY(1.5rem);
}

.phone-shell img {
  width: 100%;
  display: block;
  border-radius: 1.5rem;
}

.screen-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--scan);
  margin-top: 0.75rem;
}

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

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(60, 231, 255, 0.15);
}

/* footer_sheet legal */
.legal-sheet {
  background: var(--panel);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 2.5rem var(--edge) 3rem;
  margin-top: 2rem;
  border-top: 3px solid var(--pulse);
}

.legal-sheet h2 {
  font-size: 1.35rem;
  color: var(--scan);
  margin: 2rem 0 0.75rem;
}

.legal-sheet h2:first-child {
  margin-top: 0;
}

.legal-sheet p,
.legal-sheet li {
  color: rgba(231, 255, 239, 0.9);
  max-width: 65ch;
}

.legal-sheet a {
  color: var(--pulse);
}

.legal-sheet ul {
  padding-left: 1.25rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .dot-nav {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
  }

  .page {
    padding-right: var(--edge);
    padding-bottom: 3.5rem;
  }

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