:root {
  --bg: #0a0820;
  --bg-2: #100a2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --text: #f3eefe;
  --muted: #b1a8d6;
  --muted-2: #877ea8;
  --violet: #7c5cff;
  --violet-soft: #c4b5fd;
  --pink: #f4c4d8;
  --cyan: #93e0ff;
  --green: #a7f3d0;
  --amber: #fde68a;
  --shadow-lg: 0 30px 80px rgba(8, 5, 30, 0.5);
  --shadow-md: 0 14px 40px rgba(8, 5, 30, 0.4);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(244, 196, 216, 0.16), transparent 55%),
    radial-gradient(900px 700px at 80% 110%, rgba(124, 92, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0820 0%, #0c0926 50%, #07051a 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(196, 181, 253, 0.32); color: #fff; }

/* Background atmosphere */
.bg-orb, .bg-grid, .bg-noise { position: fixed; pointer-events: none; z-index: -5; }

.bg-orb { border-radius: 50%; filter: blur(72px); opacity: 0.55; }
.bg-orb-1 { top: -120px; left: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.6), transparent 70%);
  animation: drift 22s ease-in-out infinite; }
.bg-orb-2 { top: 38%; right: -160px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(244, 196, 216, 0.4), transparent 70%);
  animation: drift 28s ease-in-out infinite reverse; }
.bg-orb-3 { bottom: -120px; left: 30%; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(147, 224, 255, 0.28), transparent 70%);
  animation: drift 26s ease-in-out infinite; }

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.6), transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.6), transparent 75%);
  z-index: -6;
}

.bg-noise {
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 0.6px, transparent 0.6px);
  background-size: 11px 11px;
  z-index: -4;
}

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

.section { position: relative; padding: 140px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)); }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* Type */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #faf7ff;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 1.04rem; }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 38%, #7c5cff 70%, #f4c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--violet-soft);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--violet-soft);
  opacity: 0.6;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  padding: 18px 0;
  background: rgba(10, 8, 32, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-ring { transform-origin: center; animation: spin 18s linear infinite; }
.logo-dot { transform-origin: 20px 20px; animation: pulseDot 2.4s ease-in-out infinite; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 14px; border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 200ms ease, background 200ms ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--text);
  background: var(--surface);
}

.nav-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Hero */
.hero { padding: 92px 0 80px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.18);
  color: #e6deff;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet));
  box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.18);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 9.5vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 28px 0 24px;
  color: #ffffff;
}
.title-line { display: block; }

.hero-sub {
  max-width: 540px;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-sub strong { color: #f1ebff; font-weight: 600; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 12px;
  max-width: 540px;
}
.hero-points li {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.hero-points li span {
  flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 9px;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet));
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.hero-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 0;
  transition: color 200ms ease, transform 200ms ease;
}
.hero-link:hover { color: var(--text); transform: translateY(2px); }
.hero-link svg { animation: bob 2.6s ease-in-out infinite; }

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.orb-svg {
  width: min(100%, 620px);
  overflow: visible;
  filter: drop-shadow(0 60px 120px rgba(45, 24, 120, 0.4));
}

.ring-slow { transform-origin: 300px 300px; animation: spin 32s linear infinite; }
.ring-medium { transform-origin: 300px 300px; animation: spin 22s linear infinite reverse; }
.ring-fast { transform-origin: 300px 300px; animation: spin 14s linear infinite; }
.ring-medium-rev { transform-origin: 300px 300px; animation: spin 18s linear infinite reverse; }

.orb-core { transform-origin: 300px 300px; animation: breathe 5s ease-in-out infinite; }
.orb-pulse { transform-origin: 300px 300px; animation: corePulse 3.4s ease-in-out infinite; }
.orb-inner { transform-origin: 300px 300px; animation: innerFlash 2.6s ease-in-out infinite; }

.floating-group { transform-origin: 300px 300px; animation: spin 36s linear infinite; }
.float-dot { transform-origin: center; animation: bob 4.4s ease-in-out infinite; }

/* Orbit cards */
.orbit-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  min-width: 200px;
  border-radius: 18px;
  background: rgba(20, 14, 48, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-md);
}
.card-emoji {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.2rem;
}
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-text strong { font-size: 0.95rem; color: #fbfaff; font-weight: 600; }
.card-text span { font-size: 0.82rem; color: var(--muted-2); }

.orbit-card-1 { top: 6%;  left: -2%;  animation: floatCard 7.5s ease-in-out infinite; }
.orbit-card-2 { top: 38%; right: -6%; animation: floatCard 9s ease-in-out infinite reverse; }
.orbit-card-3 { bottom: 6%; left: 6%; animation: floatCard 8.4s ease-in-out infinite; }

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  animation: marquee 32s linear infinite;
}
.marquee .dot { color: var(--violet-soft); opacity: 0.7; }

/* Story */
.story-grid, .memory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.story-lead {
  font-size: 1.18rem;
  color: #d8d2ec;
  margin: 20px 0 16px;
  line-height: 1.65;
}
.story-body { font-size: 1.04rem; color: var(--muted); margin-top: 14px; }

.story-card, .memory-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.story-card-head, .memory-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-card-head strong, .memory-card-head strong {
  color: #f0eafe;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: 0.95rem;
}

.story-card-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.story-card-row:first-of-type { border-top: 0; }
.story-card-row.soft strong { color: #cdc4ee; font-weight: 500; }
.story-card-row .dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 6px;
}
.story-card-row strong { display: block; color: #f5f1ff; font-weight: 600; font-size: 1rem; }
.story-card-row small { color: var(--muted-2); font-size: 0.86rem; }

.dot-cyan { background: var(--cyan); box-shadow: 0 0 0 4px rgba(147, 224, 255, 0.18); }
.dot-violet { background: var(--violet); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.22); }
.dot-pink { background: var(--pink); box-shadow: 0 0 0 4px rgba(244, 196, 216, 0.2); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(253, 230, 138, 0.18); }

/* Bento */
.section-header {
  max-width: 720px;
  margin-bottom: 60px;
}
.section-header p { font-size: 1.1rem; margin-top: 14px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  position: relative;
  grid-column: span 4;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 320ms ease, border-color 320ms ease, background 320ms ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}
.bento-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(196, 181, 253, 0.18), transparent 50%);
  opacity: 0; transition: opacity 320ms ease;
  pointer-events: none;
  z-index: -1;
}
.bento-card:hover::after { opacity: 1; }

.bento-big { grid-column: span 6; min-height: 380px; }
.bento-wide { grid-column: span 6; }

.bento-tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.1);
  border: 1px solid rgba(196, 181, 253, 0.18);
}

.bento-card h3 { margin-bottom: 10px; }
.bento-card p { font-size: 1.02rem; }

.capture-rows {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.capture-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
}
.capture-row span { font-size: 1.1rem; }
.capture-row strong { color: #f0eafe; font-size: 0.96rem; font-weight: 500; }
.capture-row em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.1);
}

.micro-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.micro-row span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  font-size: 0.86rem;
  color: var(--muted);
}

/* Memory */
.memory-tile {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}
.memory-tile:first-of-type { border-top: 0; }
.m-emoji {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  font-size: 1.2rem;
}
.memory-tile strong { display: block; color: #f5f1ff; font-size: 1rem; font-weight: 600; }
.memory-tile small { color: var(--muted-2); font-size: 0.88rem; }

/* Flow */
.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  transition: transform 320ms ease, border-color 320ms ease;
}
.flow-step:hover { transform: translateX(6px); border-color: rgba(196, 181, 253, 0.28); }
.flow-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: rgba(196, 181, 253, 0.32);
  letter-spacing: -0.02em;
}
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { font-size: 1rem; }
.flow-visual { font-size: 2rem; }

/* Closing */
.closing-section { padding: 120px 0 160px; }
.closing {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.closing .kicker { justify-content: center; }
.closing h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin-bottom: 18px; }
.closing p { font-size: 1.12rem; }

/* Wordmark — giant, cropped */
.wordmark {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  /* Reveal only the upper portion so it appears cut off at the bottom */
  height: clamp(260px, 38vw, 460px);
}
.wordmark-inner {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(14rem, 38vw, 32rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg,
    rgba(196, 181, 253, 0.95) 0%,
    rgba(124, 92, 255, 0.65) 38%,
    rgba(46, 26, 138, 0.22) 70%,
    rgba(10, 8, 32, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  /* Push it down so only the top of the letters shows */
  transform: translateY(0);
  filter: drop-shadow(0 30px 60px rgba(124, 92, 255, 0.25));
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.7; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50%      { transform: scale(1.7); opacity: 0.35; }
}
@keyframes innerFlash {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.16); opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(28px, -22px, 0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatCard {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid, .story-grid, .memory-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { min-height: 520px; }
  .bento-card, .bento-big, .bento-wide { grid-column: span 6; }
}

@media (max-width: 760px) {
  .section { padding: 96px 0; }
  .nav-links { display: none; }
  .nav-tag { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 56px 0 40px; }
  .hero-title { font-size: clamp(3.2rem, 14vw, 5rem); }
  .hero-visual { min-height: auto; padding-top: 20px; gap: 16px; }
  .orbit-card { position: relative; inset: auto; width: 100%; }
  .orbit-card-1, .orbit-card-2, .orbit-card-3 { animation: none; margin-top: 12px; }
  .bento-card, .bento-big, .bento-wide { grid-column: span 12; }
  .flow-step { grid-template-columns: 60px 1fr; padding: 22px; gap: 18px; }
  .flow-visual { display: none; }
  .closing-section { padding: 80px 0 100px; }
  .wordmark { margin-top: 24px; height: clamp(180px, 38vw, 300px); }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .story-card, .memory-card, .bento-card { padding: 22px; border-radius: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
