:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --bg-strong: #02084d;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fbfcfa;
  --text: #02084d;
  --muted: #5f6a7e;
  --line: rgba(2, 8, 77, 0.1);
  --accent: #007fee;
  --accent-2: #c4f0fa;
  --sand: #cecdbd;
  --shadow: 0 24px 64px rgba(2, 8, 77, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 127, 238, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 240, 250, 0.3), transparent 22%),
    linear-gradient(180deg, #fbfcfa 0%, var(--bg) 100%);
}

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

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: transparent;
}

.header-stack {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(135deg, #02084d 0%, #005dc8 52%, #007fee 100%);
  box-shadow: 0 20px 45px rgba(2, 8, 77, 0.18);
}

.tabbar {
  margin: 0 0 18px;
  border-radius: 0 0 24px 24px;
  background: transparent;
  box-shadow: none;
}

.tabbar-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabbar-inner::-webkit-scrollbar {
  display: none;
}

.tabbar a {
  color: rgba(237, 244, 255, 0.85);
  white-space: nowrap;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
}

.tabbar a:hover,
.tabbar a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.brand img {
  display: block;
  width: 172px;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(237, 244, 255, 0.82);
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  padding: 10px 0 32px;
}

.page-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.section-card,
.contact-card,
.page-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-panel {
  padding: 52px;
}

.page-panel {
  position: relative;
  overflow: hidden;
}

.page-panel::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 127, 238, 0.12) 0%, rgba(0, 127, 238, 0) 70%);
  pointer-events: none;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}

.hero-brand img {
  display: block;
  width: min(240px, 58vw);
  height: auto;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.93;
  max-width: 10ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  text-wrap: balance;
}

.lede,
.page-panel p,
.section-head p,
.section-card p,
.step p,
.contact-card p,
.panel-top p,
.panel-item span {
  color: var(--muted);
  line-height: 1.72;
}

.lede {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.8;
}

.page-title {
  max-width: 9ch;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  color: var(--muted);
}

.page-kicker strong {
  color: var(--text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--bg-strong);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
}

.visual-shell {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.hero-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #02084d 0%, #005dc8 55%, #007fee 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-visual img {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: min(240px, 42%);
  height: auto;
  opacity: 0.24;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.35));
}

.hero-visual-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 340px;
  color: #edf4ff;
}

.hero-visual-copy strong {
  display: block;
  font-size: 1.1rem;
}

.hero-visual-copy span {
  display: block;
  margin-top: 10px;
  line-height: 1.65;
  color: rgba(237, 244, 255, 0.8);
}

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

.stat-chip {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(196, 240, 250, 0.36);
}

.stat-chip strong {
  display: block;
  font: 700 1.15rem/1.1 Georgia, "Times New Roman", serif;
}

.stat-chip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.metrics,
.services,
.use-cases,
.approach,
.cards-2 {
  display: grid;
  gap: 18px;
}

.metrics,
.services,
.use-cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.metric,
.step {
  border: 1px solid var(--line);
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.metric strong {
  display: block;
  font-size: 1.7rem;
  font-family: Georgia, "Times New Roman", serif;
}

.metric span {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-panel {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 8, 77, 0.98) 0%, rgba(0, 93, 200, 0.96) 100%);
  color: #edf4ff;
}

.panel-top {
  padding: 32px 32px 24px;
}

.panel-logo {
  display: block;
  width: 170px;
  height: auto;
  margin-bottom: 18px;
}

.panel-top p {
  margin: 0;
  color: rgba(237, 244, 255, 0.76);
  line-height: 1.7;
}

.panel-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.panel-item {
  padding: 22px 32px;
  background: rgba(0, 0, 0, 0.08);
}

.panel-item strong {
  display: block;
  font-size: 1rem;
}

.panel-item span {
  display: block;
  margin-top: 6px;
  color: rgba(237, 244, 255, 0.72);
  line-height: 1.6;
}

section {
  padding: 18px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 58ch;
  margin: 0;
}

.section-card {
  padding: 28px;
}

.section-card h3 {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.section-card p {
  margin: 0;
}

.list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.step {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface-strong);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: rgba(0, 127, 238, 0.14);
  color: var(--accent);
  font-weight: 800;
}

.step p {
  margin: 10px 0 0;
  line-height: 1.68;
}

.contact-card {
  padding: 34px;
  margin: 22px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.contact-card p {
  margin: 12px 0 0;
  max-width: 58ch;
}

.mail {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #02084d 0%, #007fee 100%);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.subnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.subnav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.subnav a:hover {
  background: rgba(46, 107, 255, 0.08);
  border-color: rgba(46, 107, 255, 0.18);
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.micro-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.micro-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.micro-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  padding: 0 0 38px;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero,
  .page-hero,
  .services,
  .use-cases,
  .approach,
  .contact-card,
  .cards-2,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .contact-card {
    align-items: start;
  }

  .contact-card {
    display: grid;
  }

  .page-title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 20px, 1160px);
  }

  .hero-copy,
  .page-panel,
  .section-card,
  .contact-card,
  .panel-top,
  .panel-item {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-copy,
  .page-panel {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .header-stack,
  .topbar {
    position: static;
  }

  .topbar {
    display: grid;
    gap: 10px;
  }

  .nav {
    display: none;
  }

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

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

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

  .hero-visual img {
    width: 46%;
    right: 14px;
  }
}
