:root {
  --bg: #0f0f12;
  --bg-elevated: #1a1a1c;
  --bg-panel: #222226;
  --bg-card: #1e1e22;
  --border: #333338;
  --border-soft: #2a2a2e;
  --text: #ececf1;
  --muted: #9a9aa3;
  --accent: #0e639c;
  --accent-hover: #1177bb;
  --accent-soft: #094771;
  --glow: rgba(14, 99, 156, 0.35);
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4fc3f7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--glow), transparent 60%),
    radial-gradient(600px 400px at 90% 20%, rgba(9, 71, 113, 0.25), transparent 50%);
  z-index: -1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 18, 0.75);
  border-bottom: 1px solid transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #f3f3f3;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--bg-panel);
  color: var(--text);
  border-color: #4a4a52;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 34, 38, 0.7);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(120deg, #7ec8f0 0%, #0e639c 45%, #9ad0f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-meta {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  opacity: 0.9;
}

.hero-frame {
  max-width: 720px;
  margin: 0 auto;
  perspective: 1200px;
}

.window {
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  transform: rotateX(4deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1e1e22;
  border-bottom: 1px solid var(--border-soft);
}

.traffic {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a42;
}

.traffic:nth-child(1) { background: #c45c5c; }
.traffic:nth-child(2) { background: #c9a227; }
.traffic:nth-child(3) { background: #3d9b4a; }

.window-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.window-body {
  padding: 20px;
  background: var(--bg-panel);
  min-height: 200px;
}

.fake-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.bubble {
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble.user {
  align-self: stretch;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
  font-style: italic;
  background: transparent;
  padding-left: 12px;
}

.bubble.ai {
  color: var(--text);
  background: transparent;
}

.fake-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
}

.fake-prompt .placeholder {
  color: var(--muted);
  font-size: 0.95rem;
}

.chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e8e8ee;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--mono);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-alt {
  margin: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, rgba(34, 34, 38, 0.35), transparent);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-alt .section-head,
.section-alt .steps {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 auto;
  max-width: 48ch;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: #4a4a52;
  transform: translateY(-2px);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(14, 99, 156, 0.15);
  border: 1px solid rgba(14, 99, 156, 0.35);
  color: #7ec8f0;
  font-size: 1rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.use-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, rgba(14, 99, 156, 0.12), var(--bg-card) 50%);
}

.use-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.use-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Download */
.download {
  padding-bottom: 96px;
}

.download-card {
  padding: 40px 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(14, 99, 156, 0.22), transparent 60%),
    var(--bg-panel);
  text-align: center;
}

.download-card h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.download-lead {
  margin: 0 auto 24px;
  max-width: 54ch;
  color: var(--muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.version-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.download-note {
  margin: 0 auto 20px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.download-list li::before {
  content: "✓ ";
  color: #3d9b4a;
  font-weight: 700;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}

.footer p {
  margin: 4px 0;
}

.footer-copy {
  opacity: 0.75;
  margin-top: 12px !important;
}

/* Responsive */
@media (max-width: 860px) {
  .feature-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .window {
    transform: none;
  }

  .download-card {
    padding: 28px 20px;
  }
}
