
:root {
  --bg: #101827;
  --surface: #192538;
  --surface-light: #22334b;
  --text: #f5f7fb;
  --muted: #aab7c9;
  --accent: #7c8cff;
  --accent2: #42d6c5;
  --border: #304159;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  max-width: 1100px;
  margin: auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  color: white;
  font-size: 21px;
  font-weight: 800;
}

nav, .site-footer div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a, .site-footer a { color: var(--muted); }

.container {
  width: min(100% - 36px, 1000px);
  margin: auto;
}

.hero {
  text-align: center;
  padding: 70px 10px 42px;
  max-width: 760px;
  margin: auto;
}

.eyebrow {
  color: var(--accent2);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
}

h1 {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 18px 0;
}

h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 55px #0003;
}

.tester { max-width: 720px; margin: 0 auto; }

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

h2, h3 { line-height: 1.25; }
h2 { margin: 0 0 8px; font-size: 25px; }
h3 { margin: 0 0 8px; }

.card-heading p, .muted { color: var(--muted); margin-top: 4px; }

.status {
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--muted);
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

label { display: block; font-weight: 700; margin-bottom: 8px; }

select {
  width: 100%;
  background: #101827;
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  font: inherit;
}

.meter-wrap {
  margin: 28px 0;
  background: #101827;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}

.meter {
  height: 15px;
  background: #2b394d;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
}

#levelBar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .08s linear;
}

#meterMessage { color: var(--muted); font-size: 13px; margin-bottom: 0; }

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.primary {
  color: #101827;
  background: linear-gradient(100deg, #a1aaff, #55e1d1);
}

.secondary {
  background: var(--surface-light);
  color: white;
  border: 1px solid var(--border);
}

hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

audio { width: 100%; margin-top: 14px; }

.ad-placeholder {
  margin: 35px auto;
  min-height: 100px;
  border: 1px dashed #53627a;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  gap: 4px;
  text-align: center;
  padding: 18px;
}

.ad-placeholder small { font-size: 12px; }

.info-section { padding: 38px 0; }
.info-section > h2 { margin-bottom: 22px; }

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

.step-number {
  color: var(--accent2);
  font-size: 13px;
  font-weight: 800;
  display: block;
  margin-bottom: 16px;
}

.steps p, details p { color: var(--muted); }

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 45px auto 0;
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 650px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 48px; }
  .card { padding: 20px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
