:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #122033;
  --muted: #66758a;
  --line: #dce5ef;
  --primary: #0f6d7a;
  --primary-dark: #0a4e5c;
  --accent: #d99b2b;
  --success: #16865b;
  --shadow: 0 20px 60px rgba(20, 39, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 239, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1f95a8);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 109, 122, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 64px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13, 23, 38, 0.96), rgba(14, 62, 75, 0.9)),
    radial-gradient(circle at 75% 20%, rgba(217, 155, 43, 0.22), transparent 30%),
    linear-gradient(135deg, #0d1726, #113c48);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5vw, 5.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.test-panel {
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.panel-top h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: #e6f5f7;
}

.gauge {
  display: grid;
  place-items: center;
  margin: 28px 0 20px;
}

.gauge-ring {
  display: grid;
  width: min(250px, 68vw);
  aspect-ratio: 1;
  place-items: center;
  color: var(--primary-dark);
  border: 18px solid #e8f1f5;
  border-top-color: var(--primary);
  border-right-color: #31a6b7;
  border-radius: 50%;
}

.gauge-ring span {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
}

.gauge-ring small {
  margin-top: -28px;
  color: var(--muted);
  font-weight: 800;
}

.progress-wrap {
  margin-bottom: 18px;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  background: #e8eef5;
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  transition: width 240ms ease;
}

#progressText,
.fineprint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 34px rgba(15, 109, 122, 0.28);
  cursor: pointer;
}

.primary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

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

.result-card {
  padding: 16px 12px;
  text-align: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-card span,
.result-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-card strong {
  display: block;
  margin: 3px 0;
  color: var(--primary-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.content-band,
.needs-section,
.tips-section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 64px);
}

.content-band {
  background: #fff;
}

.section-heading {
  max-width: 830px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.compact {
  margin-bottom: 24px;
}

.info-grid,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.info-grid article,
.tips-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-grid article {
  background: #f8fbfe;
}

.info-grid p,
.tips-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.needs-table {
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(20, 39, 64, 0.08);
}

.needs-table [role='row'] {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.needs-table [role='row']:last-child {
  border-bottom: 0;
}

.table-head {
  color: #fff;
  font-weight: 800;
  background: #0d1726;
}

.needs-table span {
  min-width: 0;
}

.tips-section {
  background: #eef4f8;
}

.tips-grid article {
  border-color: #d5e2ec;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #0d1726;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

  .info-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .test-panel {
    margin-inline: -4px;
  }

  .result-grid,
  .info-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .needs-table [role='row'] {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .table-head {
    display: none !important;
  }

  .site-footer {
    flex-direction: column;
  }
}
