:root {
  --bg: #080c14;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(17, 24, 39, 0.55);
  --text: #f3f4f6;
  --text-secondary: #d1d5db;
  --muted: #6b7280;
  --muted-bright: #9ca3af;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-2: #8b5cf6;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.3);
  --success: #10b981;
  --danger: #ef4444;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Fira Code', monospace;
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 40%, rgba(34, 211, 238, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
}

code, pre, .mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted-bright);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--primary-glow);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.75rem;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--muted-bright);
  font-size: 1.2rem;
  line-height: 1.7;
  animation: fadeUp 0.8s ease 0.2s both;
}

/* WAITLIST */
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.8s ease 0.3s both;
}

.waitlist:focus-within {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 0 30px rgba(99, 102, 241, 0.08);
}

.waitlist input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.95rem;
  padding: 12px 16px;
  font-family: inherit;
}

.waitlist input::placeholder {
  color: #4b5563;
  font-weight: 400;
}

.waitlist button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.waitlist button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.waitlist button:active {
  transform: translateY(0);
}

.waitlist button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.waitlist-msg {
  margin: 14px auto 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.waitlist-msg.success { color: #34d399; }
.waitlist-msg.error { color: #fca5a5; }

/* CODE SNIPPET */
.snippet {
  max-width: 680px;
  margin: 4rem auto 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
  animation: fadeUp 0.8s ease 0.4s both;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.5);
}

.snippet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.snippet-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.7;
}

.snippet-dot:nth-child(1) { background: #ef4444; }
.snippet-dot:nth-child(2) { background: #f59e0b; }
.snippet-dot:nth-child(3) { background: #10b981; }

.snippet-bar code {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.snippet pre {
  margin: 0;
  padding: 22px 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.t-k { color: #c084fc; font-weight: 500; }
.t-s { color: #86efac; }
.t-f { color: #60a5fa; }
.t-c { color: #6b7280; font-style: italic; }

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  text-align: center;
}

.section-sub {
  color: var(--muted-bright);
  text-align: center;
  margin: 0 0 3.5rem;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   COUNTDOWN
   ============================================= */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.count-box {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.count-box:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
}

.count-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.count-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-label {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
}

/* =============================================
   FEATURES
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s,
              box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px -15px rgba(99, 102, 241, 0.15),
              0 0 0 1px rgba(99, 102, 241, 0.1);
}

.feature:hover::before {
  opacity: 1;
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================
   ABOUT / TEASER CTA
   ============================================= */
.about-cta-block {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.about-cta-block::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.about-cta-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-cta-block p {
  color: var(--muted-bright);
  margin: 0 0 1.75rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

/* =============================================
   FEATURE DETAIL PAGES
   ============================================= */
.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 1rem;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
}

.feature-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.7;
}

.feature-card-dot:nth-child(1) { background: #ef4444; }
.feature-card-dot:nth-child(2) { background: #f59e0b; }
.feature-card-dot:nth-child(3) { background: #10b981; }

.feature-card-header .title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.feature-card-body {
  padding: 2.5rem;
}

.feature-full h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-full-intro {
  color: var(--muted-bright);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0 0 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

.feature-full h2 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.feature-full ul {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.feature-full li {
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.feature-full li:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.03);
}

.feature-full li strong {
  color: var(--text);
  font-weight: 600;
}

.feature-full code {
  background: rgba(99, 102, 241, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.feature-full p:last-child {
  color: var(--muted-bright);
  line-height: 1.75;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  margin-top: 6rem;
}

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

.footer-tag {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: #4b5563;
  font-size: 0.8rem;
  text-align: center;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

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

  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
  }

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

  .section {
    padding: 3.5rem 1.5rem;
  }

  .feature-card-body {
    padding: 1.75rem;
  }

  .feature-full h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .waitlist {
    flex-direction: column;
  }

  .waitlist button {
    width: 100%;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .count-box {
    padding: 1.5rem 0.75rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .snippet pre {
    font-size: 0.72rem;
    padding: 16px;
  }
}
