:root {
  color-scheme: dark;
  --bg: #050709;
  --bg-soft: #0f1116;
  --fg: #f5f7fa;
  --fg-muted: #a0acc5;
  --accent: #4bc8ff;
  --accent-secondary: #9b7bff;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --transition: 200ms ease;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, rgba(75, 200, 255, 0.08), transparent 40%),
    var(--bg);
  color: var(--fg);
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.container.narrow {
  width: min(820px, 92vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    radial-gradient(circle at 15% 20%, rgba(75, 200, 255, 0.35), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(155, 123, 255, 0.32), transparent 50%),
    radial-gradient(circle at 45% 120%, rgba(76, 110, 255, 0.28), transparent 60%),
    rgba(5, 7, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo span {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
}

.primary-nav {
  display: flex;
  gap: 1rem;
}

.primary-nav a {
  color: var(--fg-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--fg);
}

.cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badges {
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex: 0 0 auto;
  width: 180px;
  height: 56px;
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
}

.cta-button {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #2b86ff);
  color: #020305;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(75, 200, 255, 0.35);
}

.cta-button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--fg);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.cta-button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--fg);
}

.cta-button.ghost:hover,
.cta-button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.cta-button.large {
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.hero p {
  color: var(--fg-muted);
  line-height: 1.6;
}

.control-panel {
  margin-top: 2rem;
  padding: 1.6rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

.control-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.control-actions button {
  flex: 1 1 180px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.status-row span:last-child {
  font-weight: 600;
  color: var(--fg);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.2s linear;
}

.hero-cta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.visual {
  position: relative;
  padding: 2.5rem;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(75, 200, 255, 0.3), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(155, 123, 255, 0.2), transparent 65%),
    var(--card-bg);
  border: 1px solid var(--border);
}

.waveform {
  height: 200px;
  background: repeating-linear-gradient(
      90deg,
      rgba(75, 200, 255, 0.6),
      rgba(75, 200, 255, 0.6) 2px,
      transparent 2px,
      transparent 6px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(155, 123, 255, 0.4),
      rgba(155, 123, 255, 0.4) 2px,
      transparent 2px,
      transparent 10px
    );
  border-radius: 12px;
  animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

.visual-caption {
  margin-top: 1.4rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
}

section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.policy-page {
  padding: 6rem 0 5rem;
}

.policy-header {
  margin-bottom: 2rem;
  display: grid;
  gap: 0.75rem;
}

.policy-header h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 0;
}

.policy-meta {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.policy-section {
  margin-bottom: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.policy-section h2 {
  margin: 0;
  font-size: 1.55rem;
}

.policy-section p,
.policy-section ul,
.policy-section li {
  color: var(--fg-muted);
  line-height: 1.7;
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.15rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.policy-section ol {
  list-style: decimal;
}

.policy-section a {
  color: var(--accent);
}

.policy-back {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-weight: 600;
}

.policy-back:hover,
.policy-back:focus-visible {
  color: var(--fg);
}

section h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cards article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition);
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition);
  align-content: start;
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(75, 200, 255, 0.35);
}

.blog-card h3 a {
  color: var(--fg);
  transition: color var(--transition);
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.cards article:hover,
.cards article:focus-within {
  transform: translateY(-4px);
  border-color: rgba(75, 200, 255, 0.35);
}

.cards h3 {
  margin: 0;
}

.cards p {
  color: var(--fg-muted);
  line-height: 1.6;
}

.inline-cta {
  font-weight: 600;
  color: var(--accent);
}

.about p {
  max-width: 760px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.about-highlights {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--fg-muted);
  display: grid;
  gap: 0.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 0.75rem;
  color: var(--fg-muted);
}

.section-cta {
  margin-top: 2.5rem;
  background: rgba(75, 200, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(75, 200, 255, 0.25);
  display: grid;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem 0 5rem;
  background: #040608;
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--fg-muted);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fg);
}

.install-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  background: rgba(5, 7, 9, 0.94);
  border: 1px solid rgba(75, 200, 255, 0.3);
  border-radius: 18px;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
  z-index: 20;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.install-tray.hidden {
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  pointer-events: none;
}

.tray-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tray-content span {
  color: var(--fg-muted);
}

.tray-close {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}

.tray-close:hover,
.tray-close:focus-visible {
  color: var(--fg);
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .store-badge {
    width: 160px;
    height: 50px;
  }

  .store-badge img {
    width: 100%;
    height: 100%;
  }

  .install-tray {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-content > .text {
    display: contents;
  }

  .hero-content h1 {
    order: 1;
  }

  .hero-content .hero-intro {
    order: 2;
  }

  .hero-content .visual {
    order: 3;
  }

  .hero-content .control-panel {
    order: 4;
  }

  .hero-content .hero-cta {
    order: 5;
  }
}

@media (max-width: 600px) {
  .control-panel {
    padding: 1.2rem;
  }

  .section-cta {
    padding: 1.25rem;
  }

  .cta-group.store-badges {
    width: 100%;
    justify-content: center;
  }

  .store-badge {
    width: 140px;
    height: 44px;
  }

  .install-tray {
    bottom: 12px;
    width: min(540px, 94vw);
  }
}

