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

:root {
  --green:      #4CAF50;
  --green-dark: #388E3C;
  --green-glow: rgba(76, 175, 80, 0.18);
  --bg:         #0f0f0f;
  --bg2:        #161616;
  --bg3:        #1e1e1e;
  --surface:    #242424;
  --border:     rgba(255,255,255,0.08);
  --text:       #f0f0f0;
  --text2:      #888;
  --text3:      #555;
  --radius:     14px;
  --radius-lg:  22px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}
.hero-bg-blur {
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(76,175,80,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}
.badge {
  display: inline-block;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(76,175,80,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.highlight { color: var(--green); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76,175,80,0.3);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text2);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.hero-version {
  font-size: 13px;
  color: var(--text3);
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.phone-mockup {
  width: 240px;
  background: var(--bg3);
  border-radius: 36px;
  border: 2px solid var(--border);
  padding: 24px 16px;
  box-shadow:
    0 0 0 1px rgba(76,175,80,0.12),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.phone-screen {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 8px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phone-screenshot {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* ===== SECTIONS COMMON ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(76,175,80,0.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-glow);
  border: 1px solid rgba(76,175,80,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== DOWNLOAD ===== */
.download { background: var(--bg); }

.version-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
  max-width: 560px;
}
.version-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.version-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
}
.version-number {
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}
.version-platform {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
}

/* info general — border-top arriba, SIN border-bottom */
.version-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.version-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
}
.version-meta-item svg {
  flex-shrink: 0;
  color: var(--green);
}

/* divisor explícito entre info y changelog */
.version-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* changelog */
.changelog-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.changelog-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
}
.changelog-header svg { color: var(--green); }
.changelog-box {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  background: rgba(76,175,80,0.05);
  border: 1px solid rgba(76,175,80,0.12);
  border-radius: 10px;
  padding: 12px 14px;
}

/* botones descarga */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.btn-download {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(76,175,80,0.2);
}
.btn-download:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76,175,80,0.3);
}
.btn-download-alt {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-download-alt:hover {
  background: #2e2e2e;
  box-shadow: none;
  border-color: rgba(255,255,255,0.15);
}
.btn-download-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.btn-download-sub {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  font-weight: 400;
  margin-top: 2px;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.screenshot-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screenshot-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.screenshot-card figcaption {
  font-size: 13px;
  color: var(--text2);
}

/* ===== INSTALL STEPS ===== */
.install {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.steps {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin-top: 48px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-number {
  flex: 0 0 42px;
  height: 42px;
  background: var(--green-glow);
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.step-content { padding-bottom: 8px; }
.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.step-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}
.step-connector {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin-left: 20px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 14px;
  color: var(--text2);
}
.footer-legal {
  font-size: 12px;
  color: var(--text3);
}

/* ===== FOOTER AUTHOR ===== */
.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-author:hover {
  color: var(--text);
}
.footer-author svg {
  flex-shrink: 0;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
    gap: 48px;
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 200px; }
  .features-grid { grid-template-columns: 1fr; }
  .version-info { flex-wrap: wrap; }
}
