:root {
  color-scheme: dark;
  --bg: #0b122b;
  --bg-soft: #0f1a3a;
  --fg: #e0e7ff;
  --fg-muted: #a5b4fc;
  --accent: #3b82f6;        /* blue-500 */
  --accent-secondary: #1d4ed8; /* blue-700 */
  --accent-tertiary: #60a5fa;  /* blue-400 */
  --border: rgba(59, 130, 246, 0.35);
  --card-bg: rgba(15, 26, 58, 0.72);
  --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.3);
  --elevation-2: 0 4px 12px rgba(0, 0, 0, 0.4);
  --elevation-3: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.15), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1), transparent 60%),
    linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #0a0e27 100%);
  background-attachment: fixed;
  color: var(--fg);
  min-height: 100%;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

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(59,130,246,0.24), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(29,78,216,0.20), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(96,165,250,0.16), transparent 60%),
    rgba(11, 18, 43, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--elevation-1);
}

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

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

.logo img,
.logo svg {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* Hide store badges in top menu globally */
.site-header .store-badges { display: none !important; }

/* Sparkling white label for logo */
.logo span {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,1) 60%, rgba(255,255,255,0.75) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: logoShimmer 3.2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255,255,255,0.18), 0 0 16px rgba(255,255,255,0.08);
}

@keyframes logoShimmer {
  0% { background-position: 200% 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

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

.primary-nav a {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width var(--transition);
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  width: 100%;
}

.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);
  height: 32px;
  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.75rem 1.5rem;
  border-radius: 24px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.secondary {
  background: rgba(21, 27, 61, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-tertiary);
  box-shadow: var(--elevation-1);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
  background: rgba(21, 27, 61, 0.95);
  box-shadow: var(--elevation-2);
}

.cta-button.ghost {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent-tertiary);
  box-shadow: none;
}

.cta-button.ghost:hover,
.cta-button.ghost:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  box-shadow: var(--elevation-1);
}

.cta-button.large {
  font-size: 1.1rem;
  padding: 0.95rem 2rem;
  border-radius: 28px;
}

.cta-button.small {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

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

.hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(37, 99, 235, 0.1), transparent 40%);
  animation: meshFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

@keyframes meshFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(5%, 5%) rotate(120deg);
  }
  66% {
    transform: translate(-5%, 5%) rotate(240deg);
  }
}

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

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.control-panel {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(21, 27, 61, 0.7);
  border-radius: 24px;
  border: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--elevation-2);
  backdrop-filter: blur(10px);
}

.mode-selector {
  display: grid;
  gap: 0.5rem;
}

.mode-selector label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

.mode-select {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(21, 27, 61, 0.8);
  color: var(--fg);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mode-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.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);
  padding: 0.5rem 0;
}

.status-row span:last-child {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  overflow: hidden;
  position: relative;
}

#progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
  transition: width 0.2s linear;
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

#progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.advanced-controls {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

.control-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.control-row label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fg);
  min-width: 120px;
}

.control-row input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.control-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition);
}

.control-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.control-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.control-row span {
  font-weight: 600;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

.hero-cta {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.visual {
  position: relative;
  padding: 3rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(29,78,216,0.22), transparent 65%),
    rgba(11, 18, 43, 0.84);
  border: 1px solid var(--border);
  box-shadow: var(--elevation-2);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.water-animation {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 40%;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.4) 0%,
    rgba(37, 99, 235, 0.5) 50%,
    rgba(96, 165, 250, 0.4) 100%
  );
  border-radius: 50%;
  animation: waveAnimation 3s ease-in-out infinite;
}

.wave-1 {
  animation-duration: 3s;
  opacity: 0.6;
}

.wave-2 {
  animation-duration: 4s;
  animation-delay: 0.5s;
  opacity: 0.4;
  height: 35%;
}

.wave-3 {
  animation-duration: 5s;
  animation-delay: 1s;
  opacity: 0.3;
  height: 30%;
}

@keyframes waveAnimation {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

.droplet-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.droplet {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.8;
  animation: dropletFall 3s ease-in infinite;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.droplet-1 {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 3s;
}

.droplet-2 {
  left: 40%;
  animation-delay: 0.8s;
  animation-duration: 3.5s;
}

.droplet-3 {
  left: 60%;
  animation-delay: 1.2s;
  animation-duration: 4s;
}

.droplet-4 {
  left: 80%;
  animation-delay: 0.4s;
  animation-duration: 3.2s;
}

@keyframes dropletFall {
  0% {
    transform: translateY(-10px) rotate(-45deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(200px) rotate(-45deg) scale(1);
    opacity: 0;
  }
}

.visual-caption {
  margin-top: 1.5rem;
  color: var(--fg-muted);
  font-size: 1rem;
  text-align: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Phone Bubble Visual Animation */
.phone-bubble-visual {
  width: 100%;
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-corner {
  position: absolute;
  left: 10%;
  bottom: 10%;
  width: 200px;
  height: 250px;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-radius: 20px 20px 20px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(-15deg);
  z-index: 2;
}

.phone-corner::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: #0a0a0a;
  border-radius: 12px;
}

.speaker-grilles {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.speaker-grilles span {
  width: 6px;
  height: 6px;
  background: rgba(26, 26, 26, 0.95);
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  animation: speakerPulse 2s ease-in-out infinite;
}

.speaker-grilles span:nth-child(1) { animation-delay: 0s; }
.speaker-grilles span:nth-child(2) { animation-delay: 0.2s; }
.speaker-grilles span:nth-child(3) { animation-delay: 0.4s; }
.speaker-grilles span:nth-child(4) { animation-delay: 0.6s; }
.speaker-grilles span:nth-child(5) { animation-delay: 0.8s; }

@keyframes speakerPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
  }
}

.charging-port {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: rgba(26, 26, 26, 0.9);
  border-radius: 4px;
  z-index: 3;
}

.magnifying-bubble {
  position: absolute;
  right: 5%;
  top: 15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.45), rgba(37, 99, 235, 0.55), rgba(30, 58, 138, 0.65));
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35), inset 0 0 60px rgba(59, 130, 246, 0.25);
  z-index: 3;
  animation: bubblePulse 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bubblePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.magnifying-bubble::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 25%;
  width: 40px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(15px);
}

.water-droplets-bubble {
  position: relative;
  width: 100%;
  height: 100%;
}

.bubble-droplet {
  position: absolute;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(224, 231, 255, 0.9));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.bubble-droplet-1 {
  top: 40%;
  left: 45%;
  animation: dropletFloat 3s ease-in-out infinite;
}

.bubble-droplet-2 {
  top: 25%;
  left: 30%;
  width: 12px;
  height: 12px;
  animation: dropletFloat 3.5s ease-in-out infinite 0.5s;
}

.bubble-droplet-3 {
  top: 55%;
  left: 35%;
  width: 10px;
  height: 10px;
  animation: dropletFloat 4s ease-in-out infinite 1s;
}

@keyframes dropletFloat {
  0%, 100% {
    transform: rotate(-45deg) translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: rotate(-45deg) translateY(-15px);
    opacity: 1;
  }
}

section {
  padding: 5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 600;
}

p, span, div, label, button, a, li {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

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

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

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

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

.policy-section {
  margin-bottom: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--elevation-1);
}

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

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

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

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

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

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

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

section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

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

.cards article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--elevation-1);
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  align-content: start;
  box-shadow: var(--elevation-1);
}

.blog-card:hover,
.blog-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--elevation-3);
}

.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(59, 130, 246, 0.4);
  box-shadow: var(--elevation-3);
}

.cards h3 {
  margin: 0;
  font-size: 1.4rem;
}

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

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

.inline-cta:hover {
  color: var(--accent-secondary);
}

.about p {
  max-width: 780px;
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-highlights {
  margin-top: 2rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: var(--fg-muted);
  display: grid;
  gap: 0.75rem;
  font-size: 1.05rem;
}

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

details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--elevation-1);
}

details:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

details[open] {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--elevation-2);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.section-cta {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.12));
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--elevation-1);
}

.site-footer {
  padding: 3rem 0 4rem;
  background: rgba(10, 14, 39, 0.95);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

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

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  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(--accent);
}

.install-tray {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  background: rgba(21, 27, 61, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 24px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--elevation-3);
  z-index: 20;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  backdrop-filter: blur(10px);
}

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

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

.tray-content span {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.tray-close {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.tray-close:hover,
.tray-close:focus-visible {
  color: var(--fg);
  background: rgba(59, 130, 246, 0.2);
}

@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: wrap;
  }
  
  /* Center the logo block on its own row */
  .site-header .container > a {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .logo {
    justify-content: center;
  }
  
  /* Show menu tabs under the logo and center them */
  .primary-nav {
    display: flex;
    order: 2;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    justify-content: center;
    gap: 0.5rem;           /* tighter spacing between items */
    flex-wrap: wrap;       /* allow wrapping when space is limited */
    row-gap: 0.4rem;       /* compact vertical gap on wrap */
  }

  /* Tighter padding on links to fit more items */
  .primary-nav a {
    padding: 0.25rem 0.4rem;
  }
  
  /* Hide badges in collapsed state */
  .site-header .cta-group.store-badges {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

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

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

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

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

  .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;
  }

  .control-panel {
    padding: 1.5rem;
  }

  .control-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .control-row label {
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .section-cta {
    padding: 1.5rem;
  }

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

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

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

  .cards {
    grid-template-columns: 1fr;
  }
}

/* User Reviews Section */
.user-reviews {
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.reviews-container {
  overflow: hidden;
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

.reviews-track {
  display: flex;
  gap: 2rem;
  width: fit-content;
  will-change: transform;
}

.review-card {
  flex: 0 0 380px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--elevation-2);
  backdrop-filter: blur(10px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.reviewer-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

.reviewer-name {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.review-rating {
  color: #fbbf24;
  font-size: 0.9rem;
}

.review-text {
  color: var(--fg-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

.review-date {
  color: var(--fg-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
}

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

.feature-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--elevation-1);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--elevation-3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--fg);
}

.feature-item p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin: 0;
}

/* Download Section */
.download-section {
  padding: 5rem 0;
  text-align: center;
}

.download-section h2 {
  margin-bottom: 1rem;
}

.download-section p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
