:root {
  --bg: #05070b;
  --panel: rgba(16, 20, 29, 0.88);
  --panel2: rgba(23, 28, 40, 0.95);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #a8b2c1;
  --accent: #ff3b3b;
  --accent2: #14d9ff;
  --good: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(20, 217, 255, .16), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(255, 59, 59, .18), transparent 30%),
    linear-gradient(135deg, #05070b 0%, #10131b 48%, #05070b 100%);
  min-height: 100vh;
}

.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.hero {
  padding: 38px 0 26px;
  position: relative;
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
  gap: 16px;
  padding-top: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #951010);
  box-shadow: 0 14px 34px rgba(255, 59, 59, .28);
  font-weight: 1000;
}

.navlinks { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.navlinks a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92rem; }
.navlinks a:hover, .navlinks a.active { color: var(--text); }

.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}

.heroCopy {
  background: linear-gradient(145deg, rgba(16,20,29,.82), rgba(16,20,29,.45));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(20,217,255,.28);
  color: #c8f7ff;
  background: rgba(20,217,255,.08);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 5.6rem);
  line-height: .92;
  margin: 22px 0 18px;
  letter-spacing: -.07em;
}

.gradientText {
  background: linear-gradient(90deg, #fff 0%, #dfe9ff 42%, #14d9ff 72%, #ff3b3b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroCopy p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 700px; }

.heroActions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  border: 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), #a80f0f);
  box-shadow: 0 14px 32px rgba(255,59,59,.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.secondary { background: rgba(255,255,255,.08); box-shadow: none; border: 1px solid var(--line); }

.statPanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.statCard {
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.statCard span { display:block; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.statCard strong { display:block; font-size: 1.65rem; margin-top: 6px; }

main { padding: 20px 0 54px; }

.sectionTitle { margin: 44px 0 16px; }
.sectionTitle h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.sectionTitle p { margin: 0; color: var(--muted); line-height: 1.6; }

.tunerShell {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panelHeader {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panelHeader h3 { margin: 0; font-size: 1.05rem; }
.badge { color: #d5fbff; background: rgba(20,217,255,.1); border: 1px solid rgba(20,217,255,.22); padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 900; }

.formGrid { padding: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
label { color: #d8e1ee; font-weight: 800; font-size: .9rem; }
.hint { color: var(--muted); font-size: .78rem; line-height: 1.4; }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
}

select option { color: #111; }
input:focus, select:focus, textarea:focus { border-color: rgba(20,217,255,.62); box-shadow: 0 0 0 4px rgba(20,217,255,.08); }

.twoCol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fullBtn { width: 100%; font-size: 1rem; margin-top: 4px; }

.resultWrap { padding: 20px; }
.notice {
  border-radius: 18px;
  padding: 16px;
  background: rgba(20,217,255,.08);
  border: 1px solid rgba(20,217,255,.18);
  color: #d8fbff;
  line-height: 1.55;
  margin-bottom: 16px;
}

.resultGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tuneCard {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: 18px;
  padding: 16px;
}
.tuneCard h4 { margin: 0 0 12px; display:flex; align-items:center; gap:8px; }
.tuneCard p { margin: 7px 0; color: #e8eef7; }
.tuneCard small { color: var(--muted); line-height: 1.45; display: block; margin-top: 10px; }

.value { color: var(--accent2); font-weight: 900; }

.infoGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.infoCard { background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.infoCard h3 { margin: 0 0 8px; }
.infoCard p { margin: 0; color: var(--muted); line-height: 1.6; }

details { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 900; }
details p { color: var(--muted); line-height: 1.6; }

footer { color: var(--muted); padding: 30px 0 42px; font-size: .88rem; border-top: 1px solid var(--line); margin-top: 30px; }
.footGrid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.footGrid nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footGrid a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footGrid a:hover { color: var(--text); }
.footNote { text-align: center; color: var(--muted); line-height: 1.6; }

/* Long-form article / content pages */
.article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 52px);
  margin: 8px 0 30px;
}
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.04em; }
.article h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 38px 0 12px; letter-spacing: -.02em; }
.article h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.article p, .article li { color: #d6deea; line-height: 1.8; font-size: 1.04rem; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 8px 0; }
.article a { color: var(--accent2); }
.article .lede { font-size: 1.18rem; color: var(--muted); line-height: 1.7; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .96rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.article th { color: #d5fbff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.article td { color: #d6deea; }
.article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent2);
  background: rgba(20,217,255,.06);
  border-radius: 0 12px 12px 0;
  color: #d8fbff;
}
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.toc { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 22px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc a { color: var(--accent2); text-decoration: none; }

.cardLink {
  display: block;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.cardLink:hover { border-color: rgba(20,217,255,.45); transform: translateY(-2px); }
.cardLink h3 { margin: 0 0 8px; }
.cardLink p { margin: 0; color: var(--muted); line-height: 1.6; }
.cardGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }

.stickyMobile { display: none; }

@media (max-width: 900px) {
  .heroGrid, .tunerShell, .infoGrid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; }
  .statPanel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .page { width: min(100% - 22px, 1180px); }
  .hero { padding-top: 20px; }
  .twoCol, .resultGrid, .statPanel { grid-template-columns: 1fr; }
  .heroCopy, .panel, .statPanel { border-radius: 18px; }
  .stickyMobile {
    display: block;
    position: sticky;
    bottom: 10px;
    z-index: 20;
    padding: 0 0 10px;
  }
  .desktopGenerate { display:none; }
}

/* Save & share */
.shareBar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.shareBar .fullBtn { width: 100%; }
.shareHint { margin: 0 0 4px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.shareRow { display: flex; gap: 8px; }
.shareRow input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
}
.shareRow .btn { padding: 12px 18px; white-space: nowrap; }
