: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: 1120px;
}

*,
*::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);
}

.brand-icon {
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.app-icon {
  display: block;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(14, 99, 156, 0.15);
}

.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: 72px 24px 24px;
  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(1.85rem, 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: 54ch;
  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;
  color: var(--muted);
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Screenshot frames */
.feature-shot {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(14, 99, 156, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* 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,
.section-alt .use-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.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 rows (screenshot-led) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.feature + .feature {
  border-top: 1px solid var(--border-soft);
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-flip .feature-shot {
  order: 1;
}

.kicker {
  margin: 0 0 10px;
  color: #7ec8f0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

kbd {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 0.85em;
  text-transform: none;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-copy > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.feature-copy em {
  color: var(--text);
  font-style: italic;
}

.feature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-points li {
  padding-left: 22px;
  position: relative;
}

.feature-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3d9b4a;
  font-weight: 700;
}

/* 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 + BYOK cards */
.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;
}

.byok-note {
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* 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;
}

/* 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;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(10, 10, 13, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .feature-flip .feature-copy {
    order: 1;
  }

  .feature-flip .feature-shot {
    order: 2;
  }
}

@media (max-width: 700px) {
  /* Wide desktop captures are illegible when squeezed into a phone column:
     go full-bleed and let the user swipe/pan them at a readable size. */
  .feature-shot {
    margin: 0 -24px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .feature-shot::-webkit-scrollbar {
    display: none;
  }

  .feature-shot img {
    width: 640px;
    max-width: none;
    cursor: default;
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

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