:root {
  --bg: #0a0a0f;
  --bg-soft: #121218;
  --card: #16161e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --muted: #a1a1ad;
  --accent1: #7c5cff;
  --accent2: #3d7bff;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: white;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: #b9a8ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* Mock window */
.hero-shot { max-width: 720px; margin: 0 auto; perspective: 1200px; }
.window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: rotateX(4deg);
  transition: transform 0.4s;
  text-align: left;
}
.hero-shot:hover .window { transform: rotateX(0deg); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.close { background: #ff5f57; }
.tl.min { background: #febc2e; }
.tl.max { background: #28c840; }
.window-title {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.window-body { padding: 48px 32px; text-align: center; }
.mock-dock {
  display: inline-flex;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.mock-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c);
  opacity: 0.85;
  transition: transform 0.2s;
}
.mock-icon:hover { transform: scale(1.3) translateY(-6px); }
.mock-text { color: var(--muted); font-size: 15px; }

/* Sections */
.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 18px; }

/* Pillars */
.pillars { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.pillar p { color: var(--muted); font-size: 15px; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* Developers */
.developers { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.code-window {
  max-width: 640px;
  margin: 0 auto;
  background: #0d0d12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  text-align: left;
}
.code-window pre {
  padding: 28px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.7;
}
.code-window code { color: #d4d4d8; }
.kw { color: #c792ea; }
.str { color: #9ece6a; }
.fn { color: #7dcfff; }
.dev-cta { text-align: center; margin-top: 36px; }

/* Download */
.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 24px;
}
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.download-card h3 { font-size: 20px; margin-bottom: 10px; }
.download-card p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.req-note { text-align: center; color: var(--muted); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 0; background: var(--bg-soft); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

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

/* Responsive */
@media (max-width: 860px) {
  .pillar-grid, .feature-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; }
  section { padding: 64px 0; }
}
