/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #c8c8d0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #a78bfa; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4b5fd; }
img { max-width: 100%; }
h1, h2, h3, h4 { color: #f0f0f5; font-weight: 600; line-height: 1.2; }

/* === Layout === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; color: #f0f0f5; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: #9898a8; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #f0f0f5; }
.nav-toggle { display: none; background: none; border: none; color: #f0f0f5; font-size: 1.5rem; cursor: pointer; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.7rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #8b5cf6, #818cf8); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #c8c8d0;
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.btn-ghost:hover { border-color: rgba(167, 139, 250, 0.6); color: #f0f0f5; }

/* === Hero === */
.hero {
  position: relative; padding: 10rem 0 6rem; text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px;
  background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.2);
  font-size: 0.8rem; font-weight: 500; color: #a78bfa;
  letter-spacing: 0.03em; margin-bottom: 2rem;
}
.hero h1 { font-size: 4rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #6366f1, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.2rem; color: #9898a8; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4rem; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 700; color: #a78bfa; font-family: 'JetBrains Mono', monospace; }
.stat-label { font-size: 0.8rem; color: #6b6b7b; text-transform: uppercase; letter-spacing: 0.08em; }

/* === Sections === */
.section { padding: 6rem 0; }
.section-dark { background: rgba(255, 255, 255, 0.02); }
.section-title {
  font-size: 2.2rem; margin-bottom: 1rem; text-align: center;
  letter-spacing: -0.02em;
}
.section-sub { text-align: center; color: #9898a8; font-size: 1.1rem; margin-bottom: 3rem; }
.lead { font-size: 1.25rem; color: #d8d8e0; line-height: 1.6; margin-bottom: 1rem; }

/* === Grids === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* === Cards === */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(167, 139, 250, 0.2); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }

/* === Memory Detail === */
.memory-detail { margin-top: 3rem; text-align: center; }
.memory-detail h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.memory-card {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 10px; padding: 1.5rem; text-align: left;
}
.memory-tag {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 6px;
  background: rgba(124, 58, 237, 0.15); color: #a78bfa;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem;
}
.memory-source { font-size: 0.8rem; color: #6b6b7b; margin-bottom: 0.5rem; font-style: italic; }

/* === Privacy Grid === */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.privacy-item { text-align: center; }
.privacy-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.privacy-item h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.privacy-item p { font-size: 0.9rem; color: #9898a8; }

/* === Highlight Box === */
.highlight-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px; padding: 1.5rem 2rem; margin-top: 2rem;
  font-size: 1.05rem; color: #d8d8e0;
}

/* === Architecture === */
.arch-diagram {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px; padding: 2rem; margin-bottom: 2rem;
  overflow-x: auto;
}
.arch-diagram pre {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: #a78bfa; line-height: 1.4; margin: 0;
}
.tech-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.tech-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.tech-label { font-size: 0.85rem; color: #6b6b7b; font-weight: 500; }
.tech-value { font-size: 0.85rem; color: #d8d8e0; font-family: 'JetBrains Mono', monospace; }

/* === Business === */
.biz-item { padding: 1.5rem; }
.biz-item h4 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* === Cross Platform === */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.5rem 0 0.5rem 2rem; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.check-list li::before { content: '✅'; position: absolute; left: 0; }

.xplat-flow { margin-top: 1rem; }
.xplat-core {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 10px; padding: 1.2rem; text-align: center;
  margin-bottom: 1rem;
}
.xplat-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.xplat-core strong { display: block; color: #f0f0f5; }
.xplat-tech { display: block; font-size: 0.8rem; color: #a78bfa; font-family: 'JetBrains Mono', monospace; }
.xplat-desc { display: block; font-size: 0.8rem; color: #6b6b7b; margin-top: 0.3rem; }
.xplat-targets { display: flex; flex-direction: column; gap: 0.5rem; }
.xplat-target {
  padding: 0.6rem 1rem; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.xplat-target span { margin-right: 0.5rem; }
.xplat-target em { color: #6b6b7b; font-size: 0.8rem; }

.timeline-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.timeline-item {
  text-align: center; padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.timeline-item.highlight {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}
.timeline-effort { display: block; font-weight: 700; color: #a78bfa; font-family: 'JetBrains Mono', monospace; }
.timeline-label { font-size: 0.8rem; color: #9898a8; }
.timeline-arrow { color: #4b4b5b; font-size: 1.2rem; }

/* === Roadmap === */
.roadmap { position: relative; padding-left: 2rem; }
.roadmap::before {
  content: ''; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 2px; background: rgba(255, 255, 255, 0.06);
}
.roadmap-item { position: relative; padding: 1rem 0 1.5rem 1.5rem; }
.roadmap-dot {
  position: absolute; left: -2rem; top: 1.2rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: #2a2a35; border: 2px solid #4b4b5b;
}
.roadmap-item.done .roadmap-dot { background: #7c3aed; border-color: #a78bfa; }
.roadmap-item.active .roadmap-dot {
  background: #6366f1; border-color: #818cf8;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}
.roadmap-phase { font-weight: 700; color: #f0f0f5; margin-right: 0.75rem; }
.roadmap-status {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-done { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-active { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.status-planned { background: rgba(255, 255, 255, 0.05); color: #6b6b7b; }
.roadmap-content p { margin-top: 0.4rem; font-size: 0.9rem; color: #9898a8; }

/* === Footer === */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: #4b4b5b;
}
.footer-logo { font-weight: 700; color: #6b6b7b; }
.footer-copy a { color: #6b6b7b; }
.footer-copy a:hover { color: #a78bfa; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 8rem 0 4rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  }
  .nav-toggle { display: block; }
  .timeline-bar { flex-direction: column; }
  .timeline-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .arch-diagram pre { font-size: 0.6rem; }
  .section { padding: 4rem 0; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .privacy-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 1.5rem; }
}
