/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── base ── */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #060b14;
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════ NAV ════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
#nav.scrolled {
  background: rgba(6,11,20,0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59,130,246,0.15);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff;
  flex-shrink: 0;
}
.nav-name { font-size: 18px; font-weight: 800; color: #f1f5f9; letter-spacing: -0.4px; }

.nav-links {
  display: flex; list-style: none; gap: 36px;
}
.nav-links a {
  color: #94a3b8; font-size: 14px; text-decoration: none;
  transition: color 0.2s; font-weight: 500;
}
.nav-links a:hover { color: #f1f5f9; }

.nav-cta { white-space: nowrap; }

.hamburger {
  display: none; background: none; border: none;
  color: #94a3b8; font-size: 22px; cursor: pointer; padding: 4px;
}

.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 199;
  background: rgba(6,11,20,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #94a3b8; font-size: 16px; text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #f1f5f9; }

/* ════════════════════════ BUTTONS ════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(59,130,246,0.30);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer; border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.45); }
.btn-primary.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-primary.btn-xl  { padding: 16px 40px; font-size: 16px; }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.13);
  color: #e2e8f0; padding: 10px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  display: inline-block; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.btn-ghost.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-ghost.btn-xl { padding: 16px 40px; font-size: 16px; }

/* ════════════════════════ HERO ════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 130px 24px 80px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(59,130,246,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(139,92,246,0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 5%  65%, rgba(16,185,129,0.07) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.28);
  border-radius: 100px; padding: 7px 18px;
  font-size: 13px; font-weight: 500; color: #60a5fa;
  margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22d3ee;
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 80px);
  font-weight: 900; line-height: 1.04;
  letter-spacing: -2.5px; margin-bottom: 24px; color: #f8fafc;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: #94a3b8; line-height: 1.7; margin-bottom: 40px;
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 0; }

.grad {
  background: linear-gradient(130deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* demo window */
.demo-window {
  position: relative; z-index: 2;
  width: 100%; max-width: 900px;
  margin-top: 64px;
  background: rgba(13,19,30,0.85);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04),
              0 32px 80px rgba(0,0,0,0.55),
              0 0 80px rgba(59,130,246,0.10);
  backdrop-filter: blur(8px);
}
.demo-bar {
  background: rgba(22,33,52,0.95);
  padding: 13px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-tabs { display: flex; gap: 4px; margin-left: 14px; }
.demo-tab {
  padding: 5px 14px; font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: default; transition: all 0.2s;
  color: #64748b;
}
.demo-tab.active { background: rgba(59,130,246,0.15); color: #60a5fa; }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; }
.demo-left { padding: 24px; border-right: 1px solid rgba(255,255,255,0.05); min-height: 280px; }
.demo-right { padding: 20px; display: flex; align-items: center; }

.terminal { font-family: 'JetBrains Mono', 'Fira Mono', monospace; font-size: 13px; line-height: 1.75; min-height: 220px; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor { animation: blink 1s step-end infinite; color: #a3e635; }

/* floating metric cards */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(15,23,42,0.90);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px; padding: 14px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 5s ease-in-out infinite;
  font-size: 13px;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.fc1 { left: 2%; bottom: 18%; animation-delay: 0s; }
.fc2 { right: 2%; top: 38%; animation-delay: 1.8s; }
.fc3 { right: 2%; bottom: 16%; animation-delay: 3.4s; }

.fc-label  { font-size: 11px; color: #64748b; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.fc-bar    { height: 5px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-bottom: 4px; overflow: hidden; }
.fc-fill   { height: 100%; border-radius: 99px; }
.fc-val    { font-size: 15px; font-weight: 700; color: #f1f5f9; }
.fc-sub    { font-size: 12px; color: #64748b; margin-top: 2px; }
.fc-dot    { width: 9px; height: 9px; border-radius: 50%; margin-bottom: 6px; }
.fc-dot.online { background: #22d3ee; box-shadow: 0 0 6px #22d3ee; animation: pulse-dot 1.6s ease-in-out infinite; }

/* ════════════════════════ STATS ════════════════════════ */
.stats-section { padding: 80px 24px; }
.stats-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; max-width: 960px; margin: 0 auto;
}
.stat-card {
  background: rgba(15,23,42,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 36px 44px;
  flex: 1; min-width: 170px; text-align: center;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -10%, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
}
.stat-card:hover { border-color: rgba(59,130,246,0.28); transform: translateY(-3px); }
.stat-num  { font-size: 52px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.stat-lbl  { font-size: 13px; color: #64748b; margin-top: 8px; font-weight: 500; }

/* ════════════════════════ SHARED SECTION ════════════════════════ */
.divider  { max-width: 1100px; margin: 0 auto; border: none; border-top: 1px solid rgba(255,255,255,0.06); }
.section  { padding: 110px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

.section-header { margin-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: #60a5fa;
}
.section-tag.green { color: #34d399; }
.section-title { font-size: clamp(26px,4vw,46px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.12; }
.section-sub   { font-size: 17px; color: #64748b; max-width: 580px; line-height: 1.65; }
.text-center .section-sub { margin: 0 auto; }

/* reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════ FEATURES ════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(13,19,30,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feature-card:hover {
  border-color: rgba(59,130,246,0.28);
  transform: translateY(-4px);
  background: rgba(15,24,42,0.85);
}
.fi     { font-size: 30px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #f1f5f9; }
.feature-card p  { font-size: 13.5px; color: #64748b; line-height: 1.65; }

/* ════════════════════════ COLLECTION MODEL ════════════════════════ */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model-card {
  background: rgba(13,19,30,0.65);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 36px;
  transition: border-color 0.3s;
}
.model-card:hover { border-color: rgba(59,130,246,0.25); }
.model-badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700; margin-bottom: 18px;
}
.model-badge.blue   { background: rgba(59,130,246,0.13); color: #60a5fa; }
.model-badge.purple { background: rgba(139,92,246,0.13); color: #a78bfa; }
.model-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: #f1f5f9; }
.model-desc  { font-size: 14px; color: #64748b; line-height: 1.65; margin-bottom: 22px; }
.model-list  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.model-list li { font-size: 13.5px; color: #94a3b8; display: flex; gap: 10px; align-items: flex-start; }
.model-list li::before { content: '→'; color: #3b82f6; flex-shrink: 0; }

/* flow */
.flow-section { margin-top: 64px; text-align: center; }
.flow-label { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; font-weight: 700; }
.flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0; }
.flow-node {
  background: rgba(22,33,52,0.9);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 14px 18px;
  font-size: 13px; font-weight: 700; color: #e2e8f0;
  text-align: center; min-width: 110px; line-height: 1.4;
}
.flow-node small { font-size: 11px; color: #64748b; font-weight: 500; display: block; margin-top: 2px; }
.flow-arrow { color: #3b82f6; font-size: 20px; padding: 0 10px; flex-shrink: 0; }

/* ════════════════════════ HOW IT WORKS ════════════════════════ */
.how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #fff; flex-shrink: 0;
}
.step-title { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.step-desc  { font-size: 13.5px; color: #64748b; line-height: 1.65; }

/* code window */
.how-code { position: sticky; top: 100px; }
.code-window {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
.code-bar {
  background: #161b22; padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-title { font-size: 12px; color: #6b7280; margin-left: 10px; }
.code-body {
  padding: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.8; overflow-x: auto;
}
.code-body .c { color: #6b7280; }
.code-body .g { color: #a3e635; }
.code-body .b { color: #93c5fd; }

/* ════════════════════════ SECURITY ════════════════════════ */
.security-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 20px;
}
.security-card {
  background: rgba(13,19,30,0.6);
  border: 1px solid rgba(16,185,129,0.14);
  border-radius: 14px; padding: 26px 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.security-card:hover { border-color: rgba(16,185,129,0.34); transform: translateY(-3px); }
.si { font-size: 26px; margin-bottom: 12px; }
.security-card h4 { font-size: 14px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.security-card p  { font-size: 13px; color: #64748b; line-height: 1.6; }

/* ════════════════════════ STACK ════════════════════════ */
.stack-grid {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; max-width: 860px; margin: 0 auto;
}
.stack-tag {
  background: rgba(22,33,52,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 11px 20px;
  font-size: 14px; font-weight: 600; color: #94a3b8;
  transition: all 0.22s; cursor: default;
}
.stack-tag:hover { border-color: rgba(59,130,246,0.30); color: #e2e8f0; transform: translateY(-2px); }

/* ════════════════════════ CTA ════════════════════════ */
.cta-section {
  padding: 130px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(30px,5vw,60px); font-weight: 900;
  letter-spacing: -2px; margin-bottom: 20px; line-height: 1.08;
}
.cta-sub { font-size: 18px; color: #64748b; margin-bottom: 48px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-badge {
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.20);
  border-radius: 100px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: #60a5fa;
}

/* ════════════════════════ FOOTER ════════════════════════ */
.footer {
  background: rgba(4,7,12,0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 48px 36px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between;
}
.footer-brand { max-width: 280px; }
.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: #475569; line-height: 1.65; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; color: #f1f5f9;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1.5px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 13px; color: #475569; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #e2e8f0; }
.footer-bottom {
  max-width: 1100px; margin: 44px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #374151; }

/* ════════════════════════ RESPONSIVE ════════════════════════ */
@media (max-width: 900px) {
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: block; }

  .hero { padding: 110px 20px 60px; }
  .demo-right { display: none; }
  .demo-body  { grid-template-columns: 1fr; }

  .how-grid   { grid-template-columns: 1fr; gap: 48px; }
  .how-code   { position: static; }
  .model-grid { grid-template-columns: 1fr; }

  .fc1,.fc2,.fc3 { display: none; }

  .section { padding: 70px 20px; }
  .footer  { padding: 44px 20px 28px; }
}
@media (max-width: 520px) {
  .stats-grid { flex-direction: column; align-items: stretch; }
  .stat-card  { min-width: unset; }
  .flow       { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
}
