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

:root {
  --bg:      #0d1926;
  --bg2:     #122234;
  --bg3:     #182a40;
  --accent:  #1a8fff;
  --accent2: #00d4ff;
  --glow:    rgba(26,143,255,0.15);
  --text:    #dce8f5;
  --muted:   #8baecf;
  --border:  rgba(26,143,255,0.22);
  --border2: rgba(255,255,255,0.09);
  --radius:  10px;
  --font:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
h1,h2,h3,h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

.label {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 14px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.22s; border: none; font-family: var(--font);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 22px rgba(26,143,255,0.32);
}
.btn-primary:hover { background: var(--accent2); color: #000; box-shadow: 0 0 32px rgba(0,212,255,0.42); }
.btn-outline {
  background: transparent; color: var(--accent2); border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--glow); border-color: var(--accent); color: var(--accent2); }

/* Nav CTA override */
.nav-cta { padding: 8px 18px; opacity: 1; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head p { color: var(--muted); max-width: 540px; margin: 14px auto 0; font-size: 16px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══ NAV ════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,25,38,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border2);
  transition: background 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1140px; margin: 0 auto; padding: 0 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo-icon img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text); font-weight: 500; transition: color 0.2s; opacity: 0.75; }
.nav-links a:hover { color: var(--accent2); opacity: 1; }

/* ═══ HERO ═══════════════════════════════════════════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px; overflow: hidden; z-index: 1;
}
#hero .container { width: 100%; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-title { font-size: clamp(34px, 5vw, 60px); color: var(--text); margin-bottom: 22px; }
.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 17px; color: var(--muted); max-width: 500px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stack { margin-top: 44px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack-label { font-size: 12px; color: var(--muted); }
.stack-pill {
  padding: 5px 13px; border: 1px solid var(--border2);
  border-radius: 40px; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.04);
}

/* ── Hero right — platform layers visual ─────────────────────── */
.hero-visual { position: relative; }
.stack-visual { display: flex; flex-direction: column; gap: 8px; }
.stack-layer {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(18,34,52,0.65);
  border: 1px solid var(--border2);
  border-radius: 10px;
  transition: border-color 0.22s, background 0.22s;
  cursor: default;
}
.stack-layer:hover { border-color: var(--border); background: rgba(18,34,52,0.92); }
.stack-layer-num {
  font-size: 10px; font-weight: 700; color: var(--accent2);
  opacity: 0.55; font-family: 'Courier New', monospace;
  flex-shrink: 0; width: 18px;
}
.stack-layer-icon { font-size: 18px; flex-shrink: 0; }
.stack-layer-content { flex: 1; min-width: 0; }
.stack-layer-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.stack-layer-code { font-size: 11px; color: var(--muted); font-family: 'Courier New', monospace; }
.stack-connector { display: flex; justify-content: center; margin: 0; }
.stack-connector-line {
  width: 1px; height: 8px;
  background: linear-gradient(to bottom, var(--border2), transparent);
}
.stack-caption {
  text-align: center; margin-top: 16px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
}

/* ═══ METRICS ════════════════════════════════════════════════════ */
.metrics-bar {
  position: relative; z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2);
}
.metrics-inner {
  display: flex; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
}
.metric {
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px; border-right: 1px solid var(--border2); flex: 1; text-align: center;
}
.metric:last-child { border-right: none; }
.metric-value {
  font-size: 38px; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1;
}
.metric-value-sm { font-size: 26px; line-height: 1.25; }
.metric-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ═══ STATEMENT SLIDER ══════════════════════════════════════════ */
.slider-section {
  position: relative; z-index: 1;
  background: var(--bg3);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 64px 0;
  overflow: hidden;
}
.slider-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.slider-track {
  position: relative; min-height: 90px;
  display: flex; align-items: center;
  margin-bottom: 36px;
}
.slide {
  position: absolute; width: 100%;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none; text-align: center;
}
.slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide-text {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400; color: var(--text);
  line-height: 1.5; letter-spacing: -0.01em;
}
.slide-text em { font-style: normal; color: var(--accent2); font-weight: 600; }
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 7px; height: 7px; border-radius: 3.5px;
  background: var(--muted); opacity: 0.4; cursor: pointer; transition: all 0.3s;
}
.slider-dot.active { width: 22px; background: var(--accent); opacity: 1; }
.slider-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border2); background: transparent;
  color: var(--text); opacity: 0.55; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s; padding: 0; font-family: var(--font);
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ═══ PROBLEM ════════════════════════════════════════════════════ */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border2);
  border: 1px solid var(--border2); border-radius: 14px; overflow: hidden;
}
.problem-card { padding: 36px 32px; background: var(--bg2); }
.problem-card-alt { background: rgba(26,143,255,0.04); }
.problem-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.problem-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.problem-card li { font-size: 14px; color: var(--muted); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.problem-card li::before { content: '—'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.c-accent2 { color: var(--accent2); }

/* ═══ PLATFORM PILLARS (4 boxes) ════════════════════════════════ */
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.pillar-card {
  padding: 32px; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s; position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--glow), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.pillar-card:hover { border-color: var(--border); transform: translateY(-3px); }
.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 20px;
  background: rgba(26,143,255,0.1); border: 1px solid var(--border);
}
.pillar-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--text); }
.pillar-sub { font-size: 11px; color: var(--accent2); margin-bottom: 14px; font-family: 'Courier New', monospace; }
.pillar-card p { font-size: 14px; color: var(--muted); }
.feature-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.feature-list li { font-size: 13px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.feature-list li::before { content: ''; margin-top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ═══ TIMELINE ════════════════════════════════════════════════════ */
.timeline { display: flex; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.timeline-step { flex: 1; position: relative; padding-top: 60px; padding-right: 20px; }
.timeline-step:last-child { padding-right: 0; }
.timeline-dot { position: absolute; top: 18px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg2); box-shadow: 0 0 14px rgba(26,143,255,0.5); z-index: 1; }
.timeline-day { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; }
.timeline-step h4 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
.timeline-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ═══ WHY WIN ════════════════════════════════════════════════════ */
.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.win-card { padding: 28px 24px; border: 1px solid var(--border2); border-radius: 12px; background: var(--bg3); transition: border-color 0.2s, transform 0.2s; }
.win-card:hover { border-color: var(--border); transform: translateY(-3px); }
.win-card h4 { font-size: 16px; margin-bottom: 10px; }
.win-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ═══ OSS BANNER ════════════════════════════════════════════════ */
.oss-banner {
  position: relative; background: linear-gradient(135deg, rgba(26,143,255,0.11), rgba(0,212,255,0.06));
  border: 1px solid var(--border); border-radius: 16px; padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden;
}
.oss-banner::before { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,0.1), transparent 70%); }
.oss-content h2 { font-size: 28px; margin-bottom: 12px; }
.oss-content p  { color: var(--muted); max-width: 480px; font-size: 15px; }
.mit-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.28); border-radius: 40px; font-size: 12px; font-weight: 600; color: var(--accent2); margin-top: 14px; }
.oss-github-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ═══ CONTACT ════════════════════════════════════════════════════ */
.contact-card { max-width: 680px; margin: 0 auto; background: var(--bg3); border: 1px solid var(--border2); border-radius: 20px; padding: 52px; text-align: center; }
.contact-card h2 { font-size: 32px; margin-bottom: 12px; }
.contact-card > p { color: var(--muted); margin-bottom: 34px; font-size: 16px; }
.form-group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; text-align: left; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: var(--radius);
  color: var(--text); font-size: 14px; font-family: var(--font); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--bg2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }
.form-success-msg {
  display: none; margin-top: 24px; padding: 18px;
  background: rgba(26,143,255,0.08); border: 1px solid var(--border);
  border-radius: 10px; color: var(--accent2);
}

/* ═══ FOOTER ════════════════════════════════════════════════════ */
footer { position: relative; z-index: 1; background: var(--bg2); border-top: 1px solid var(--border2); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-logo { font-size: 15px; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .win-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .metrics-inner { flex-wrap: wrap; }
  .metric { min-width: 48%; border-right: none; border-bottom: 1px solid var(--border2); }
  .oss-banner { flex-direction: column; padding: 36px 28px; }
  .timeline { flex-direction: column; gap: 28px; }
  .timeline::before { display: none; }
  .timeline-step { padding-top: 0; padding-left: 36px; }
  .timeline-dot { top: 0; }
  .nav-links { display: none; }
  .contact-card { padding: 32px 20px; }
}
