/* Rebound Landing & Download Portal Stylesheet */
:root {
  --bg-dark: #091310;
  --bg-card: rgba(18, 59, 50, 0.35);
  --bg-card-hover: rgba(26, 77, 65, 0.55);
  --border-glow: rgba(74, 222, 128, 0.25);
  --border-glow-active: rgba(74, 222, 128, 0.6);
  --emerald-primary: #10b981;
  --emerald-glow: #34d399;
  --emerald-accent: #059669;
  --mint-light: #a7f3d0;
  --cyan-accent: #06b6d4;
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.2);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Animated Gradient Blobs & Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0891b2 0%, transparent 70%);
  bottom: 10%;
  right: -150px;
  animation-delay: -6s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 19, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  transition: transform 0.3s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: rotate(-8deg) scale(1.1);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--emerald-glow);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.os-detector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-glow);
  padding: 8px 18px;
  border-radius: 30px;
  color: var(--emerald-glow);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
  100% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.35); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--mint-light) 50%, var(--emerald-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* Download Cards Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 70px;
}

.dl-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: left 0.6s ease;
}

.dl-card:hover::before {
  left: 100%;
}

.dl-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.dl-card.featured {
  border-color: var(--emerald-glow);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(9, 19, 16, 0.7));
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-accent));
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.platform-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: var(--emerald-glow);
}

.dl-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dl-card p.meta-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.specs-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-list li svg {
  width: 14px;
  height: 14px;
  fill: var(--emerald-glow);
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary), var(--emerald-accent));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--emerald-glow);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--emerald-glow);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Interactive Sandbox Showcase Section */
.sandbox-section {
  padding: 60px 0 90px;
  text-align: center;
}

.section-head {
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--emerald-glow);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

/* Interactive Demo Container */
.demo-window {
  background: #0d1b17;
  border: 1px solid var(--border-glow-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  overflow: hidden;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-titlebar {
  background: #07110d;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

.demo-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

@media (max-width: 850px) {
  .demo-body {
    grid-template-columns: 1fr;
  }
}

.demo-controls {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
}

.demo-controls h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--mint-light);
}

.slider-group {
  margin-bottom: 24px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--emerald-primary);
  height: 6px;
  border-radius: 3px;
  background: #1e3a33;
}

.demo-output-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-bar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-track {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 4px;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--emerald-accent), var(--emerald-glow));
  border-radius: 4px;
  transition: height 0.4s ease;
}

.day-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Features Grid Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 90px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(16, 185, 129, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Installation Guide Accordion */
.guide-section {
  max-width: 800px;
  margin: 0 auto 90px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--emerald-glow);
}

.accordion-body {
  padding: 0 24px 24px;
  display: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active {
  border-color: var(--border-glow);
}

.step-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* QR Code Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f241e;
  border: 1px solid var(--border-glow-active);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin: 20px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.qr-box svg, .qr-box img {
  width: 200px;
  height: 200px;
  display: block;
}

/* Floating Download Bar */
.floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(12, 28, 23, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow-active);
  border-radius: 40px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 99;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.floating-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-info img {
  width: 28px;
  height: 28px;
}

.floating-info span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .floating-bar {
    width: 90%;
    justify-content: space-between;
  }
}
