:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5c6672;
  --line: #d9e0e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --green: #0f766e;
  --green-dark: #115e59;
  --blue: #2563eb;
  --gold: #b7791f;
  --shadow: 0 22px 60px rgba(23, 32, 42, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.redirect-page img {
  width: min(220px, 64vw);
  height: auto;
}

.redirect-page p {
  margin: 0;
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 224, 232, 0.8);
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 155px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
  min-height: calc(100vh - 75px);
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px) clamp(42px, 7vw, 76px);
}

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

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

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

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 750;
}

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

.button.primary:hover {
  background: var(--green-dark);
}

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

.button.secondary:hover {
  border-color: #b7c3cf;
}

.hero-visual {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
}

.portal-preview {
  width: min(100%, 500px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 245, 243, 0.9)),
    var(--white);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 42px);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.preview-header img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.preview-grid span {
  min-height: 88px;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.preview-grid span:nth-child(1) {
  background: rgba(93, 122, 101, 0.18);
}

.preview-grid span:nth-child(2) {
  background: rgba(107, 147, 164, 0.2);
}

.preview-grid span:nth-child(3) {
  background: rgba(216, 169, 157, 0.22);
}

.preview-grid span:nth-child(4) {
  background: rgba(255, 211, 21, 0.18);
}

.preview-lines {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.preview-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(92, 102, 114, 0.18);
}

.preview-lines span:nth-child(2) {
  width: 78%;
}

.preview-lines span:nth-child(3) {
  width: 58%;
}

.signal-panel {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.07)),
    var(--white);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.signal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.signal-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.signal-header span:nth-child(1) {
  background: var(--green);
}

.signal-header span:nth-child(2) {
  background: var(--blue);
}

.signal-header span:nth-child(3) {
  background: var(--gold);
}

.signal-grid {
  display: grid;
  height: calc(100% - 34px);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
}

.signal-grid span {
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.signal-grid .wide {
  grid-column: span 2;
  background: rgba(15, 118, 110, 0.15);
}

.signal-grid .tall {
  grid-row: span 2;
  background: rgba(37, 99, 235, 0.13);
}

.section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 6vw, 80px);
  padding: clamp(52px, 8vw, 94px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.section > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.services {
  display: block;
  background: #eef5f3;
}

.services .section-heading {
  max-width: 780px;
}

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

.service-grid article {
  min-height: 190px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 24px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
}

.contact {
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.contact .eyebrow,
.contact p {
  color: #9bd4ce;
}

.contact .button {
  justify-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .brand-logo {
    height: 42px;
    max-width: 145px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 300px;
  }

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

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

  .contact .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.88rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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