:root {
  --bg: #07090f;
  --bg-soft: #0d111c;
  --panel: #111726;
  --panel-2: #161d30;
  --line: #1f2937;
  --text: #e7ecf3;
  --muted: #8b97ad;
  --accent: #00d4aa;
  --accent-2: #00b4d8;
  --green: #34d399;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 70% -10%, rgba(0, 212, 170, 0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(0, 180, 216, 0.10), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15), rgba(0, 180, 216, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb 12s ease-in-out infinite;
  top: -150px;
  left: 30%;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

/* Animations */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 10px) scale(1.04); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes typeIn {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 170, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.6); }
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Nav */
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 9, 15, 0.7);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px; }
.logo-mark { width: 28px; height: 28px; }
.logo-text .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(0, 212, 170, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Hero */
.hero { max-width: 1080px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; position: relative; }
.hero-badge {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--panel);
  margin-bottom: 26px;
  animation: fadeIn 0.8s ease;
}
.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  animation: slideUp 0.8s ease;
}
.hero-logo {
  display: inline-block;
  font-size: clamp(48px, 7vw, 72px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glowPulse 3s ease-in-out infinite;
}
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite, fadeIn 0.8s ease;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
  animation: slideUp 0.8s ease 0.2s both;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease 0.4s both;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 54px auto 0;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
}
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 640px; }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Model cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  perspective: 800px;
  cursor: default;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2);
  transform: translateY(-2px);
}
.card-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.card-tag { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.card-price { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.card-price b { color: var(--text); font-weight: 600; }

/* Steps */
.steps { display: grid; gap: 16px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}
.step:hover { border-color: rgba(0, 212, 170, 0.3); }
.step-n {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.step h3 { margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.code {
  background: #05070d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  color: #c7d2fe;
  margin: 8px 0 0;
  font-family: "SF Mono", "Fira Code", monospace;
}

/* Coding Agents */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.agent-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.agent-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
  transform: translateY(-2px);
}
.agent-icon { font-size: 28px; margin-bottom: 10px; }
.agent-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 16px; margin: 0 0 8px; }
.agent-config { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.15);
  transform: translateY(-2px);
}
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-family: "Space Grotesk", sans-serif; font-size: 17px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Price table */
.price-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
.price-row.head { background: linear-gradient(135deg, var(--panel-2), var(--panel)); color: var(--muted); font-weight: 600; font-size: 13px; }
.price-row:last-child { border-bottom: none; }
.price-row .m { font-family: "Space Grotesk", sans-serif; font-weight: 500; }
.price-row .num { color: var(--muted); }
.price-row .num b { color: var(--green); }

/* CTA */
.cta-section { display: flex; justify-content: center; }
.cta-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px;
  text-align: center;
  max-width: 620px;
  width: 100%;
}
.cta-card h2 { font-family: "Space Grotesk", sans-serif; font-size: 28px; margin: 0 0 10px; }
.cta-card p { color: var(--muted); margin: 0 0 22px; }
.status-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s;
}
.status-dot.online { background: var(--green); animation: statusBlink 2s ease infinite; }
.status-dot.offline { background: #ef4444; }

/* Footer */
.footer {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  align-items: center;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.muted { color: var(--muted); }

/* Mobile */
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 16px; gap: 12px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .agent-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; font-size: 12px; padding: 12px 12px; }
  .cta-card { padding: 30px 22px; }
  .footer { flex-direction: column; text-align: center; }
}
