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

:root {
  --red: #c0392b;
  --red-dark: #7b1d1d;
  --red-glow: rgba(192, 57, 43, 0.35);
  --bg: #040203;
  --surface: rgba(13, 8, 10, 0.9);
  --border: rgba(192, 57, 43, 0.15);
  --text: #f0e8e8;
  --muted: #6b4a4e;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

/* ── Background ── */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(192,57,43,0.18) 0%, transparent 70%);
}

.bg-drip {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.drip {
  position: absolute; top: -40px;
  width: 2px; border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, rgba(192,57,43,0.7), transparent);
  animation: drip-fall linear infinite;
}
.d1 { left: 12%; height: 180px; animation-duration: 6s; animation-delay: 0s; }
.d2 { left: 28%; height: 120px; animation-duration: 9s; animation-delay: 2s; width: 1.5px; }
.d3 { left: 52%; height: 200px; animation-duration: 7.5s; animation-delay: 1s; }
.d4 { left: 71%; height: 140px; animation-duration: 8s; animation-delay: 3.5s; width: 1.5px; }
.d5 { left: 89%; height: 160px; animation-duration: 6.5s; animation-delay: 0.5s; }

@keyframes drip-fall {
  0% { transform: translateY(-40px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(4, 2, 3, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none;
}
.logo img { border-radius: 6px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Shared ── */
section { position: relative; z-index: 1; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
  padding: 4px 12px; border: 1px solid rgba(192,57,43,0.25); border-radius: 20px;
  background: rgba(192,57,43,0.06);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 520px; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 14px; margin-bottom: 28px;
  background: rgba(192,57,43,0.04);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #27ae60;
  box-shadow: 0 0 6px #27ae60; animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-title {
  font-size: clamp(44px, 7vw, 82px); font-weight: 900; line-height: 1.05;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, #e74c3c, #c0392b, #7b1d1d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 560px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #7b1d1d, #c0392b);
  color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(192,57,43,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(192,57,43,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 13px 24px; border-radius: 12px;
  border: 1px solid var(--border); color: var(--muted); font-weight: 600;
  font-size: 14px; text-decoration: none; transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(192,57,43,0.4); }

/* ── App Mockup ── */
.hero-mockup {
  width: 100%; max-width: 820px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(192,57,43,0.2);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(192,57,43,0.12);
  background: #0a0507;
}
.mockup-titlebar {
  height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: #080305; border-bottom: 1px solid rgba(192,57,43,0.1);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.titlebar-name {
  flex: 1; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted);
  margin-left: -80px;
}
.mockup-body { display: flex; height: 340px; }
.mockup-sidebar {
  width: 150px; flex-shrink: 0; padding: 14px 8px;
  background: rgba(6,4,8,0.98); border-right: 1px solid rgba(192,57,43,0.08);
  display: flex; flex-direction: column; gap: 2px;
}
.mock-item {
  padding: 8px 10px; border-radius: 8px; font-size: 11px; font-weight: 500;
  color: var(--muted); cursor: pointer;
}
.mock-item.active {
  background: rgba(192,57,43,0.08); color: var(--text);
  border: 1px solid rgba(192,57,43,0.12);
}
.mockup-content {
  flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.mock-instance {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; background: rgba(13,8,10,0.6);
  border: 1px solid rgba(192,57,43,0.06);
}
.mock-instance.active-inst { border-color: rgba(192,57,43,0.2); background: rgba(192,57,43,0.04); }
.inst-icon { font-size: 18px; }
.inst-info { flex: 1; }
.inst-name { font-size: 12px; font-weight: 600; color: var(--text); }
.inst-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.inst-play {
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 7px;
  background: linear-gradient(135deg, #7b1d1d, #c0392b); color: #fff;
}
.mock-log {
  margin-top: auto; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(192,57,43,0.1);
}
.log-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; font-size: 10px; font-weight: 600; color: var(--muted);
  background: #080305; border-bottom: 1px solid rgba(192,57,43,0.08);
}
.log-dot { width: 6px; height: 6px; border-radius: 50%; background: #27ae60; box-shadow: 0 0 4px #27ae60; }
.log-line {
  padding: 2px 10px; font-family: var(--mono); font-size: 9.5px;
  color: #b0a8a8; background: #040203;
}
.log-line.warn { color: #e67e22; }

/* ── Features ── */
.features {
  padding: 100px 24px; max-width: 1100px; margin: 0 auto; text-align: center;
}
.features .section-label, .features .section-title { display: block; margin-left: auto; margin-right: auto; }
.features .section-title { margin-bottom: 56px; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  text-align: left;
}
.feature-card {
  padding: 24px; border-radius: 14px;
  background: rgba(13,8,10,0.7); border: 1px solid rgba(192,57,43,0.1);
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(192,57,43,0.3); transform: translateY(-3px); }
.feat-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.feature-card code {
  font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 4px;
  background: rgba(192,57,43,0.12); color: var(--red);
}

/* ── Download ── */
.download {
  padding: 100px 24px; max-width: 800px; margin: 0 auto; text-align: center;
}
.download .section-title { margin-bottom: 8px; }
.download .section-sub { margin: 0 auto 48px; }
.download-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 600px) { .download-cards { grid-template-columns: 1fr; } }
.dl-card {
  padding: 28px; border-radius: 16px;
  background: rgba(13,8,10,0.8); border: 1px solid rgba(192,57,43,0.12);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  text-align: left;
}
.dl-card.featured { border-color: rgba(192,57,43,0.35); background: rgba(192,57,43,0.04); }
.dl-os { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--text); }
.dl-version { font-size: 13px; font-weight: 700; color: var(--text); }
.dl-size { font-size: 11px; color: var(--muted); margin-top: 3px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 7px; width: 100%; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
  background: linear-gradient(135deg, #7b1d1d, #c0392b); color: #fff;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,57,43,0.45); }
.dl-note { font-size: 12px; color: var(--muted); }
.dl-note strong { color: var(--text); }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(192,57,43,0.08);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .mockup-sidebar { display: none; }
  .mockup-body { height: 280px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

