:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5b667a;
  --line: #d9dfeb;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --teal: #0f766e;
  --blue: #2357a6;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.12);
}

* {
  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);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 223, 235, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(36px, 6vw, 72px);
  background:
    linear-gradient(120deg, rgba(245, 247, 251, 0.9), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 82% 22%, rgba(15, 118, 110, 0.14), transparent 28%),
    var(--surface);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

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

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

.hero-visual {
  display: grid;
  gap: 16px;
  width: 100%;
}

.hero-visual-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 223, 235, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-visual-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.architecture-card {
  aspect-ratio: 16 / 8.2;
}

.dashboard-card {
  aspect-ratio: 16 / 7.4;
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
}

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

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

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

.company-grid article,
.service-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.company-grid article {
  padding: 22px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.company-grid p,
.service-card p,
.approach-list p,
.contact-card span {
  margin: 0;
  color: var(--muted);
}

.service-card {
  min-height: 268px;
  padding: 26px;
}

.service-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 850;
}

.experience-section {
  background: white;
}

.experience-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.market-map,
.architecture-panel {
  min-height: 520px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.panel-heading {
  margin-bottom: 20px;
}

.panel-heading p,
.capability-tags {
  margin: 0;
  color: var(--muted);
}

.market-map svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

.map-land {
  fill: #e8eef8;
  stroke: #c8d2e2;
  stroke-width: 2;
}

.map-route {
  fill: none;
  stroke: rgba(35, 87, 166, 0.42);
  stroke-width: 3;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
}

.map-point circle {
  fill: var(--teal);
  stroke: white;
  stroke-width: 4;
  filter: drop-shadow(0 8px 14px rgba(15, 118, 110, 0.22));
}

.map-point text {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.system-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 34px;
}

.system-node {
  position: relative;
  min-height: 104px;
  padding: 22px;
  border: 1px solid rgba(217, 223, 235, 0.9);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.07);
}

.system-node::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--node-color);
}

.system-node.source {
  --node-color: #eaf1ff;
}

.system-node.engine {
  --node-color: #ddf7f2;
}

.system-node.platform {
  --node-color: #fff3da;
}

.system-node span,
.system-node small {
  display: block;
  max-width: calc(100% - 70px);
}

.system-node span {
  font-size: 20px;
  font-weight: 850;
}

.system-node small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.system-line {
  width: 2px;
  height: 28px;
  margin: -10px auto;
  background: linear-gradient(var(--blue), var(--teal));
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.capability-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.approach-list div {
  min-height: 170px;
  padding: 28px;
  background: white;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #0f172a;
  color: white;
}

.contact-section .eyebrow {
  color: #63d5c8;
}

.contact-section p {
  max-width: 680px;
  color: #cad3e2;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  color: var(--ink);
}

.contact-card a {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

  .hero {
    min-height: auto;
  }

  .company-grid,
  .services-grid,
  .experience-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 17px;
  }

  .architecture-card,
  .dashboard-card {
    aspect-ratio: 16 / 9.2;
  }

  .company-grid,
  .services-grid,
  .experience-showcase,
  .approach-list {
    grid-template-columns: 1fr;
  }

  .market-map,
  .architecture-panel {
    min-height: auto;
    padding: 20px;
  }

  .map-point text {
    font-size: 20px;
  }

  .service-card {
    min-height: auto;
  }

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