:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --glow-1: rgba(120, 119, 255, 0.35);
  --glow-2: rgba(255, 120, 180, 0.2);
  --glow-3: rgba(80, 200, 255, 0.15);
  --max-width: 720px;
  --page-width: 1200px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Landing page ─── */

.landing {
  position: relative;
  min-height: 100vh;
}

.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 20%, var(--glow-2), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, var(--glow-3), transparent 60%);
}

.landing > * {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: #000 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-links a.nav-cta:hover {
  color: #000 !important;
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  margin: 0 auto 24px;
  max-width: 14ch;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  margin: 0 auto 40px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 40px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(120, 119, 255, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a2a 0%, #111 40%, #0a0a0a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(120, 119, 255, 0.08);
  transform: rotateX(4deg);
  transition: transform 0.6s var(--ease);
}

.phone:hover {
  transform: rotateX(0deg) translateY(-8px);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-ui {
  flex: 1;
  padding: 52px 18px 24px;
  display: flex;
  flex-direction: column;
}

.phone-greeting {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.phone-greeting span {
  color: var(--text-muted);
}

.phone-prompt {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.phone-prompt em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.phone-board-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.phone-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-cell.done {
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

.phone-cell.today {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  animation: today-pulse 2s ease-in-out infinite;
}

@keyframes today-pulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.35); }
  50% { border-color: rgba(255, 255, 255, 0.7); }
}

.phone-feed {
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7877ff, #ff78b4);
  flex-shrink: 0;
}

.phone-feed-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.phone-feed-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 120px 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 18ch;
}

.section-desc {
  margin: 0 0 64px;
  max-width: 50ch;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 32px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bento-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36ch;
}

.bento-visual {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

/* Mini UI inside bento cards */
.mini-board {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.mini-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.mini-cell.filled {
  background: rgba(255, 255, 255, 0.85);
}

.mini-camera {
  padding: 24px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.mini-cam-main {
  flex: 1;
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  position: relative;
}

.mini-cam-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  border-radius: 12px;
}

.mini-cam-pip {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(145deg, #2d1b4e, #1a1a2e);
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mini-feed {
  padding: 16px;
}

.mini-post {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 8px;
}

.mini-post-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #50c8ff, #7877ff);
  flex-shrink: 0;
}

.mini-post-body {
  flex: 1;
}

.mini-post-name {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.mini-post-img {
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

.mini-kudos {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.mini-kudos span {
  font-size: 10px;
  color: var(--text-muted);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat {
  padding: 40px 32px;
  background: var(--bg-elevated);
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Quote */
.quote-section {
  text-align: center;
  padding: 100px 0;
}

.quote-text {
  margin: 0 auto 24px;
  max-width: 22ch;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.quote-attr {
  font-size: 14px;
  color: var(--text-muted);
}

/* Final CTA */
.cta-section {
  padding: 80px 0 160px;
  text-align: center;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(120, 119, 255, 0.12), transparent),
    var(--bg-elevated);
}

.cta-card h2 {
  margin: 0 auto 16px;
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cta-card p {
  margin: 0 auto 36px;
  max-width: 40ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Legal / invite pages (shared chrome) ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.legal-page {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
}

.legal-page {
  max-width: var(--max-width);
  padding: 64px 0 96px;
}

.legal-page h1,
.legal-page h2 {
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-page h1 {
  margin-top: 0;
  font-weight: 600;
}

.legal-page .muted {
  color: var(--text-muted);
  font-size: 14px;
}

.legal-page ul {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.legal-page p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.invite-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.invite-card {
  width: min(480px, calc(100% - 48px));
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.invite-handle {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 16px 0 8px;
}

.invite-subtitle {
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--text);
  color: #000;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 900px) {
  .bento-card.span-7,
  .bento-card.span-5,
  .bento-card.span-6,
  .bento-card.span-4,
  .bento-card.span-8 {
    grid-column: span 12;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 120px;
  }

  .section {
    padding: 80px 0;
  }

  .cta-card {
    padding: 56px 24px;
  }

  .site-nav {
    display: none;
  }
}
