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

/* ── Tokens ── */
:root {
  --bg: #0b0f14;
  --bg-raised: #10161e;
  --bg-card: rgba(18, 25, 34, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf1;
  --text-muted: #8a95a5;
  --accent: #7cc4ff;
  --accent-strong: #5ca7ff;
  --accent-glow: rgba(92, 167, 255, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; background: var(--bg); }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Liberation Mono', monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* ── Background glow ── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(92, 167, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(180, 92, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(92, 255, 200, 0.10), transparent 60%);
  filter: blur(40px);
}

#content {
  position: relative;
  z-index: 1;
}

/* ── Layout ── */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo-version {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(92, 167, 255, 0.14);
  border: 1px solid rgba(92, 167, 255, 0.28);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.logo-version:empty {
  display: none;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--border-strong);
}

/* ── Hero ── */
.hero {
  padding: 72px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, #b48dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 70px var(--accent-glow);
}
.hero .tagline {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, border-color 0.12s;
  border: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #061018;
  box-shadow: 0 6px 24px rgba(92, 167, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 10px 32px rgba(92, 167, 255, 0.5);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}
.btn--compact {
  padding: 10px 14px;
  font-size: 13px;
}

/* ── Screenshot ── */
.screenshot-wrap {
  padding: 40px 24px 60px;
}
.screenshot {
  position: relative;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 90px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 80px -10px var(--accent-glow);
  background: var(--bg-raised);
  cursor: zoom-in;
}
.screenshot img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}
.screenshot--hero {
  max-width: 1040px;
}

/* Hover overlay: circular badge with expand/fullscreen icon */
.screenshot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4M6 14H2v-4M14 2l-5 5M2 14l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}
.screenshot:hover::after {
  opacity: 1;
}

/* ── Lightbox (click-to-fullscreen) ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}
.lightbox--open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 6px;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 4px 10px;
}
.lightbox-close:hover {
  opacity: 1;
}

/* ── Sections ── */
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(92, 167, 255, 0.12);
  border: 1px solid rgba(92, 167, 255, 0.25);
}
section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  max-width: 680px;
}

/* ── Features ── */
.features {
  padding: 72px 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.feature {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(22, 30, 41, 0.85);
}
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(92, 167, 255, 0.12);
  color: var(--accent);
  margin-bottom: 14px;
  border: 1px solid rgba(92, 167, 255, 0.2);
}
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── How it works ── */
.how {
  padding: 72px 24px;
}
.steps {
  list-style: none;
  display: grid;
  gap: 20px;
  counter-reset: step;
  max-width: 820px;
}
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #061018;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.steps p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Download ── */
.download {
  padding: 60px 24px 80px;
}
.download-card {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 100% 100% at 0% 0%, rgba(92, 167, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(180, 92, 255, 0.14), transparent 60%),
    rgba(18, 25, 34, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.download-card h2 { margin-bottom: 10px; max-width: 520px; }
.download-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
}
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  padding: 36px 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.footer-left img { border-radius: 6px; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .features, .how { padding: 56px 24px; }
  .download-card {
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
  }
  .steps li { padding: 18px; }
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}
