:root {
  --bg: #0b0b10;
  --card: #12121a;
  --text: #e8e8ef;
  --muted: #a9a9bf;
  --accent: #7c3aed;
  --accent-2: #22d3ee;
  --ring: rgba(124, 58, 237, .35);
  --header-h: 72px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollable body for V1 homepage */
body.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#bg,
.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

.page-glow {
  background:
    radial-gradient(900px 520px at 50% 120px, rgba(124, 58, 237, .18), transparent 65%),
    radial-gradient(700px 400px at 15% 0px, rgba(34, 211, 238, .08), transparent 60%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, .85) 40%, rgba(0, 0, 0, 0) 70%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(10, 10, 16, .9), rgba(10, 10, 16, .6));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text)
}

.wordmark {
  display: inline-block;
  letter-spacing: .3px;
  line-height: 1;
  font-weight: 400;
  font-size: 20px
}

.wordmark-strong {
  font-weight: 800;
  margin-right: 2px
}

.wordmark-light {
  font-weight: 500;
  opacity: .95
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
}

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

.nav .btn {
  margin-left: 8px;
}

/* Main content area */
.page-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

/* V1 Hero Section */
.hero-v1 {
  padding: 60px 0 48px;
  text-align: left;
}

.hero-v1 h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 800px;
}

.hero-v1 .lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 700px;
  line-height: 1.5;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  max-width: 700px;
}

.hero-bullets li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.hero-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.hero-bullets strong {
  color: var(--accent-2);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

/* Buttons */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%) padding-box;
  color: #fff;
  box-shadow: 0 8px 30px var(--ring)
}

.btn.primary:hover {
  transform: translateY(-1px)
}

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

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, .28)
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .005));
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.card h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 26px);
}

.card .lead {
  margin: 0 0 20px;
}

.card-muted {
  background: rgba(255, 255, 255, .01);
  border-color: rgba(255, 255, 255, .04);
}

/* Features Grid (V1 Scope) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 16px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--text);
}

.feature-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Steps List (How It Works) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .04);
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.step-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step-content p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Audience Grid (Why It Matters) */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.audience-item {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 16px;
}

.audience-item h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--accent-2);
}

.audience-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Architecture Layers */
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, .02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.layer-label {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, .2);
  border: 1px solid rgba(124, 58, 237, .4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-2);
}

.layer-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.layer-content p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Integrations Split */
.integrations-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.integration-col h3 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text);
}

.integration-purpose {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.integration-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.integration-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  padding-left: 20px;
}

.integration-list.available li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 600;
}

.integration-list.planned li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Security Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.security-item {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 16px;
}

.security-item h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--text);
}

.security-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Roadmap List */
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.roadmap-list li:last-child {
  border-bottom: none;
}

.roadmap-list strong {
  color: var(--text);
}

/* Team */
.team-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.team {
  flex: 1 1 200px;
  text-align: center;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06),
    0 6px 18px var(--ring);
}

.team h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.team p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.team-bio {
  margin-top: 8px !important;
  font-size: 12px !important;
}

/* Contact */
.contact.card {
  padding: 24px
}

.contact-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.contact-icons a {
  --icon-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.contact-icons a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 24px var(--ring);
}

.contact-icons .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  object-fit: contain;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: transparent;
  margin-top: 32px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

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

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

/* Nav logo */
.avatar--nav {
  --size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--size)+4px);
  height: calc(var(--size)+4px);
  border-radius: 999px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2));
  padding: 2px;
  box-shadow: 0 6px 18px var(--ring)
}

.avatar--nav img {
  width: var(--size);
  height: var(--size);
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 52%;
  background: #0e0e15
}

/* Mobile */
@media (max-width:640px) {
  :root {
    --header-h: 60px
  }

  .nav a:not(.btn) {
    display: none;
  }

  .hero-v1 {
    padding: 40px 0 32px;
  }

  .hero-v1 h1 {
    font-size: 26px;
  }

  .section {
    padding: 24px 0;
  }

  .card {
    padding: 18px;
  }

  .features-grid,
  .audience-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Legacy support for slide pages (signup, 404) */
body:not(.scrollable) {
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 1
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(2vh) scale(.995);
  transition: opacity .85s ease, transform .85s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

.screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto
}

.hero {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  gap: 14px;
  padding-bottom: 10vh;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
  margin: 16px 0
}

.stack {
  display: grid;
  gap: 28px;
  width: 100%
}

.bullets {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  color: var(--text)
}

.bullets li {
  margin: 16px 0;
  line-height: 1.8;
  padding: 6px 0;
}

/* Animations for scrollable pages */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scrollable .hero-v1,
.scrollable .section {
  animation: fadeInUp 0.6s ease-out both;
}

.scrollable .section:nth-child(2) { animation-delay: 0.1s; }
.scrollable .section:nth-child(3) { animation-delay: 0.15s; }
.scrollable .section:nth-child(4) { animation-delay: 0.2s; }
.scrollable .section:nth-child(5) { animation-delay: 0.25s; }

/* Hero subtext */
.hero-subtext {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 600px;
  line-height: 1.6;
}

/* Card variants */
.card-highlight {
  background: linear-gradient(180deg, rgba(124, 58, 237, .08), rgba(124, 58, 237, .02));
  border-color: rgba(124, 58, 237, .2);
}

.card-evolution {
  background: linear-gradient(180deg, rgba(34, 211, 238, .06), rgba(34, 211, 238, .01));
  border-color: rgba(34, 211, 238, .15);
}

.card-cta {
  background: linear-gradient(180deg, rgba(124, 58, 237, .12), rgba(124, 58, 237, .04));
  border-color: rgba(124, 58, 237, .25);
  text-align: center;
}

/* Where Mindplane Fits section (merged) */
.where-positioning {
  margin-bottom: 20px;
}

.where-positioning p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 8px;
}

.where-surface-area {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
}

.where-surface-area p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 8px;
}

.where-surface-area p:last-child {
  margin-bottom: 0;
}

.where-surface-area strong {
  color: var(--accent-2);
}

.where-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.where-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.where-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(124, 58, 237, .1);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.callout strong {
  color: var(--accent-2);
}

/* Card quiet variant (differentiator sections) */
.card-quiet {
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), rgba(255, 255, 255, .005));
  border-color: rgba(255, 255, 255, .04);
}

/* Integrations note */
.integrations-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* V1 to V2 Evolution section */
.evolution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.evolution-col h3 {
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--text);
}

.evolution-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evolution-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

.evolution-list.changes li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.evolution-list.stable li::before {
  content: "=";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 600;
}

.evolution-list li strong {
  color: var(--text);
}

.evolution-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}

.evolution-summary p {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}

.evolution-summary p:first-child strong {
  color: var(--accent-2);
}

.evolution-summary p:last-child strong {
  color: #22c55e;
}

/* CTA section */
.cta-actions {
  margin: 24px 0 16px;
}

.cta-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Surface Area section */
.surface-area-content p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 16px;
}

.surface-area-content p strong {
  color: var(--accent-2);
}

.surface-area-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.surface-area-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding-left: 20px;
}

.surface-area-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 600;
}

.surface-area-note {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* Mobile adjustments for new sections */
@media (max-width:640px) {
  .evolution-grid {
    grid-template-columns: 1fr;
  }
  
  .where-content .callout {
    padding: 12px;
    font-size: 14px;
  }
  
  .evolution-summary p {
    font-size: 14px;
  }
}
