:root {
  color-scheme: light;
  --ink: #13211d;
  --muted: #66736e;
  --paper: #f5f7f2;
  --panel: #ffffff;
  --line: #dce2dd;
  --green: #173b34;
  --green-soft: #e8f1ec;
  --teal: #2f7f86;
  --gold: #f0c56f;
  --red: #b94e4b;
  --shadow: 0 22px 64px rgba(20, 38, 32, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 18px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.brand img.brand-logo-wide {
  width: 430px;
  height: auto;
  max-height: 156px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.site-nav a,
.site-footer a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.site-nav a:last-child {
  background: var(--green);
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.86fr);
  gap: 46px;
  align-items: center;
  min-height: auto;
  padding: 34px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #2f8a63;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 13.5ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
}

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

.lead,
.section p,
.benefit-list span,
.site-footer span {
  color: var(--muted);
}

.lead {
  max-width: 58ch;
  font-size: 1.12rem;
  line-height: 1.65;
}

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

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

.trust-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.secondary-action {
  background: #ffffff;
}

.hero-board {
  display: grid;
  gap: 14px;
  align-self: center;
}

.terminal-preview,
.portal-preview,
.feature-grid article,
.benefit-list article,
.request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal-preview {
  padding: 30px;
  background: var(--green);
  color: #ffffff;
}

.terminal-preview span,
.terminal-preview p {
  color: rgba(255, 255, 255, 0.72);
}

.terminal-preview strong {
  display: block;
  margin: 32px 0 10px;
  font-size: clamp(4rem, 6.4vw, 6.2rem);
  line-height: 0.9;
}

.terminal-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.terminal-actions b {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--green);
}

.terminal-actions b:first-child {
  background: #31956a;
  color: #ffffff;
}

.terminal-actions b:last-child {
  background: var(--red);
  color: #ffffff;
}

.portal-preview {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.portal-preview > span {
  color: var(--muted);
  font-weight: 900;
}

.portal-preview div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eef1ed;
  border-radius: 8px;
  background: #fbfcfa;
}

.portal-preview em {
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.section {
  padding: 78px 0;
}

.section-head {
  margin-bottom: 24px;
}

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

.feature-grid article {
  min-height: 250px;
  padding: 22px;
}

.feature-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 26px;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 10px;
}

.benefit-list article {
  padding: 20px;
}

.benefit-list strong,
.benefit-list span {
  display: block;
}

.benefit-list strong {
  font-size: 1.05rem;
}

.benefit-list span {
  margin-top: 6px;
  line-height: 1.55;
}

.system-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.system-grid article,
.process-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.system-grid article {
  min-height: 210px;
  padding: 20px;
}

.system-grid strong,
.system-grid span,
.process-list strong,
.process-list span {
  display: block;
}

.system-grid span,
.process-list span {
  margin-top: 10px;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 170px;
  padding: 20px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.request-form .wide,
.request-form .form-status,
.request-form button {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.form-status.is-success {
  color: #23724f;
}

.form-status.is-error {
  color: var(--red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: grid;
  gap: 5px;
}

.footer-brand-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(calc(100% - 36px), 720px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(20, 38, 32, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--teal);
  font-weight: 900;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-section,
  .feature-grid,
  .system-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .brand img.brand-logo-wide {
    width: 300px;
  }

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

  .site-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--line);
    background: #ffffff;
    text-align: center;
  }

  .request-form,
  .terminal-actions,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .primary-action,
  .cookie-actions .secondary-action {
    flex: 1;
  }
}
