:root {
  /* Colors */
  --bg-dark: #0b1221;
  --bg-card: #161e2e;
  --bg-card-hover: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;

  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-glow: rgba(56, 189, 248, 0.15);

  --border-color: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-bg: radial-gradient(circle at top center, #1e293b 0%, #0b1221 60%);

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: auto !important;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(56, 189, 248, 0.15);
  z-index: 9999;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: min(100%, var(--container-width));
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn--primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    linear-gradient(to bottom, #0b1221 0%, #0b1221 100%);
  z-index: -1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 90%);
  z-index: -1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
}

.hero__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

/* Terminal Component */
.hero__terminal {
  width: 100%;
  max-width: 800px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
  text-align: left;
}

.terminal__header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.terminal__dot.red {
  background: #ef4444;
}

.terminal__dot.yellow {
  background: #f59e0b;
}

.terminal__dot.green {
  background: #10b981;
}

.terminal__title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  color: var(--text-dim);
  transform: translateX(-24px);
  /* Center visually accounting for dots */
}

.terminal__body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal__line {
  margin-bottom: 8px;
}

.terminal__line.output {
  color: var(--text-secondary);
}

.prompt {
  color: var(--accent-secondary);
  margin-right: 8px;
  font-weight: bold;
}

.info {
  color: var(--accent-primary);
  margin-right: 8px;
}

.success {
  color: #10b981;
  margin-right: 8px;
}

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

/* Sections */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Matrix Grid */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s;
}

.matrix-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.matrix-card__icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.matrix-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.matrix-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  position: relative;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.comparison-table th.highlight {
  color: var(--accent-primary);
  font-weight: 700;
}

.comparison-table td.highlight {
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.05);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Roadmap */
.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
  display: none;
}

@media (min-width: 900px) {
  .roadmap::before {
    display: block;
  }
}

.roadmap__item {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  padding-right: 20px;
}

.roadmap__phase {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.roadmap__item h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.roadmap__item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* CTA */
.section--cta {
  padding-bottom: 140px;
}

.cta-box {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background: #050911;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 12px;
}

.footer__brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.link-group h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.link-group a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.link-group a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Timeline Component */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  height: 100%;
  width: 2px;
  background: var(--border-color);
}

.timeline__step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 64px;
}

.timeline__step:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  z-index: 1;
}

.timeline__content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.timeline__content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.code-snippet {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

  .btn {
    width: 100%;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer__links {
    gap: 32px;
  }
}
