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

:root {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --surface: #14141f;
  --surface-hover: #1a1a2a;
  --border: #1e1e30;
  --text: #e4e4ed;
  --text-muted: #8888a0;
  --accent: #5b8def;
  --accent-glow: rgba(91, 141, 239, 0.15);
  --accent-hover: #7aa5f5;
  --accent-secondary: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-width: 1080px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 141, 239, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 239, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: var(--accent-hover);
}

img, svg {
  display: block;
}

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

.section {
  position: relative;
  padding: 96px 0;
  z-index: 1;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.logo-mark {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:hover {
  background: var(--surface);
  color: var(--text);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
  background: var(--surface);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

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

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(91, 141, 239, 0.25);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(91, 141, 239, 0.06);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.text-accent {
  color: var(--accent);
}

.tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.domain-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.domain-text {
  opacity: 0.7;
}

.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.copy-link:hover {
  color: var(--text);
  background: var(--surface);
}

.copy-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.copy-toast.show {
  opacity: 1;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: rgba(91, 141, 239, 0.2);
  box-shadow: 0 0 32px rgba(91, 141, 239, 0.05);
  transform: translateY(-2px);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ===== Timeline ===== */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--border);
}

.timeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.timeline-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-step:hover .timeline-number {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Roadmap ===== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.roadmap-phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition);
}

.roadmap-phase:hover {
  border-color: rgba(91, 141, 239, 0.2);
}

.roadmap-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.roadmap-now .roadmap-label {
  background: rgba(91, 141, 239, 0.15);
  color: var(--accent);
}

.roadmap-next .roadmap-label {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent-secondary);
}

.roadmap-later .roadmap-label {
  background: rgba(136, 136, 160, 0.15);
  color: var(--text-muted);
}

.roadmap-phase h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.roadmap-phase ul {
  list-style: none;
}

.roadmap-phase li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}

.roadmap-phase li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.roadmap-now li::before {
  background: var(--accent);
}

.roadmap-next li::before {
  background: var(--accent-secondary);
}

/* ===== Demo ===== */
.demo-frame {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.demo-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.demo-placeholder svg {
  margin: 0 auto 12px;
}

.demo-placeholder p {
  font-size: 0.9375rem;
}

.demo-cta {
  text-align: center;
  margin-top: 24px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-left p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-left .footer-disclaimer {
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 100px 0 64px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 19px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Scroll animations ===== */
.card,
.timeline-step,
.roadmap-phase,
.faq-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}

.card.visible,
.timeline-step.visible,
.roadmap-phase.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .timeline-step,
  .roadmap-phase,
  .faq-item {
    opacity: 1;
    transform: none;
    transition: border-color var(--transition), box-shadow var(--transition);
  }
}
