/* ===== Custom Properties ===== */
:root {
  --bg: #0a0a0f;
  --bg-alt: #0e0e16;
  --surface: #14141f;
  --surface-hover: #1a1a2a;
  --text: #e0e0e8;
  --text-muted: #8a8a9a;
  --accent: #7b6ef6;
  --accent-glow: rgba(123, 110, 246, 0.15);
  --radius: 12px;
  --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.header-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(123, 110, 246, 0.3);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-cta:hover {
  background-color: var(--accent-glow);
  border-color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 110, 246, 0.12) 0%, rgba(123, 110, 246, 0.03) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

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

.section-alt {
  background-color: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.thirds {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.fourths {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(123, 110, 246, 0.2);
  box-shadow: 0 0 30px var(--accent-glow);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Why Section ===== */
.why-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.why-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Roadmap ===== */
.roadmap-content {
  text-align: center;
}

.timeline {
  display: inline-flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
  margin-bottom: 48px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-muted);
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-marker.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

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

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card-grid.thirds,
  .card-grid.fourths {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-orb {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 480px) {
  .header-cta {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
