:root {
  --bg: #08060f;
  --panel: #12101c;
  --panel-raised: #1a1728;
  --line: #2a2540;
  --text: #f5f0ff;
  --muted: #a89ec4;
  --faint: #6b6088;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --teal: #2dd4bf;
  --coral: #ff6b6b;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --panel-width: 220px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--amber);
}

.page-shell {
  display: grid;
  grid-template-columns: var(--panel-width) minmax(0, 1fr);
  min-height: 100vh;
}

.split-panel {
  align-self: stretch;
  min-height: 100vh;
  padding: 28px 20px 32px;
  background: linear-gradient(180deg, #0e0b18 0%, var(--panel) 100%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.split-panel__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split-panel__icon {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.split-panel__name {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.split-panel__role {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.split-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.split-panel__nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.split-panel__nav a:hover,
.split-panel__nav a:focus-visible {
  color: var(--text);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.split-panel__note {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.main-stage {
  padding: 0 0 120px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  min-height: 72vh;
  padding: 56px 48px 64px;
  overflow: hidden;
}

.hero__band {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.18) 0%,
    rgba(245, 158, 11, 0.04) 38%,
    transparent 52%
  );
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  pointer-events: none;
}

.hero__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 40%,
    rgba(139, 92, 246, 0.14) 58%,
    rgba(45, 212, 191, 0.08) 100%
  );
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 78%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--violet);
}

.hero__tagline {
  margin: 0;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(245, 158, 11, 0.08);
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section-intro {
  padding: 0 48px;
  margin-bottom: 28px;
}

.section-label {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

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

.intro-center {
  text-align: center;
}

.intro-center .section-lead {
  margin-inline: auto;
}

.intro-right {
  text-align: right;
  margin-left: auto;
  max-width: 640px;
}

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

.features {
  padding: 72px 0 48px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 0 48px;
}

.bento__tile {
  grid-column: span 4;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.bento__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.bento__tile--wide {
  grid-column: span 8;
}

.bento__tile--alert {
  grid-column: span 4;
  border-color: rgba(255, 107, 107, 0.35);
}

.bento__tile--tall {
  grid-column: span 4;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.bento__tile h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

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

.bento__thumb {
  margin-top: auto;
  padding-top: 18px;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.screens {
  padding: 72px 0 48px;
}

.polaroid-field {
  position: relative;
  min-height: 520px;
  margin: 0 48px;
  padding: 24px 0 48px;
}

.polaroid {
  position: absolute;
  width: min(240px, 42vw);
  margin: 0;
  padding: 12px 12px 28px;
  background: #f8f4ea;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.08) inset;
  transform-origin: center;
}

.polaroid img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: var(--panel-raised);
}

.polaroid figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a4258;
}

.polaroid--a {
  top: 12px;
  left: 4%;
  transform: rotate(-7deg);
  z-index: 2;
}

.polaroid--b {
  top: 48px;
  left: 34%;
  transform: rotate(4deg);
  z-index: 4;
}

.polaroid--c {
  top: 0;
  right: 8%;
  transform: rotate(8deg);
  z-index: 3;
}

.polaroid--d {
  bottom: 24px;
  left: 18%;
  transform: rotate(-3deg);
  z-index: 1;
}

.polaroid--e {
  bottom: 8px;
  right: 14%;
  transform: rotate(-10deg);
  z-index: 2;
}

.about {
  padding: 72px 0 56px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 0 48px;
  align-items: center;
}

.about__grid img {
  border-radius: 20px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-sheet {
  margin: 0 48px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-raised) 0%, var(--panel) 100%);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.legal-sheet__panel {
  padding: 36px 32px 40px;
}

.legal-sheet__panel h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

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

.legal-sheet__panel--support {
  border-left: 1px solid var(--line);
  background: rgba(8, 6, 15, 0.35);
}

.support-email a {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

.legal-sheet__copy {
  margin-top: 24px !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  color: var(--faint) !important;
}

.mobile-rail {
  display: none;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .split-panel {
    position: relative;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .split-panel__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .split-panel__nav a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .split-panel__note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 32px;
    min-height: auto;
  }

  .section-intro,
  .bento,
  .about__grid,
  .legal-sheet {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-intro {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left !important;
  }

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

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__tile,
  .bento__tile--wide,
  .bento__tile--alert,
  .bento__tile--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .polaroid-field {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 24px;
    padding: 0;
  }

  .polaroid {
    position: static;
    width: 100%;
    transform: none !important;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .legal-sheet {
    grid-template-columns: 1fr;
    margin: 0 24px 96px;
  }

  .legal-sheet__panel--support {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .mobile-rail {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    padding: 10px;
    gap: 8px;
    border-radius: 999px;
    background: rgba(18, 16, 28, 0.92);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    justify-content: space-around;
  }

  .mobile-rail a {
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    border-radius: 999px;
  }

  .mobile-rail a:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
