:root {
  --ink: #182026;
  --muted: #5f6f7a;
  --paper: #f8faf8;
  --white: #ffffff;
  --line: #dfe7e2;
  --green: #7a32b5;
  --green-dark: #5c1499;
  --cyan: #2a91a8;
  --accent: #5c1499;
  --warning: #c2881b;
  --shadow: 0 20px 60px rgba(24, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 70px);
  background: rgba(248, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 70px);
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(122, 50, 181, 0.12), transparent 46%),
    linear-gradient(180deg, var(--white), var(--paper));
}

.hero-content,
.section-heading {
  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: 780px;
  font-size: clamp(2.45rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

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

.hero-copy,
.section-heading p,
.text-stack p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
}

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

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-highlights span {
  padding: 8px 12px;
  color: var(--green-dark);
  background: rgba(122, 50, 181, 0.1);
  border: 1px solid rgba(122, 50, 181, 0.2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

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

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

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

.dashboard-preview {
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-top,
.table-preview div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.preview-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.preview-top strong {
  color: var(--green-dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.metric-grid article,
.value-strip article,
.feature-card,
.media-card,
.operation-grid article,
.service-list article,
.process-steps article,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid article {
  min-height: 116px;
  padding: 16px;
}

.metric-grid span,
.table-preview span:first-child,
.feature-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.alert-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #6a4a00;
  background: rgba(194, 136, 27, 0.13);
  border: 1px solid rgba(194, 136, 27, 0.22);
  border-radius: 8px;
}

.alert-preview span {
  color: var(--warning);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.alert-preview strong {
  font-size: 0.95rem;
}

.table-preview {
  display: grid;
  gap: 8px;
}

.table-preview div {
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  min-height: 44px;
  padding: 10px 12px;
  background: #f4f8f6;
  border-radius: 8px;
}

.table-preview div:first-child {
  color: var(--muted);
  font-weight: 800;
}

.intro-band {
  background: var(--white);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.value-strip article {
  min-height: 136px;
  padding: 22px;
  background: #fbfdfc;
}

.value-strip strong,
.value-strip span {
  display: block;
}

.value-strip strong {
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.value-strip span {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cyan);
  font-weight: 800;
}

.feature-card p,
.service-list p {
  color: var(--muted);
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  background: #edf6f1;
}

.text-stack {
  display: grid;
  gap: 18px;
}

.text-stack p {
  margin: 0;
}

.media-section {
  background: var(--paper);
}

.media-grid,
.screenshot-grid,
.operation-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

.media-grid .media-card:only-child {
  grid-column: 1 / -1;
}

.screenshot-grid,
.operation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.media-card,
.operation-grid article {
  padding: 20px;
}

.media-card h3,
.operation-grid h3 {
  margin-top: 16px;
}

.media-card p,
.operation-grid p {
  margin: 0;
  color: var(--muted);
}

.media-card .media-meta {
  margin-top: 16px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.media-card .media-meta + h3 {
  margin-top: 6px;
}

.asset-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  overflow: hidden;
  background: #f4f1f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.asset-frame video,
.asset-frame img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.asset-frame--video,
.asset-frame--image {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.asset-frame--video video,
.asset-frame--image img {
  min-height: 0;
}

.asset-frame--video video {
  background: #17131c;
  object-fit: contain;
}

.asset-frame--image img {
  object-position: top;
}

.asset-placeholder {
  display: grid;
  place-items: center;
  min-height: 230px;
  width: 100%;
  padding: 24px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 800;
}

.asset-placeholder[hidden] {
  display: none;
}

.operations-section {
  background: var(--white);
}

.operation-grid article {
  min-height: 190px;
  border-top: 5px solid var(--green);
}

.operation-grid article:nth-child(2) {
  border-top-color: var(--cyan);
}

.operation-grid article:nth-child(3) {
  border-top-color: var(--warning);
}

.services-band {
  background: var(--paper);
}

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

.service-list article {
  min-height: 210px;
  padding: 26px;
  border-top: 5px solid var(--green);
}

.service-list article:nth-child(2) {
  border-top-color: var(--cyan);
}

.service-list article:nth-child(3) {
  border-top-color: var(--warning);
}

.process-section {
  background:
    linear-gradient(180deg, rgba(42, 145, 168, 0.08), transparent 52%),
    var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.process-steps article {
  position: relative;
  min-height: 226px;
  padding: 26px;
  overflow: hidden;
}

.process-steps article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  background: rgba(122, 50, 181, 0.1);
  border-radius: 50%;
}

.process-steps span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 800;
}

.process-steps p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 0.78fr);
  gap: clamp(28px, 6vw, 84px);
  background: var(--white);
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  align-self: start;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfc;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: var(--ink);
}

.site-footer span:first-child {
  font-weight: 800;
}

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

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .media-grid,
  .screenshot-grid,
  .operation-grid,
  .service-list,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main-nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .metric-grid,
  .value-strip,
  .feature-grid,
  .media-grid,
  .screenshot-grid,
  .operation-grid,
  .service-list,
  .process-steps {
    grid-template-columns: 1fr;
  }

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

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