:root {
  --accent: #6366f1;
  --accent-light: #818cf8;
  --bg-page: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-hover: #1b253d;
  --border-subtle: #1e293b;
  --border-strong: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(99, 102, 241, 0.18) 0%,
    transparent 55%
  );
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: #ffffff;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.16);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
}

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

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

/* Hero Section */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 140ms ease, filter 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Screenshot Showcase */
.screenshot-frame {
  max-width: 1020px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.16);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0e1525;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--border-strong);
}

.window-dot.red {
  background: #ef4444;
}

.window-dot.amber {
  background: #f59e0b;
}

.window-dot.green {
  background: #10b981;
}

.window-title {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Features Section */
.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16.5px;
}

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

.feature-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform 150ms ease, border-color 150ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.feature-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header .feature-icon {
  margin-bottom: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: var(--accent-light);
}

.status-badge.muted {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.card-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 600;
}

.feature-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-card.teaser {
  border-style: dashed;
}

@media (max-width: 820px) {
  .feature-card.featured {
    grid-template-columns: 1fr;
  }
}

/* Subpage Content (Privacy & Support) */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.page-card h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.page-updated {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.page-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: var(--text-primary);
}

.page-card p,
.page-card li {
  color: var(--text-secondary);
}

.page-card ul {
  padding-left: 20px;
}

.page-card li + li {
  margin-top: 8px;
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
}

.shortcuts-table th {
  color: var(--text-primary);
  font-weight: 600;
}

.shortcuts-table td {
  color: var(--text-secondary);
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 12.5px;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    height: auto;
    padding: 14px 0;
  }
  .page-card {
    padding: 24px 20px;
  }
}
