*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #191127;
  --bg-card: #23133a;
  --bg-elevated: #1f1232;
  --bg-hover: #1f1232;
  --border: #3a1c63;
  --border-subtle: #5e309d;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #d6d6d6;
  --accent: #883CF0;
  --accent-glow: rgba(146, 59, 246, 0.15);
  --green: #7c3aed;
  --amber: #8b5cf6;
  --red: #b29dce;
  --purple: #a78bfa;
  --cyan: #873cf09d;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  background: #180f26;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 59, 246, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #1f1232;
  border: 1px solid #3a1c63;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); background: var(--bg-card); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── IDE DEMO ─── */
.ide-section {
  max-width: 1000px;
  margin: 0 auto 120px;
  padding: 0 24px;
  animation: fadeUp 0.8s ease-out 0.4s both;
}
.ide-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.ide-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.01);
}
.ide-dots { display: flex; gap: 7px; }
.ide-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.ide-dots span:nth-child(1) { background: var(--red); }
.ide-dots span:nth-child(2) { background: var(--amber); }
.ide-dots span:nth-child(3) { background: var(--green); }
.ide-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.ide-body { display: flex; min-height: 400px; }
.ide-sidebar {
  width: 220px;
  border-right: 1px solid var(--border-subtle);
  padding: 12px;
  flex-shrink: 0;
}
.ide-sidebar-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 4px 8px;
}
.ide-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.ide-file:hover { background: var(--bg-hover); color: var(--text); }
.ide-file.active { background: var(--accent-glow); color: var(--accent); }
.ide-file-icon { font-size: 14px; }
.ide-editor {
  flex: 1;
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}
.ide-line {
  display: flex;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  padding: 0 20px;
}
.ide-line-num {
  width: 40px;
  color: var(--text-muted);
  text-align: right;
  padding-right: 16px;
  user-select: none;
  flex-shrink: 0;
  opacity: 0.5;
}
.ide-line-code { flex: 1; white-space: pre; }
.ide-line.highlight { background: #1f1232; }

/* Syntax coloring */
.kw { color: var(--purple); }
.fn { color: #60a5fa; }
.str { color: var(--green); }
.cm { color: var(--text-muted); font-style: italic; }
.num { color: var(--amber); }
.op { color: var(--text-secondary); }
.tag { color: var(--red); }
.attr { color: var(--cyan); }

/* Agent Panel */
.ide-agent {
  width: 300px;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.agent-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.agent-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
.agent-chat {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.agent-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 90%;
  opacity: 0;
  transform: translateY(10px);
  animation: msgIn 0.4s ease-out forwards;
}
.agent-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
}
.agent-msg.assistant {
  align-self: flex-start;
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
@keyframes msgIn {
  to { opacity: 1; transform: translateY(0); }
}
.agent-msg:nth-child(1) { animation-delay: 0.5s; }
.agent-msg:nth-child(2) { animation-delay: 1.5s; }
.agent-msg:nth-child(3) { animation-delay: 2.8s; }
.agent-msg:nth-child(4) { animation-delay: 4s; }

.agent-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}
.agent-input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-display);
  outline: none;
}
.agent-input input:focus { border-color: var(--accent); }

/* ─── FEATURES ─── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(59,130,246,0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
}
.feature-icon.blue { background: #2a1647; color: var(--accent); }
.feature-icon.green { background: #3a1c6350; color: var(--green); }
.feature-icon.purple { background: #a78bfa1a; color: var(--purple); }
.feature-icon.amber { background: #2a1647; color: var(--amber); }
.feature-icon.cyan { background: #3a1c6350; color: var(--cyan); }
.feature-icon.red { background: #a78bfa1a; color: var(--red); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── INTERACTIVE TAB DEMO ─── */
.tab-demo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 120px;
}
.tab-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tab-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.tab-code-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tab-code-tab {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-code-tab.active { background: var(--bg-hover); color: var(--text); }
.tab-code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 260px;
}
.ghost-text {
  color: rgba(147, 155, 169, 0.45);
  position: relative;
}
.ghost-text::after {
  content: 'Tab →';
  position: absolute;
  right: -60px;
  top: 0;
  font-size: 10px;
  padding: 2px 8px;
  background: #1f1232;
  border: 1px solid #3a1c63;
  border-radius: 4px;
  color: var(--accent);
  white-space: nowrap;
  animation: tabPulse 2s ease-in-out infinite;
}
@keyframes tabPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: 100px 24px;
  background: linear-gradient(180deg, transparent, rgba(149, 59, 246, 0.02), transparent);
}
.testimonials-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}
.testimonial-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-info h4 {
  font-size: 14px;
  font-weight: 600;
}
.testimonial-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── RESEARCH TIMELINE ─── */
.timeline-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px;
}
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--purple), var(--border));
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
}
.timeline-item.visible {
  animation: slideIn 0.5s ease-out forwards;
}
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}
.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-year {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── MODELS SECTION ─── */
.models-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 120px;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}
.model-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
}
.model-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 30px rgba(59,130,246,0.1);
}
.model-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.model-provider {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  position: relative;
}
.cta-section .cta-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08), transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 40px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .tab-demo-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .ide-sidebar, .ide-agent { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── TYPING CURSOR ─── */
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── STATS ─── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 60px 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 100px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color:  var(--text);
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── LOGOS ─── */
.logos-section {
  padding: 60px 24px;
  text-align: center;
}
.logos-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.4;
}
.logos-row span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}