:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --navy: #183153;
  --teal: #0f766e;
  --green: #86b44b;
  --amber: #d58a1f;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark,
.module-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

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

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
}

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

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.header-action,
.primary-button {
  color: #fff;
  background: var(--teal);
}

.secondary-button {
  color: var(--navy);
  border: 1px solid var(--line);
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 88px) 72px;
  background:
    linear-gradient(135deg, rgba(24, 49, 83, 0.08), rgba(15, 118, 110, 0.08)),
    var(--soft);
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.hero-text,
.section-heading p,
.split-section p,
.deployment p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 49, 83, 0.16);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

.visual-panel {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.12);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.section,
.split-section,
.deployment {
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 88px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 680px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline article,
.module-grid article,
.control-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.timeline article span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 900;
}

.timeline p,
.module-grid p,
.control-grid p,
.check-list {
  color: var(--muted);
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  background: var(--navy);
  color: white;
}

.split-section .eyebrow {
  color: #9ee6da;
}

.split-section p,
.split-section .check-list {
  color: rgba(255, 255, 255, 0.78);
}

.screenshot-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0c1d32;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.muted {
  background: var(--soft);
}

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

.module-grid article {
  min-height: 220px;
}

.module-icon {
  margin-bottom: 20px;
  background: var(--teal);
}

.control-grid article {
  border-top: 4px solid var(--amber);
}

.deployment {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 44px;
  align-items: center;
  background: #eef6f4;
}

.stack-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(17, 24, 39, 0.08);
}

.stack-card span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 88px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

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

  .nav-links {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .deployment {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .hero-metrics,
  .module-grid,
  .control-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual img,
  .screenshot-card img {
    aspect-ratio: 4 / 3;
  }
}
