:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #182026;
  --muted: #62707a;
  --line: #d8dedc;
  --accent: #0d7f75;
  --accent-strong: #075e57;
  --gold: #c98c21;
  --coral: #c94f3d;
  --shadow: 0 20px 50px rgba(24, 32, 38, 0.12);
}

:root.dark {
  color-scheme: dark;
  --bg: #101417;
  --surface: #192125;
  --text: #eef4f2;
  --muted: #aab8b5;
  --line: #304044;
  --accent: #36b9a6;
  --accent-strong: #76dccf;
  --gold: #e2b758;
  --coral: #ed7a68;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(13, 127, 117, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(201, 79, 61, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: conic-gradient(from 120deg, var(--accent), var(--gold), var(--coral), var(--accent));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: 56px 5vw 76px;
}

.hero-copy {
  max-width: 680px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.visual-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11191d;
  box-shadow: var(--shadow);
}

#statusCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.visual-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 17, 0.72);
  color: #f5fbf8;
  font-weight: 750;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #48ddb2;
  box-shadow: 0 0 0 8px rgba(72, 221, 178, 0.16);
}

.section,
.metrics-band {
  padding: 76px 5vw;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

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

.check-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), transparent 5%);
}

.check-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--accent-strong);
  font-weight: 900;
}

.metrics-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
  background: color-mix(in srgb, var(--surface), transparent 20%);
  border-block: 1px solid var(--line);
}

.counter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.counter-button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.counter-button:hover {
  border-color: var(--accent);
}

.counter-value {
  font-size: 2.5rem;
  font-weight: 900;
}

.counter-label {
  color: var(--muted);
  font-weight: 750;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 126px;
  padding: 12px;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 55%);
  outline-offset: 2px;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 750;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .metrics-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }

  .check-grid,
  .counter-row {
    grid-template-columns: 1fr;
  }

  .visual-panel,
  #statusCanvas {
    min-height: 330px;
  }
}

@media (max-width: 480px) {
  .hero,
  .section,
  .metrics-band {
    padding-inline: 18px;
  }

  .topbar,
  .footer {
    padding-inline: 18px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions,
  .form-footer,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
