:root {
  --bg-color: #030712;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;

  --card-bg: rgba(15, 23, 42, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-bg: rgba(30, 41, 59, 0.85);
  --card-hover-border: rgba(255, 255, 255, 0.2);

  /* Shared container width so showcase and download cards match identically */
  --content-width: 820px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px 36px 24px;
  position: relative;
  overflow-x: hidden;
}

/* Seamless ambient background glow */
.ambient-glow {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 420px;
  background: radial-gradient(circle at 50% 45%,
      rgba(56, 189, 248, 0.16) 0%,
      rgba(56, 189, 248, 0.07) 35%,
      rgba(56, 189, 248, 0.02) 60%,
      rgba(3, 7, 18, 0) 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   SECTION 1: HERO + SHOWCASE
   ========================================================= */
.hero-section {
  width: 100%;
  max-width: var(--content-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 48px;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin-bottom: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

h1 {
  font-size: 4.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1;
}

p.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Primary Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 14px;
  background: var(--accent);
  color: #030712;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.4);
}

.cta-primary svg {
  width: 18px;
  height: 18px;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-secondary:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
}

.cta-secondary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Screenshot Showcase */
.showcase-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.showcase-frame {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(2, 6, 23, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
  opacity: 0.8;
}

.dot.yellow {
  background: #eab308;
  opacity: 0.8;
}

.dot.green {
  background: #22c55e;
  opacity: 0.8;
}

.window-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.screenshot-container {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070b14;
}

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

.screenshot-placeholder {
  padding: 60px 24px;
  color: #64748b;
  font-size: 0.95rem;
}

.screenshot-placeholder code {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.screenshot-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumb-btn {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-btn:hover {
  color: #ffffff;
  border-color: var(--card-hover-border);
}

.thumb-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent);
}

/* =========================================================
   SECTION 2: DOWNLOADS (ACCORDION - MATCHED TO SHOWCASE WIDTH)
   ========================================================= */
.downloads-section {
  width: 100%;
  max-width: var(--content-width);
  padding-top: 48px;
  padding-bottom: 32px;
  z-index: 1;
}

.section-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.accordion-item:hover {
  border-color: var(--card-hover-border);
}

.accordion-item.open {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.3);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
}

.os-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.os-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.os-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.os-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.os-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.recommended-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #030712;
}

.os-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.chevron {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.open .chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Expandable Drawer Content */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.open .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-content {
  overflow: hidden;
  padding: 0 26px;
}

.accordion-item.open .accordion-content {
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

.real-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #030712;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.real-download-btn:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.real-download-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  z-index: 1;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #64748b;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  font-weight: 500;
}

footer a:hover {
  color: #f8fafc;
}

footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .hero-section {
    padding-top: 40px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .screenshot-container {
    min-height: 220px;
  }

  .accordion-header {
    padding: 18px;
  }

  .accordion-content {
    padding: 0 18px;
  }
}