/* ═══════════════════════════════════════════════════════════════════
   Helium Website — Main Stylesheet
   TheHobbyist Software © 2025
═══════════════════════════════════════════════════════════════════ */

:root {
  --primary:    #FF6B6B;
  --primary-d:  #E85555;
  --secondary:  #4ECDC4;
  --accent:     #FFE66D;
  --purple:     #6C63FF;
  --dark:       #0F0F1A;
  --dark-2:     #1A1A2E;
  --text:       #1A202C;
  --text-m:     #718096;
  --border:     #E2E8F0;
  --surface:    #FFFFFF;
  --surface-2:  #F7F9FC;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 16px 60px rgba(0,0,0,.14);
  --transition: 0.22s ease;
  --max-w:      1160px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--primary);
  background: rgba(255,107,107,.1);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem; color: var(--text-m);
  max-width: 620px; margin-bottom: 52px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-weight: 600;
  font-size: 14px; text-decoration: none; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,107,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,107,.45);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-m); }

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; margin-top: 24px; }

.btn-download {
  background: var(--dark-2);
  color: white; border-color: rgba(255,255,255,.15);
  padding: 12px 24px;
  gap: 14px;
}
.btn-download:hover { background: #2a2a4a; transform: translateY(-2px); }
.btn-download div { display: flex; flex-direction: column; text-align: left; }
.btn-download small { font-size: 10px; opacity: .7; }
.btn-download strong { font-size: 14px; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-icon { width: 36px; height: 36px; }
.nav-logo-text {
  font-size: 22px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo-dim { opacity: .5; font-weight: 600; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; flex: 1;
}
.nav-links a {
  padding: 6px 12px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--text-m);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.btn-nav-cta {
  background: var(--primary); color: white;
  padding: 8px 18px; border-radius: 9px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  transition: all var(--transition); white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--primary-d); transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text); padding: 4px 8px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 60px 80px;
  max-width: var(--max-w); margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.shape-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FF6B6B, transparent);
  top: -100px; left: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6C63FF, transparent);
  top: 50%; right: -80px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #4ECDC4, transparent);
  bottom: 0; left: 40%;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--purple);
  background: rgba(108,99,255,.1);
  border: 1px solid rgba(108,99,255,.2);
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-m);
}
.hero-meta span::before { margin-right: 4px; }

.hero-screenshot {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.screenshot-frame {
  width: 100%; max-width: 560px;
  background: #1a1a2e;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.screenshot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; background: #0F0F1A;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green  { background: #28C840; }
.screenshot-url { font-size: 12px; color: rgba(255,255,255,.4); margin-left: 10px; }

.screenshot-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 20px;
  color: rgba(255,255,255,.3);
  min-height: 320px;
}
.screenshot-placeholder p { font-size: 14px; font-weight: 600; }
.screenshot-placeholder span { font-size: 11px; opacity: .6; }
.placeholder-icon { width: 72px; height: 72px; opacity: .6; }

.hero-screenshot-badge {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: 14px; padding: 10px 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  align-self: flex-end; margin-right: 20px;
}
.badge-icon { width: 36px; height: 36px; }
.hero-screenshot-badge strong { display: block; font-size: 14px; font-weight: 700; }
.hero-screenshot-badge em { display: block; font-size: 11px; font-style: normal; color: var(--text-m); }

/* ── Proof bar ─────────────────────────────────────────────── */
.proof-bar {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
  padding: 32px 0;
}
.proof-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.proof-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 40px; text-align: center;
}
.proof-item strong { font-size: 1.6rem; font-weight: 800; color: white; }
.proof-item span { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
.proof-divider { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

/* ── Features ──────────────────────────────────────────────── */
.features { padding: 100px 0; background: var(--surface-2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0; transform: translateY(20px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.feature-card.featured {
  grid-column: span 1;
  background: linear-gradient(135deg, #FFF5F5, #FFF0FF);
  border-color: rgba(255,107,107,.2);
}

.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-m); line-height: 1.65; }
.feature-card em { color: var(--primary); font-style: normal; font-weight: 600; }

/* ── Screenshots ───────────────────────────────────────────── */
.screenshots { padding: 100px 0; }

.screenshots-tabs {
  display: flex; gap: 6px; margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 20px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface-2); color: var(--text-m);
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary); color: white;
}

.screenshot-slide { display: none; }
.screenshot-slide.active { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }

.ss-frame {
  background: #0F0F1A; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
  opacity: 0; transform: translateY(20px);
}
.ss-frame.visible { opacity: 1; transform: translateY(0); transition: opacity .4s ease, transform .4s ease; }

.ss-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #050510;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ss-title { font-size: 11px; color: rgba(255,255,255,.35); margin-left: 8px; }

.ss-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 70px 24px;
  color: rgba(255,255,255,.25);
  min-height: 380px;
}
.ss-placeholder p { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.35); }
.ss-placeholder span { font-size: 11px; text-align: center; max-width: 260px; }

.ss-caption { padding-top: 8px; }
.ss-caption h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.ss-caption p { font-size: 14px; color: var(--text-m); line-height: 1.7; }

/* ── How it works ──────────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, white 100%);
}
.how .section-title { text-align: center; }
.how .section-label { display: block; text-align: center; }

.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 56px;
}

.step {
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center; padding: 0 16px;
  opacity: 0; transform: translateY(20px);
}
.step.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 4px 16px rgba(255,107,107,.3);
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-m); line-height: 1.6; }
.step strong { color: var(--primary); }

.step-arrow {
  font-size: 1.5rem; color: var(--border);
  padding: 0 4px; align-self: center; flex-shrink: 0;
  margin-top: -18px;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing { padding: 100px 0; background: var(--dark); }
.pricing .section-title { color: white; }
.pricing .section-label { color: var(--accent); background: rgba(255,230,109,.1); }
.pricing .section-sub { color: rgba(255,255,255,.6); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: stretch;
}

.pricing-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 36px 32px;
  opacity: 0; transform: translateY(20px);
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card.visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.pricing-card:hover { border-color: rgba(255,255,255,.25); transform: translateY(-4px); }

.pricing-highlight {
  background: linear-gradient(135deg, rgba(255,107,107,.15), rgba(108,99,255,.15));
  border-color: var(--primary) !important;
  position: relative;
}
.pricing-highlight:hover { transform: translateY(-6px); }

.pricing-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: rgba(255,230,109,.15);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.pricing-highlight .pricing-badge {
  color: white; background: var(--primary);
}

.pricing-price {
  font-size: 3rem; font-weight: 900; color: white;
  line-height: 1; margin-bottom: 4px;
}
.pricing-period { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }

.pricing-features { list-style: none; margin-bottom: 8px; }
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px; color: rgba(255,255,255,.8);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li:first-child { font-weight: 700; color: white; }

.pricing-note {
  text-align: center; margin-top: 36px;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.pricing-note a { color: var(--accent); text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; }

/* ── Download ──────────────────────────────────────────────── */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, #fff 100%);
}
.download-inner {
  display: flex; align-items: center; gap: 60px;
}
.download-icon-wrap {
  flex-shrink: 0;
  width: 160px; height: 160px;
  background: linear-gradient(135deg, #FF6B6B, #FFE66D);
  border-radius: 36px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(255,107,107,.3);
}
.download-icon { width: 110px; height: 110px; }

.download-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.download-text p { color: var(--text-m); margin-bottom: 28px; font-size: 15px; }

.download-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.download-req { font-size: 12px; color: var(--text-m); margin-top: 16px; margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 60px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.6; }
.footer-brand strong { color: rgba(255,255,255,.9); }
.footer-logo { height: 36px; object-fit: contain; filter: brightness(0) invert(1); opacity: .8; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; font-size: 12px; color: rgba(255,255,255,.35);
}

/* ── Inner page shared ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 120px 0 64px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: white; margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; }

.page-body { max-width: 820px; margin: 0 auto; padding: 64px 24px 100px; }
.page-body h2 { font-size: 1.5rem; font-weight: 700; margin: 48px 0 14px; color: var(--text); }
.page-body h2:first-of-type { margin-top: 0; }
.page-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.page-body p { font-size: 15px; color: var(--text-m); line-height: 1.8; margin-bottom: 16px; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 20px; }
.page-body li { font-size: 15px; color: var(--text-m); line-height: 1.8; margin-bottom: 6px; }
.page-body strong { color: var(--text); }
.page-body a { color: var(--primary); }
.page-body a:hover { text-decoration: underline; }
.page-body .callout {
  background: rgba(255,107,107,.07); border-left: 3px solid var(--primary);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0;
}
.page-body .callout p { margin: 0; font-size: 14px; }
.page-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.page-last-updated { font-size: 12px; color: var(--text-m); margin-bottom: 36px; }

/* ── Guide specifics ───────────────────────────────────────── */
.guide-toc {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  margin-bottom: 48px;
}
.guide-toc h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.guide-toc ol { padding-left: 20px; }
.guide-toc li { font-size: 14px; margin-bottom: 5px; }
.guide-toc a { color: var(--primary); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-step {
  display: flex; gap: 18px; align-items: flex-start;
  margin-bottom: 24px;
}
.guide-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.guide-step-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.guide-step-body p { font-size: 14px; color: var(--text-m); margin: 0; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin: 0 2px;
}
.badge-key { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-family: monospace; }
.badge-ui { background: rgba(255,107,107,.1); color: var(--primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 100px 24px 60px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-screenshot { align-items: center; }
  .hero-screenshot-badge { align-self: center; margin-right: 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px 24px; box-shadow: var(--shadow); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px; }
  .nav-hamburger { display: block; }
  .btn-nav-cta { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .screenshot-slide.active { grid-template-columns: 1fr; }
  .ss-caption { order: -1; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .pricing-grid { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; text-align: center; }
  .download-btns { justify-content: center; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .proof-inner { flex-direction: column; gap: 20px; }
  .proof-divider { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
  .pricing-card { padding: 24px 20px; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
