:root {
  --ink: #11202b;
  --ink-soft: #40505c;
  --muted: #697784;
  --line: #dfe8e4;
  --line-strong: #c5d7cf;
  --paper: #ffffff;
  --mist: #f6faf8;
  --mist-strong: #eaf5ef;
  --green: #04bd68;
  --green-deep: #02894d;
  --gold: #f7b500;
  --blue: #2b7fc3;
  --danger: #b4493d;
  --shadow: 0 20px 44px rgba(17, 32, 43, 0.08);
  --shadow-small: 0 8px 20px rgba(17, 32, 43, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 232, 228, 0.88);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
  height: 54px;
  overflow: hidden;
}

.brand-link img {
  width: 176px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--mist-strong);
}

.site-nav .nav-pill {
  color: #fff;
  background: var(--ink);
}

.site-nav .nav-pill:hover,
.site-nav .nav-pill.active {
  color: #fff;
  background: var(--green-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 38%, rgba(255,255,255,0.64) 65%, rgba(255,255,255,0.26) 100%),
    linear-gradient(145deg, #eef8f2 0%, #ffffff 44%, #f7fbff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(17,32,43,0.04) 0, rgba(17,32,43,0.04) 1px, transparent 1px, transparent 84px),
    repeating-linear-gradient(0deg, rgba(17,32,43,0.035) 0, rgba(17,32,43,0.035) 1px, transparent 1px, transparent 70px);
  mask-image: linear-gradient(90deg, transparent 0%, black 42%, black 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: max(30px, calc((100vw - 1180px) / 2));
  top: 118px;
  width: min(36vw, 520px);
  aspect-ratio: 1.28;
  border: 1px solid rgba(197, 215, 207, 0.8);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(4,189,104,0.95) 0 34%, transparent 34% 100%),
    linear-gradient(180deg, #10212d 0 16%, #ffffff 16% 100%);
  box-shadow: var(--shadow);
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 92px 0 84px;
}

.hero-copy {
  width: min(640px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--ink);
}

.hero-copy p {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}

.hero-actions,
.form-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #1b313f;
}

.button.green {
  background: var(--green);
  color: #062014;
}

.button.green:hover {
  background: #17cf78;
}

.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.ghost:hover {
  background: var(--mist);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(640px, 100%);
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.metric {
  min-height: 108px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--mist);
}

.section.tight {
  padding: 54px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.section-head p,
.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.feature-card,
.service-card,
.plan-card,
.panel,
.form-panel,
.stat-tile,
.timeline-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-small);
}

.feature-card,
.service-card,
.plan-card,
.stat-tile,
.timeline-step {
  padding: 24px;
}

.feature-card h3,
.service-card h3,
.plan-card h3,
.timeline-step h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
}

.feature-card p,
.service-card p,
.plan-card p,
.timeline-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--mist-strong);
  color: var(--green-deep);
  font-weight: 900;
}

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

.timeline-step {
  position: relative;
}

.timeline-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.band {
  padding: 42px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(17,32,43,0.96), rgba(2,137,77,0.88)),
    var(--ink);
  color: #fff;
}

.band h2 {
  margin-bottom: 10px;
  color: #fff;
}

.band p {
  max-width: 760px;
  color: rgba(255,255,255,0.78);
}

.band .button {
  background: #fff;
  color: var(--ink);
}

.page-hero {
  padding: 76px 0 48px;
  background:
    linear-gradient(120deg, rgba(234,245,239,0.88), rgba(255,255,255,0.98)),
    var(--mist);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.14rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.form-panel,
.panel {
  padding: 26px;
}

.form-panel h2,
.panel h2 {
  margin-bottom: 18px;
  font-size: 1.32rem;
}

.form-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(4, 189, 104, 0.16);
  border-color: var(--green);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 74px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  cursor: pointer;
}

.choice input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.choice strong {
  display: block;
}

.choice span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.note-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-soft);
}

.note-list li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.login-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 58px 0;
  background: linear-gradient(130deg, #f7fbff, #f5fbf7 52%, #ffffff);
}

.login-card {
  width: min(460px, 100%);
  margin: 0 auto;
}

.login-logo {
  display: block;
  width: 210px;
  margin: 0 auto 24px;
}

.dashboard-shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.dashboard-hero {
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.dashboard-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-title h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.dashboard-title p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0 70px;
}

.side-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.side-nav a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.dashboard-content {
  display: grid;
  gap: 22px;
}

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

.stat-tile strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mist-strong);
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.status.warn {
  background: #fff7d9;
  color: #8a6414;
}

.status.off {
  background: #f9e9e6;
  color: var(--danger);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
}

.inline-form .button {
  align-self: end;
}

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

.toggle-line:last-child {
  border-bottom: 0;
}

.toggle-line strong {
  display: block;
}

.toggle-line p {
  margin: 5px 0 0;
  color: var(--muted);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5d1;
  cursor: pointer;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f7faf8;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  padding: 52px 0;
}

.footer-logo {
  width: 162px;
  max-height: 58px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-deep);
}

.footer-contact,
.site-footer p {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .hero::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    right: -90px;
    top: auto;
    bottom: 30px;
    width: 520px;
    opacity: 0.32;
  }

  .grid.three,
  .workflow,
  .stat-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

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

@media (max-width: 660px) {
  .site-shell,
  .dashboard-shell {
    width: min(100% - 28px, 1180px);
  }

  .brand-link {
    min-width: 142px;
  }

  .brand-link img {
    width: 148px;
  }

  .hero-inner {
    padding: 64px 0 56px;
  }

  .hero-metrics,
  .grid.two,
  .grid.three,
  .workflow,
  .field-grid,
  .choice-row,
  .stat-grid,
  .footer-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .band {
    padding: 28px;
  }

  .dashboard-title {
    align-items: start;
    flex-direction: column;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
