/* Speaker Cleaner: Clear Waves — marketing site */

:root {
  --royal-blue: #1457d9;
  --deep-blue: #061a4d;
  --navy: #04132f;
  --light-blue: #1677ff;
  --cyan: #38d9ff;
  --light-cyan: #8debff;
  --white: #ffffff;
  --text-muted: #d5eef8;
  --glass-background: rgba(255, 255, 255, 0.08);
  --border-color: rgba(141, 235, 255, 0.22);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow: 0 28px 80px rgba(4, 19, 47, 0.48);
  --header-h: 72px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 82% -8%, rgba(56, 217, 255, 0.18), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(20, 87, 217, 0.35), transparent 32%),
    linear-gradient(180deg, #1457d9 0%, #061a4d 26%, #04132f 100%);
  background-attachment: scroll;
  color: var(--white);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--light-cyan);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

button,
.btn {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--light-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 650;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.lede {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 19, 47, 0.72);
  border-bottom-color: var(--border-color);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: var(--light-cyan);
  font-weight: 600;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .nav-toggle-bar,
.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle .nav-toggle-bar::after {
  top: 6px;
}

.site-header.is-open .nav-toggle .nav-toggle-bar {
  background: transparent;
}

.site-header.is-open .nav-toggle .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.nav-list a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--light-cyan);
}

.nav-list .btn-store {
  min-height: 42px;
  padding: 0 16px;
  color: #111;
}

.nav-list .btn-store:hover,
.nav-list .btn-store:focus-visible {
  color: #111;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-store {
  background: var(--white);
  color: #111;
  box-shadow: 0 12px 30px rgba(56, 217, 255, 0.18);
}

.btn-store:hover {
  color: #111;
  transform: translateY(-1px);
}

.btn-store svg {
  width: 16px;
  height: 20px;
}

.btn-store .btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.btn-store .btn-copy span {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.72;
}

.btn-store .btn-copy strong {
  font-size: 0.98rem;
}

.btn-ghost {
  background: var(--glass-background);
  color: var(--white);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-line {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 28px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.hero h1 span {
  display: block;
}

.kicker {
  margin: 0 0 10px;
  color: var(--light-cyan);
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(56, 217, 255, 0.28), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}

.wave-bars {
  position: absolute;
  inset: auto 0 8%;
  display: flex;
  justify-content: center;
  gap: 6px;
  height: 72px;
  pointer-events: none;
}

.wave-bars span {
  width: 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--royal-blue));
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: bottom;
}

.wave-bars span:nth-child(1) { height: 28%; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 52%; animation-delay: 0.12s; }
.wave-bars span:nth-child(3) { height: 78%; animation-delay: 0.24s; }
.wave-bars span:nth-child(4) { height: 100%; animation-delay: 0.08s; }
.wave-bars span:nth-child(5) { height: 64%; animation-delay: 0.2s; }
.wave-bars span:nth-child(6) { height: 42%; animation-delay: 0.32s; }
.wave-bars span:nth-child(7) { height: 70%; animation-delay: 0.16s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

.droplet {
  position: absolute;
  width: 18px;
  height: 24px;
  pointer-events: none;
  animation: drip 4.8s ease-in-out infinite;
}

.droplet:nth-child(1) { top: 18%; left: 14%; animation-delay: 0s; }
.droplet:nth-child(2) { top: 28%; right: 12%; animation-delay: 1.2s; width: 14px; height: 18px; }
.droplet:nth-child(3) { bottom: 22%; left: 20%; animation-delay: 2s; width: 12px; height: 16px; }
.droplet:nth-child(4) { bottom: 30%; right: 18%; animation-delay: 0.8s; }

@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(14px); opacity: 0.9; }
}

/* Device frames */

.device-frame {
  position: relative;
  width: var(--device-width, 270px);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1c2438, #090d18);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: perspective(1400px) rotateY(-12deg) rotateX(4deg);
}

.device-frame--flat {
  transform: none;
}

.device-frame--sm {
  --device-width: 210px;
  border-radius: 34px;
  padding: 10px;
}

.device-frame--tablet {
  --device-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  transform: none;
}

.device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: var(--deep-blue);
}

.device-frame--sm img {
  border-radius: 24px;
}

.device-frame--tablet img {
  border-radius: 18px;
}

.device-island {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 88px;
  height: 18px;
  transform: translateX(-50%);
  background: #05070d;
  border-radius: 99px;
  z-index: 2;
}

/* Sections */

.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

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

.glass-card {
  background: var(--glass-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(4, 19, 47, 0.18);
}

.step-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(56, 217, 255, 0.12);
  color: var(--cyan);
  font-weight: 700;
}

.step-icon {
  width: 28px;
  height: 28px;
  margin: 16px 0 10px;
  color: var(--light-cyan);
}

.glass-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.glass-card p {
  margin: 0;
  color: var(--text-muted);
}

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

.feature-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.tablet-row {
  display: grid;
  place-items: center;
  margin-top: 12px;
}

.showcase-stage {
  position: relative;
  height: 620px;
  display: grid;
  place-items: center;
}

.float-device {
  position: absolute;
}

.float-device.is-left {
  left: 6%;
  top: 14%;
  transform: rotate(-8deg);
}

.float-device.is-right {
  right: 6%;
  bottom: 8%;
  transform: rotate(8deg);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.is-reverse .split-copy {
  order: 2;
}

.privacy-panel,
.legal-card {
  max-width: 760px;
}

.legal-page .privacy-panel {
  margin: 28px 0 8px;
}

.band {
  padding: 96px 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(56, 217, 255, 0.18), transparent 36%),
    linear-gradient(180deg, var(--royal-blue), var(--deep-blue) 70%, var(--navy));
  text-align: center;
  overflow: hidden;
  position: relative;
}

.band h2 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.band .cta-row {
  justify-content: center;
}

.band-phone {
  margin: 36px auto 0;
  width: min(230px, 70%);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--glass-background);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--white);
  text-align: left;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-trigger::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.3rem;
}

.faq-item.is-open .faq-trigger::after {
  content: "–";
}

.faq-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

.disclaimer {
  margin: 0;
  padding: 28px 0 8px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 720px;
}

/* Footer / legal */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.copyright {
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.placeholder {
  color: var(--cyan);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .wave-bars span,
  .droplet,
  .device-frame {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .steps {
    grid-template-columns: 1fr;
  }

  .split.is-reverse .split-copy {
    order: 0;
  }

  .showcase-stage {
    height: auto;
    min-height: 520px;
    padding: 40px 0 80px;
  }

  .float-device.is-left,
  .float-device.is-right {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 12px;
  }

  .device-frame {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto;
    z-index: 45;
    background: rgba(4, 19, 47, 0.96);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    gap: 4px;
  }

  .nav-list a,
  .nav-list .btn {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
  }

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

  .hero-visual {
    min-height: 460px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .brand-text span {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 430px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .device-frame {
    --device-width: 230px;
  }
}
