:root {
  --page: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #eaf1f5;
  --surface-warm: #fbf7f0;
  --ink: #13212b;
  --muted: #5c6b76;
  --line: #d7e0e6;
  --brand: #0f766e;
  --brand-dark: #0a4f49;
  --accent: #d8943d;
  --accent-dark: #9a6120;
  --shadow: 0 18px 45px rgba(19, 33, 43, 0.09);
  --radius: 8px;
  --max: 1120px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(216, 148, 61, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--page) 54%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), #14453f);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.brand-name {
  line-height: 1.2;
}

.brand-name span {
  display: block;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
}

.nav-item {
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-dark);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 180px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown a {
  padding: 11px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown a:hover,
.dropdown a.active {
  background: var(--surface-soft);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(19, 33, 43, 0.9), rgba(19, 33, 43, 0.68), rgba(19, 33, 43, 0.18)),
    url("assets/ivt-workflow-hero.svg") center / cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(244, 247, 249, 0.98));
  pointer-events: none;
}

.hero.compact {
  min-height: 390px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 68px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #d7f2ee;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 74px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.72;
}

.hero p {
  max-width: 650px;
  margin-top: 20px;
  color: #edf7f5;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 132px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #1c1308;
}

.button.primary:hover {
  background: #e6a957;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button.outline {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #fff;
}

.section {
  padding: 82px 0;
}

.section.soft {
  background: var(--surface-soft);
}

.section.warm {
  background: var(--surface-warm);
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-head p {
  margin-top: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.featured-card {
  min-height: 100%;
}

.featured-card.wide {
  grid-row: span 2;
}

.featured-card.wide .screenshot.has-image img {
  aspect-ratio: 16 / 9;
}

.featured-card .phone-image {
  min-height: 320px;
}

.featured-card .phone-image img {
  max-height: 420px;
}

.coming-soon {
  display: flex;
}

.coming-soon .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 24px 54px rgba(19, 33, 43, 0.13);
}

.card-body {
  padding: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.screenshot {
  min-height: 210px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(216, 148, 61, 0.16)),
    #dbe6ec;
}

.screenshot.has-image {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  background: #1d2429;
}

.screenshot.has-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.screenshot.phone-image {
  padding: 18px;
}

.screenshot.phone-image img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
}

.screen-frame {
  height: 190px;
  border: 1px solid rgba(19, 33, 43, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(0deg, rgba(15, 118, 110, 0.18) 0 11px, rgba(15, 118, 110, 0.08) 11px 28px),
    linear-gradient(135deg, #b6c9d2, #edf3f5);
  filter: blur(3px);
}

.benefit-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.service-flow {
  display: grid;
  gap: 18px;
}

.service-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.step-number {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.95), rgba(10, 79, 73, 0.95));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 800;
}

.cta-band {
  padding: 54px 0;
  background:
    linear-gradient(135deg, rgba(216, 148, 61, 0.16), transparent 32%),
    var(--brand-dark);
  color: #fff;
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-layout p {
  max-width: 650px;
  margin-top: 12px;
  color: #d9eeee;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.contact-box {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  font-family: var(--font-main);
}

.contact-methods a {
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  padding: 38px 0;
  background: #13212b;
  color: #d8e2e8;
  font-family: var(--font-main);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric {
  padding: 24px;
  background: #fff;
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 26px;
}

.metric span {
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 26px;
}

.project-showcase:nth-of-type(even) {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.project-showcase:nth-of-type(even) .project-copy {
  order: 2;
}

.project-copy {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-copy p {
  margin-top: 14px;
}

.hook {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 800;
}

.project-copy .actions {
  margin-top: 22px;
}

.project-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-main);
  line-height: 1.6;
}

.project-points li {
  padding-left: 20px;
  position: relative;
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.project-media {
  min-height: 100%;
}

.project-media .screenshot {
  min-height: 300px;
}

.project-media .screen-frame {
  height: 100%;
  min-height: 300px;
}

.cadex-media {
  background: var(--surface);
}

.cadex-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  min-height: 340px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(216, 148, 61, 0.14)),
    #e5edf2;
}

.cadex-panel {
  border: 1px solid rgba(19, 33, 43, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(19, 33, 43, 0.08);
}

.cadex-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.cadex-mini-title,
.cadex-toolbar span,
.cadex-status-row span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.cadex-step {
  display: block;
  min-height: 36px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.cadex-step.active {
  border-color: rgba(216, 148, 61, 0.55);
  color: var(--accent-dark);
  background: #fff8ed;
}

.cadex-document {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.cadex-toolbar,
.cadex-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cadex-toolbar span,
.cadex-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.cadex-screen {
  position: relative;
  min-height: 146px;
  border: 1px solid rgba(19, 33, 43, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(19, 33, 43, 0.78), rgba(19, 33, 43, 0.7)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 12px, rgba(255, 255, 255, 0.05) 12px 30px);
  overflow: hidden;
}

.cadex-highlight {
  position: absolute;
  right: 16%;
  bottom: 28%;
  width: 32%;
  height: 24%;
  border: 3px solid var(--accent);
  background: rgba(216, 148, 61, 0.18);
}

.cadex-lines {
  display: grid;
  gap: 8px;
}

.cadex-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #d9e3ea;
}

.cadex-lines span:nth-child(1) {
  width: 92%;
}

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

.cadex-lines span:nth-child(3) {
  width: 84%;
}

.cadex-lines span:nth-child(4) {
  width: 62%;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-layout p {
  color: #aebdc6;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .container,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 18px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-item {
    width: 100%;
  }

  .dropdown {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7fafb;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown a {
    padding-left: 42px;
    border-radius: 0;
  }

  .hero {
    min-height: 520px;
    background:
      linear-gradient(90deg, rgba(19, 33, 43, 0.9), rgba(19, 33, 43, 0.64)),
      url("assets/ivt-workflow-hero.svg") center / cover no-repeat;
  }

  .hero.compact {
    min-height: 340px;
  }

  .section {
    padding: 58px 0;
  }

  .grid,
  .grid.two,
  .featured-grid,
  .contact-panel,
  .metrics,
  .project-showcase,
  .project-showcase:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .featured-card.wide {
    grid-row: auto;
  }

  .metrics {
    margin-top: -24px;
  }

  .project-showcase:nth-of-type(even) .project-copy {
    order: 0;
  }

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

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

  .step-number {
    min-height: 62px;
    justify-content: start;
    padding-left: 24px;
  }

  .cta-layout,
  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}
