:root {
  --bg: #eef5ff;
  --bg-soft: #dfe9ff;
  --card: #ffffff;
  --text: #131f39;
  --muted: #536582;
  --line: #cddbf8;
  --blue: #1f84ff;
  --pink: #ff4f86;
  --yellow: #ffb21e;
  --mint: #22cdb5;
  --radius-lg: 30px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, #ffffff 0%, #f1f7ff 35%, transparent 60%),
    radial-gradient(circle at 90% 10%, #d9ebff 0%, transparent 45%),
    linear-gradient(160deg, #f8fbff 0%, var(--bg) 58%, #e4eeff 100%);
  font-family: "Nunito", "Segoe UI", Tahoma, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(42, 134, 240, 0.17) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  opacity: 0.25;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

.shape-a {
  width: 420px;
  height: 420px;
  right: -150px;
  top: 70px;
  background: linear-gradient(120deg, rgba(31, 132, 255, 0.34), rgba(95, 196, 255, 0.14));
}

.shape-b {
  width: 360px;
  height: 360px;
  left: -140px;
  bottom: 10%;
  background: linear-gradient(140deg, rgba(255, 79, 134, 0.28), rgba(255, 186, 69, 0.15));
}

.topbar {
  width: min(1240px, calc(100% - 30px));
  margin: 20px auto 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  display: block;
  width: clamp(92px, 8.8vw, 132px);
  max-width: 100%;
  height: auto;
}

.brand-badge {
  width: clamp(52px, 4.4vw, 68px);
  height: clamp(52px, 4.4vw, 68px);
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  background: linear-gradient(140deg, #edf2ff, #dfe9ff);
  box-shadow: inset 0 0 0 1px rgba(118, 142, 197, 0.18);
}

.brand-badge-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-word {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #223867;
}

.brand-word span {
  color: var(--blue);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.1px;
  padding: 11px 17px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
  background: #edf3fe;
  color: var(--text);
}

.tab-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #5aaeff, var(--blue));
  box-shadow: 0 6px 16px rgba(42, 134, 240, 0.3);
}

.layout {
  width: min(1240px, calc(100% - 30px));
  margin: 0 auto 24px;
}

.panel {
  display: none;
  animation: panelIn 0.35s ease;
}

.panel.is-active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.hero-copy,
.hero-cards,
.stats,
.content-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 34px rgba(16, 33, 68, 0.1);
}

.hero-copy {
  padding: 32px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #275ea0;
  background: #e8f2ff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  line-height: 1.1;
}

h1 {
  margin-top: 4px;
  font-size: clamp(2.2rem, 3.1vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
}

h3 {
  font-size: 1.38rem;
}

p {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.58;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn {
  border: none;
  border-radius: 13px;
  padding: 14px 21px;
  font-family: "Nunito", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #58acff, var(--blue));
  box-shadow: 0 8px 18px rgba(42, 134, 240, 0.27);
}

.action-btn.ghost {
  color: #27436a;
  background: #edf3ff;
}

.hero-cards {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  border-radius: 22px;
  padding: 20px 16px;
  color: #fff;
}

.mini-card span {
  font-size: 2.7rem;
}

.mini-card h3 {
  margin-top: 8px;
  font-size: 1.3rem;
}

.mini-card p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.mini-card.pink {
  background: linear-gradient(130deg, #ff8c99, var(--pink));
}

.mini-card.blue {
  background: linear-gradient(130deg, #65b5ff, var(--blue));
}

.mini-card.yellow {
  background: linear-gradient(130deg, #ffd072, var(--yellow));
}

.mini-card.mint {
  background: linear-gradient(130deg, #86dfd6, var(--mint));
}

.stats {
  margin-top: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  border-radius: 16px;
  border: 1px dashed var(--line);
  padding: 18px;
  text-align: center;
  background: #f9fbff;
}

.stat-card strong {
  display: block;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 2.65rem;
  color: var(--blue);
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.content-card {
  padding: 28px;
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  background: #f9fbff;
}

.feature-item p {
  margin: 8px 0 0;
}

.sound-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stop-btn {
  border: none;
  border-radius: 14px;
  background: #e3efff;
  color: #2e4d79;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.sound-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sound-btn {
  min-height: 100px;
  border: none;
  border-radius: 20px;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sound-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.sound-btn.is-active {
  box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sound-btn.white-noise {
  background: linear-gradient(130deg, #ff8f9b, var(--pink));
}

.sound-btn.fan {
  background: linear-gradient(130deg, #67b7ff, var(--blue));
}

.sound-btn.car {
  background: linear-gradient(130deg, #ffd174, var(--yellow));
}

.sound-btn.radio {
  background: linear-gradient(130deg, #8ce2d9, var(--mint));
}

.sound-btn.rain {
  background: linear-gradient(130deg, #84b8ff, #4a82f2);
}

.sound-btn.lullaby {
  background: linear-gradient(130deg, #b09bff, #7c74ef);
}

.privacy-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.privacy-grid > div {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f9fbff;
}

.privacy-grid ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.54;
}

.support-block {
  margin-top: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #f3f8ff, #e4efff);
}

.support-mail {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 2.1rem;
  text-decoration: none;
  color: #145fe3;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
  padding: 14px 16px;
  margin-top: 12px;
}

summary {
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.muted {
  margin-top: 6px;
  color: var(--muted);
}

.site-footer {
  width: min(1240px, calc(100% - 30px));
  margin: 0 auto 22px;
  padding: 14px;
  text-align: center;
  color: #7b8da9;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .brand {
    justify-content: center;
  }

  .brand-icon {
    width: 86px;
    margin: 0 auto;
  }

  .brand-badge {
    width: 56px;
    height: 56px;
  }

  .brand-word {
    font-size: 2rem;
  }

  .layout,
  .site-footer {
    width: calc(100% - 20px);
  }

  .stats,
  .feature-list,
  .privacy-grid,
  .sound-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .support-mail {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
