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

:root {
  --bg-primary: #030812;
  --bg-surface: #0B1622;
  --bg-elevated: #111D2A;
  --bg-card: #15283B;
  --stroke: #1E3144;
  --stroke-hover: #2C4866;
  --text-primary: #F2F8FF;
  --text-secondary: #B7CCE1;
  --text-muted: #7D9AB6;
  --accent: #5DE6FF;
  --accent-strong: #9FEFFF;
  --accent-soft: rgba(93, 230, 255, 0.08);
  --accent-glow: rgba(93, 230, 255, 0.12);
  --green: #7BF7D0;
  --orange: #FF9B54;
  --purple: #9A8CFF;
  --font-display: 'Segoe UI Variable Display', 'Inter', system-ui, -apple-system, sans-serif;
  --font-text: 'Segoe UI Variable Text', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  --max-width: 1120px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-text);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-strong);
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(3, 8, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.15s;
}

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

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 230, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 200;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1A3550, #15283B);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: 0 0 24px rgba(93, 230, 255, 0.1);
}

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

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-color: var(--stroke-hover);
}

/* ── Sections ── */

.section {
  padding: 100px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Feature Grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--stroke-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon.cpu { background: rgba(93, 230, 255, 0.1); color: var(--accent); }
.feature-icon.mem { background: rgba(123, 247, 208, 0.1); color: var(--green); }
.feature-icon.disk { background: rgba(255, 155, 84, 0.1); color: var(--orange); }
.feature-icon.net { background: rgba(154, 140, 255, 0.1); color: var(--purple); }
.feature-icon.chart { background: rgba(93, 230, 255, 0.1); color: var(--accent); }
.feature-icon.local { background: rgba(123, 247, 208, 0.1); color: var(--green); }

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Docs ── */

.docs-content {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.docs-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.docs-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.docs-card pre {
  background: var(--bg-primary);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.6;
}

.docs-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.docs-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── FAQ ── */

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--stroke-hover);
}

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Download ── */

.download-section {
  text-align: center;
  padding: 100px 32px;
  position: relative;
}

.download-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 230, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 32px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* ── Divider ── */

.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: var(--stroke);
}

/* ── Screenshots ── */

.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(93, 230, 255, 0.04);
  transition: box-shadow 0.3s;
}

.screenshot-frame:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(93, 230, 255, 0.08);
}

.screenshot-frame img {
  width: 100%;
  display: block;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 8, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 32px;
}

.lightbox.open {
  display: flex;
}

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

.screenshot-frame {
  cursor: zoom-in;
}

/* ── Animations ── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  .nav-inner {
    padding: 0 16px;
    height: 52px;
  }

  .nav-brand {
    font-size: 17px;
    gap: 8px;
  }

  .nav-brand img {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 80px 24px 40px;
    min-height: auto;
  }

  .hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 4px;
  }

  .hero-subtitle {
    font-size: 9px;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn {
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }

  .section {
    padding: 48px 24px;
    text-align: center;
  }

  .section-description {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-card,
  .docs-card,
  .faq-item {
    text-align: left;
  }

  .section-eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .section-description {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .feature-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .feature-description {
    font-size: 13px;
  }

  .docs-content {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .docs-card {
    padding: 18px;
  }

  .docs-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .docs-card p {
    font-size: 13px;
  }

  .docs-card pre {
    font-size: 11px;
    padding: 12px;
  }

  .faq-list {
    margin-top: 28px;
    gap: 8px;
  }

  .faq-question {
    font-size: 13px;
    padding: 14px 16px;
  }

  .faq-item.open .faq-answer {
    max-height: 300px;
  }

  .faq-answer p {
    padding: 0 16px 14px;
    font-size: 13px;
  }

  .download-section {
    padding: 48px 24px;
    text-align: center;
  }

  .screenshot-frame {
    border-radius: var(--radius-md);
  }

  .lightbox {
    padding: 12px;
  }

  .footer {
    padding: 28px 16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .footer-text {
    font-size: 12px;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links a {
    font-size: 12px;
  }

  .divider {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 380px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 22px;
  }
}
