/* ========================================
   HeliosWatch — Main Stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-deep:       #030712;
  --bg-card:       #0d1117;
  --bg-glass:      rgba(255, 120, 30, 0.07);
  --border-glass:  rgba(255, 120, 30, 0.18);
  --accent-solar:  #ff8c1a;
  --accent-glow:   #ff5500;
  --accent-cool:   #38bdf8;
  --text-primary:  #f0f4ff;
  --text-muted:    #8899bb;
  --font-display:  'Orbitron', monospace;
  --font-body:     'Inter', sans-serif;
  --radius:        14px;
  --transition:    0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Animated star background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,100,0,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(56,189,248,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.stars-bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 85%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 40%, rgba(255,200,100,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 10%, rgba(255,200,100,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout wrapper ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe066, #ff8c1a 55%, #cc3300);
  box-shadow: 0 0 18px rgba(255,140,26,0.7), 0 0 40px rgba(255,85,0,0.35);
  flex-shrink: 0;
  animation: pulse-sun 3s ease-in-out infinite;
}

@keyframes pulse-sun {
  0%, 100% { box-shadow: 0 0 18px rgba(255,140,26,0.7), 0 0 40px rgba(255,85,0,0.35); }
  50%       { box-shadow: 0 0 26px rgba(255,140,26,0.9), 0 0 60px rgba(255,85,0,0.55); }
}

.logo span { color: var(--accent-solar); }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent-solar); }

/* ── Hero Section ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-solar);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-solar);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #ff8c1a, #ff5500, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
}

/* ── CTA Buttons ── */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8c1a, #ff5500);
  color: #fff;
  box-shadow: 0 6px 30px rgba(255,100,0,0.45);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 40px rgba(255,100,0,0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--accent-solar);
  color: var(--accent-solar);
  transform: translateY(-2px);
}

/* ── Download Banner ── */
.download-banner {
  background: linear-gradient(135deg, rgba(255,140,26,0.12), rgba(255,85,0,0.08));
  border: 1px solid rgba(255,140,26,0.3);
  border-radius: var(--radius);
  padding: 28px 36px;
  margin: 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.download-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,26,0.15), transparent 70%);
  pointer-events: none;
}

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

.apk-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,140,26,0.5));
}

.download-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

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

.download-meta {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.meta-tag {
  background: rgba(255,140,26,0.12);
  border: 1px solid rgba(255,140,26,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--accent-solar);
  font-weight: 600;
}

.btn-download {
  background: linear-gradient(135deg, #ff8c1a, #cc4400);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 28px rgba(255,100,0,0.4);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px rgba(255,100,0,0.6);
}
.btn-download svg { width: 20px; height: 20px; }

/* ── Section titles ── */
.section { padding: 80px 24px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-solar);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.75;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-solar), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,140,26,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255,100,0,0.12);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,140,26,0.4));
}

.feature-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

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

/* ── Risk Meter ── */
.risk-section {
  padding: 80px 24px;
}

.risk-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 640px;
  margin: 48px auto 0;
}

.risk-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.risk-gauge {
  position: relative;
  height: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
}

.risk-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #22c55e, #facc15, #f97316, #ef4444);
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.risk-level-display {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.risk-level-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 6px;
}

.risk-level-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.risk-sim-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.risk-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.risk-btn:hover { border-color: var(--accent-solar); color: var(--accent-solar); }
.risk-btn.active { background: var(--accent-solar); border-color: var(--accent-solar); color: #fff; }

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 60px 0;
}

.stat-item {
  background: var(--bg-card);
  padding: 28px 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-solar);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── Screenshots / App Preview ── */
.preview-section { padding: 80px 24px; }

.app-preview {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition);
}
.preview-frame:hover { transform: scale(1.02); }

.preview-bar {
  background: rgba(255,140,26,0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preview-dot { width: 8px; height: 8px; border-radius: 50%; }

.preview-body {
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.preview-line {
  height: 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
}
.preview-line.short { width: 60%; }
.preview-line.medium { width: 80%; }
.preview-line.accent {
  width: 45%;
  background: linear-gradient(90deg, rgba(255,140,26,0.5), rgba(255,85,0,0.3));
}

/* ── How It Works ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 52px;
  max-width: 640px;
}

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-solar);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,140,26,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.step-content h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 48px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

footer .logo {
  justify-content: center;
  margin-bottom: 16px;
  display: inline-flex;
}

footer p { margin-top: 8px; }

footer a { color: var(--accent-solar); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,140,26,0.35); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,140,26,0.6); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 70px 20px 60px; }
  .download-banner { flex-direction: column; align-items: flex-start; }
  .app-preview { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
