:root {
  --bg: #07090d;
  --bg-elevated: #0c1118;
  --surface: #111821;
  --surface-hover: #16202c;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #94a3b8;
  --accent: #48e0b4;
  --accent-dim: rgba(72, 224, 180, 0.1);
  --accent-glow: rgba(72, 224, 180, 0.22);
  --gradient: linear-gradient(135deg, #48e0b4 0%, #67a7ff 100%);
  --radius: 12px;
  --radius-lg: 18px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 18% -10%, rgba(72, 224, 180, 0.1), transparent 65%),
    radial-gradient(ellipse 60% 50% at 95% 18%, rgba(103, 167, 255, 0.08), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }

::selection { color: #06100d; background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.nav.scrolled {
  background: rgba(7, 9, 13, 0.8);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-wordmark { width: 160px; height: auto; filter: drop-shadow(0 0 18px var(--accent-glow)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.925rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient);
  color: #041012;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 5.5rem) 0 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: var(--nav-h) 0 auto;
  height: 580px;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(72, 224, 180, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  max-width: 11ch;
}

.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin-top: 1.35rem;
  color: #77869a;
  font-size: 0.77rem;
}

.hero-note span { color: var(--accent); }

.product-preview {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: #090e14;
  overflow: hidden;
}

.product-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.035), transparent 35%);
}

.product-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease;
}

.product-preview:hover img { transform: scale(1.012); }

.hero-preview {
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 80px rgba(72,224,180,.06);
}

.preview-badge {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .55rem .7rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #a9b6c5;
  background: rgba(7,9,13,.84);
  backdrop-filter: blur(14px);
  font: .62rem var(--mono);
}

.preview-badge b { color: var(--accent); font-weight: 500; }

.product-dashboard {
  box-shadow: 0 26px 60px rgba(0,0,0,.3);
}

.proof-strip {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-strip div { display: flex; align-items: baseline; justify-content: center; gap: .65rem; }
.proof-strip div + div { border-left: 1px solid var(--border); }
.proof-strip strong { color: var(--text); font: 600 1rem var(--mono); }
.proof-strip span { color: #74849a; font-size: .78rem; }

/* ── Sections ── */
section { padding: 6.5rem 0; scroll-margin-top: var(--nav-h); }

.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* ── Product card ── */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.product-card {
  background: linear-gradient(145deg, rgba(22,32,44,.92), rgba(13,18,25,.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.product-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card .desc {
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
}

.product-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Capabilities grid ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cap-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,26,36,.88), rgba(13,18,25,.92));
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.cap-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-2px);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.cap-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cap-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.values {
  display: grid;
  gap: 1rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.value-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.value-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Contact ── */
.contact-section {
  text-align: center;
}

.contact-box {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-email {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.contact-email:hover { text-decoration: underline; }

/* ── Download page ── */
.download-hero {
  padding: calc(var(--nav-h) + 5rem) 0 3rem;
  text-align: center;
}

.download-hero h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.download-hero p {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.download-section { padding-top: 2rem; }

.installer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.installer-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18,26,36,.92), rgba(13,18,25,.96));
}

.installer-card h2 {
  margin-top: .8rem;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.installer-card p,
.steps {
  color: var(--muted);
  font-size: .92rem;
}

.installer-card p { margin: .55rem 0 1.1rem; }
.installer-card .btn { width: 100%; margin-bottom: 1.25rem; }

.os-pill {
  display: inline-flex;
  padding: .35rem .55rem;
  border: 1px solid rgba(72,224,180,.25);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-dim);
  font: 600 .68rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.steps {
  padding-left: 1.15rem;
}

.steps li + li { margin-top: .55rem; }

code {
  color: #c9f7ec;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  margin: .65rem 0 1rem;
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(4,8,12,.65);
}

.download-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(72,224,180,.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--accent-dim);
}

.download-note strong { color: var(--text); }
.download-note h2 { margin-bottom: .45rem; font-size: 1.25rem; }
.download-note p + pre,
.download-note pre + p { margin-top: .8rem; }

.hash-line {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .78rem;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ── Mobile ── */
@media (max-width: 900px) {
  .hero-grid,
  .product-showcase,
  .about-grid,
  .installer-grid { grid-template-columns: 1fr; }

  .hero-copy { text-align: center; }
  .hero h1, .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-preview { max-width: 680px; width: 100%; margin-inline: auto; }

  .cap-grid { grid-template-columns: 1fr 1fr; }

  .product-dashboard { order: -1; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(7, 9, 13, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }

  .menu-toggle { display: block; }

  .hero { padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-note { display: none; }
  .proof-strip { grid-template-columns: 1fr; gap: 1rem; }
  .proof-strip div + div { border-left: 0; }

  .cap-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
