/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #08080a;
  --bg-elevated: #0f0f12;
  --bg-surface: #141417;
  --bg-hover: #1a1a1f;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #ededef;
  --text-secondary: #8a8a8f;
  --text-tertiary: #5c5c63;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.15s ease;
}

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

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

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

code {
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  background: var(--bg-surface);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.85em;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--white);
  color: #08080a;
  border: 1px solid var(--white);
  font-weight: 600;
}

.btn-primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: #08080a;
}

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

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

.btn-nav {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 450;
  transition: color var(--transition);
}

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

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 160px 24px 100px;
  overflow: hidden;
}

.hero .container {
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: left;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 450;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Hero Screenshot */
.hero-image {
  margin-top: 80px;
  position: relative;
  padding: 60px 0;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 120%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.015) 50%, transparent 75%);
  pointer-events: none;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.08) 70%, transparent 90%);
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 50%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 100%);
  pointer-events: none;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 255, 255, 0.03),
    0 -10px 40px rgba(255, 255, 255, 0.02);
}

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

.hero-image-placeholder {
  display: none;
  padding: 120px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.no-img .hero-screenshot {
  display: none;
}

.no-img .hero-image-placeholder {
  display: block;
}

/* ========== FEATURES ========== */
.features {
  padding: 120px 24px;
}

.section-head {
  text-align: left;
  margin-bottom: 72px;
}

.section-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  transition: background var(--transition);
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-card-inner {
  padding: 36px 28px;
}

.feature-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== TECH BAR ========== */
.tech-section {
  padding: 60px 24px;
}

.tech-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-item {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 450;
  letter-spacing: 0.01em;
}

.tech-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}

/* ========== CTA ========== */
.cta-section {
  padding: 60px 24px;
}

.cta-card {
  text-align: left;
  padding: 72px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
}

.cta-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--white);
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 400px;
}

/* ========== DOWNLOAD ========== */
.download {
  padding: 120px 24px;
}

.download-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
  margin-bottom: 48px;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
}

.download-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.download-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.platform-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.platform-label svg {
  color: var(--text-secondary);
}

.platform-label h3 {
  margin-bottom: 0;
}

.download-divider {
  height: 1px;
  background: var(--border);
}

.download-meta {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  font-weight: 500;
}

.tag-soon {
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

.download-row .btn {
  flex-shrink: 0;
  min-width: 180px;
  text-align: center;
  justify-content: center;
}

/* Install Steps */
.install-steps {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.step span:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--border);
}

.alt-install {
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ========== FOOTER ========== */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

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

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

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

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

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-mobile-btn {
    display: flex;
  }

  .nav-mobile-btn.open span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
  }

  .nav-mobile-btn.open span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .download-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .download-meta {
    margin-left: 0;
  }

  .install-steps {
    flex-direction: column;
    gap: 12px;
  }

  .step-line {
    width: 1px;
    height: 20px;
  }

  .cta-card {
    padding: 48px 24px;
  }

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

  .tech-bar {
    gap: 12px;
  }
}

@media (max-width: 1000px) and (min-width: 769px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeIn 0.7s ease-out;
}

.hero-image {
  animation: fadeIn 0.9s ease-out 0.15s both;
}
