:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --text: #15201d;
  --muted: #65736f;
  --line: #dce5e2;
  --accent: #0f6b56;
  --accent-dark: #094536;
  --accent-soft: #e7f3ef;
  --gold: #b7791f;
  --gold-soft: #fff5dc;
  --danger: #a33a3a;
  --danger-soft: #fff0f0;
  --shadow: 0 18px 45px rgba(21, 32, 29, 0.09);
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

body.dark-mode {
  color-scheme: dark;
  --bg: #0f1514;
  --panel: #17211f;
  --text: #eef5f2;
  --muted: #a8b6b1;
  --line: #2d3a37;
  --accent: #45c6a4;
  --accent-dark: #9ff0d8;
  --accent-soft: #123b32;
  --gold: #f0bf62;
  --gold-soft: #3f3014;
  --danger: #ff9b9b;
  --danger-soft: #3f2020;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 107, 86, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 42rem);
  color: var(--text);
  line-height: 1.5;
}

body.dark-mode {
  background:
    radial-gradient(circle at top left, rgba(69, 198, 164, 0.14), transparent 34rem),
    linear-gradient(180deg, #111b18 0%, var(--bg) 42rem);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.dark-mode .topbar {
  background: rgba(23, 33, 31, 0.92);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.32rem);
  letter-spacing: 0;
}

.brand-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
}

.omega-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.omega-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 1.35rem;
  font-weight: 800;
}

.omega-brand strong,
.omega-brand small {
  display: block;
  line-height: 1;
}

.omega-brand small {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 999px;
}

nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

main,
footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  padding: 44px 0 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  padding: clamp(30px, 5vw, 64px);
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(9, 69, 54, 0.98), rgba(15, 107, 86, 0.88)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark-mode .hero-copy {
  background:
    linear-gradient(115deg, rgba(7, 28, 24, 0.98), rgba(15, 107, 86, 0.75)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4.1rem);
  line-height: 1.02;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  overflow-wrap: normal;
}

.hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

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

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.primary-link {
  background: #ffffff;
  color: var(--accent-dark);
}

.ghost-link {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.hero-panel,
.result,
.tool,
.checklist-grid article,
.faq details,
.scenario-card,
.feature-grid article,
.metric-strip article {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

body.dark-mode .hero-panel,
body.dark-mode .result,
body.dark-mode .tool,
body.dark-mode .checklist-grid article,
body.dark-mode .faq details,
body.dark-mode .scenario-card,
body.dark-mode .feature-grid article,
body.dark-mode .metric-strip article {
  background: rgba(23, 33, 31, 0.96);
}

.hero-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-content: center;
  padding: 30px;
}

.hero-panel span,
.feature-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.hero-panel p {
  margin: 4px 0 20px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c5efe4;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.metric-strip article {
  padding: 20px;
}

.metric-strip strong {
  display: block;
  color: var(--accent-dark);
  font-size: 2rem;
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.3fr) minmax(420px, 0.43fr) minmax(320px, 0.27fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0;
}

.section-grid > * {
  min-width: 0;
}

.section-grid.compact {
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
}

.section-title p {
  color: var(--muted);
  font-size: 1rem;
}

.tool {
  padding: 22px;
}

fieldset {
  margin: 0 0 20px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type {
  border-bottom: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 1.02rem;
  font-weight: 900;
}

label {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
}

select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #cbd8d4;
  border-radius: 6px;
  font: inherit;
}

body.dark-mode select {
  background: #111a18;
  color: var(--text);
  border-color: #3a4945;
}

select:focus {
  outline: 3px solid rgba(15, 107, 86, 0.18);
  border-color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  color: var(--accent);
  background: var(--accent-soft);
}

.result {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-top: 5px solid var(--accent);
}

.result h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 0.82rem;
}

.badge.warn {
  color: var(--gold);
  background: var(--gold-soft);
}

.badge.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.result-list {
  padding-left: 18px;
}

.result-list li {
  margin: 8px 0;
}

.content-band,
.diagnostic-band {
  padding: 34px 0;
}

.cards,
.checklist-grid,
.feature-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checklist-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.scenario-card,
.checklist-grid article,
.feature-grid article {
  padding: 20px;
}

.scenario-card h3,
.checklist-grid h3,
.feature-grid h3 {
  margin: 0 0 10px;
}

.scenario-card p,
.checklist-grid li,
.feature-grid p,
.faq p {
  color: var(--muted);
}

.scenario-card button {
  width: 100%;
  margin-top: 12px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin-bottom: 0;
}

footer {
  margin: 28px auto 36px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.copyright {
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
}

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

  .result {
    position: static;
  }

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

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .section-grid.compact,
  .cards,
  .feature-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .result {
    position: static;
  }
}

@media (max-width: 680px) {
  main,
  footer {
    width: min(100% - 24px, 1200px);
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-heading {
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    min-height: 0;
  }

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