:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --navy: #071e55;
  --navy-soft: #143074;
  --blue: #2046a1;
  --blue-bright: #3868d9;
  --text-soft: #50607f;
  --border: rgba(7, 30, 85, 0.12);
  --shadow: 0 28px 80px rgba(7, 30, 85, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f8fb 0%, #eff2f8 52%, #f7f8fb 100%);
  color: var(--navy);
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.site-main {
  position: relative;
}

.arc-network {
  position: absolute;
  inset: 120px 0 auto;
  height: 1180px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.96;
}

.arc-network svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.energy-rail {
  fill: none;
  stroke: rgba(16, 42, 94, 0.16);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.energy-flow {
  fill: none;
  stroke: url(#spell-core);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 86;
  animation: spell-run 5.6s linear infinite;
  filter: drop-shadow(0 0 9px rgba(87, 186, 255, 0.7));
}

.energy-flow-slower {
  animation-duration: 8.8s;
  animation-delay: -1.4s;
}

.pulse-core {
  animation: spell-throb 1.6s ease-in-out infinite;
}

.pulse-halo {
  animation: spell-throb-wide 2.2s ease-in-out infinite;
}

.topbar,
.content-block,
.hero,
.bento-section,
.appointment-panel,
.footer {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 28px;
  backdrop-filter: blur(10px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(7, 30, 85, 0.16);
  background: #f8f9fc;
  font-size: 28px;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
  color: #5d6f95;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav a:hover {
  background: #eef2f8;
}

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  border-radius: 34px;
  position: relative;
  z-index: 10;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.bento-section {
  margin-top: 24px;
  padding: 34px 30px;
  border-radius: 34px;
  position: relative;
  z-index: 10;
}

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

.bento-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(9, 14, 28, 0.88) 0%, rgba(8, 12, 22, 0.98) 100%);
  color: rgba(241, 246, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 48px rgba(7, 18, 44, 0.3);
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  --spot-x: 50%;
  --spot-y: 50%;
}

.bento-card::after,
.interactive-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(94, 194, 255, 0.22), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.bento-card:hover::after,
.interactive-card:hover::after {
  opacity: 1;
}

.bento-card:hover,
.interactive-card:hover {
  border-color: rgba(114, 210, 255, 0.22);
}

.bento-card p,
.bento-card span,
.bento-card li {
  color: rgba(219, 230, 255, 0.78);
}

.bento-card h3 {
  margin: 12px 0 0;
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.08;
}

.bento-card-hero {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 520px;
  background:
    radial-gradient(circle at top left, rgba(70, 133, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(82, 194, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(9, 14, 28, 0.9) 0%, rgba(5, 9, 18, 1) 100%);
}

.bento-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.chart-panel {
  position: relative;
  min-height: 270px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 25%, 10% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 96%);
}

.chart-line {
  position: absolute;
  inset-inline: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(122, 211, 255, 0.9), transparent);
  box-shadow: 0 0 18px rgba(98, 194, 255, 0.78);
  transform-origin: left center;
  animation: line-shift 7s ease-in-out infinite;
}

.chart-line-a {
  top: 68%;
  clip-path: polygon(0% 80%, 12% 62%, 26% 68%, 41% 34%, 55% 48%, 67% 24%, 80% 44%, 100% 12%, 100% 100%, 0% 100%);
}

.chart-line-b {
  top: 58%;
  opacity: 0.58;
  animation-duration: 9s;
  clip-path: polygon(0% 84%, 17% 71%, 31% 78%, 46% 52%, 60% 60%, 76% 18%, 100% 38%, 100% 100%, 0% 100%);
}

.chart-line-c {
  top: 75%;
  opacity: 0.36;
  animation-duration: 11s;
  clip-path: polygon(0% 90%, 12% 84%, 24% 76%, 45% 68%, 58% 60%, 72% 46%, 88% 30%, 100% 16%, 100% 100%, 0% 100%);
}

.chart-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d4f5ff;
  box-shadow:
    0 0 18px rgba(117, 217, 255, 0.95),
    0 0 48px rgba(82, 183, 255, 0.72);
  inset-inline-start: 14%;
  inset-block-start: 61%;
  animation: chart-run 6.8s linear infinite;
}

.chart-stat {
  position: absolute;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  min-width: 176px;
  border-radius: 18px;
  background: rgba(5, 9, 18, 0.82);
  border: 1px solid rgba(114, 210, 255, 0.12);
  backdrop-filter: blur(12px);
}

.chart-stat-left {
  left: 16px;
}

.chart-stat-right {
  right: 16px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chart-stat strong,
.metric-value {
  font-size: clamp(32px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.bento-card:nth-child(2) {
  grid-column: span 3;
}

.bento-card-metric {
  grid-column: span 3;
  justify-content: flex-end;
}

.metric-meta {
  display: inline-flex;
  margin-top: 14px;
  max-width: 240px;
  color: rgba(208, 221, 255, 0.62);
  line-height: 1.7;
}

.bento-card-wide {
  grid-column: span 6;
}

.bento-card-dark {
  background:
    radial-gradient(circle at top left, rgba(90, 176, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(5, 20, 58, 0.94) 0%, rgba(7, 16, 40, 1) 100%);
}

.meter-stack {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.meter-row {
  display: grid;
  gap: 10px;
}

.meter-row span {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.meter > span {
  display: block;
  width: var(--meter);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2046a1, #5cc0ff, #d0f3ff);
  box-shadow: 0 0 18px rgba(93, 191, 255, 0.56);
  transform-origin: left center;
  animation: meter-grow 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-glow {
  position: absolute;
  inset: auto -20% -46% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(88, 188, 255, 0.2), transparent 66%);
  filter: blur(18px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-panel {
  position: relative;
  padding: 64px 52px 56px;
  background:
    radial-gradient(circle at top left, rgba(56, 104, 217, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 24%),
    var(--navy);
  color: white;
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-copy,
.section-copy,
.body-copy {
  line-height: 1.9;
  font-size: 16px;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: white;
}

.hero-aside {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.glass-card,
.service-card,
.mini-card,
.stack-card,
.appointment-card {
  border: 1px solid rgba(7, 30, 85, 0.1);
  border-radius: 28px;
}

.glass-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.glass-card h2,
.section-title,
.service-card h3,
.mini-card h3,
.stack-card h3 {
  margin: 14px 0 0;
  line-height: 1.15;
}

.glass-card h2,
.section-title {
  font-size: clamp(32px, 3.1vw, 48px);
  text-transform: uppercase;
}

.glass-card p:last-child,
.service-card p,
.mini-card p,
.stack-card p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.aside-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.tag-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid rgba(7, 30, 85, 0.11);
  font-size: 12px;
  font-weight: 700;
  color: #20355f;
}

.contact-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(32, 70, 161, 0.24);
  text-underline-offset: 5px;
}

.content-block {
  margin-top: 24px;
  padding: 34px 30px;
  border-radius: 34px;
  position: relative;
  z-index: 10;
}

.content-block-tight {
  margin-top: 0;
}

.content-grid,
.split-section,
.appointment-panel {
  display: grid;
  gap: 24px;
}

.content-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-title {
  margin-bottom: 0;
}

.section-copy,
.body-copy {
  color: var(--text-soft);
}

.body-copy p,
.section-copy {
  margin-top: 18px;
}

.card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 28px 24px;
  background: white;
  position: relative;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  transform-style: preserve-3d;
  --spot-x: 50%;
  --spot-y: 50%;
}

.service-card h3,
.mini-card h3,
.stack-card h3 {
  font-size: 26px;
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #20355f;
  line-height: 1.9;
  font-weight: 700;
}

.service-card-inverse {
  background:
    radial-gradient(circle at bottom right, rgba(56, 104, 217, 0.24), transparent 34%),
    var(--navy);
  color: white;
}

.service-card-inverse p,
.service-card-inverse ul {
  color: rgba(255, 255, 255, 0.84);
}

.split-section {
  margin-top: 24px;
  grid-template-columns: 1.04fr 0.96fr;
}

.navy-panel,
.appointment-panel {
  background: linear-gradient(135deg, #071e55 0%, #143074 55%, #2046a1 100%);
  color: white;
}

.navy-panel {
  padding: 34px 30px;
  border-radius: 34px;
  box-shadow: 0 28px 72px rgba(7, 30, 85, 0.18);
  position: relative;
  z-index: 10;
}

.light,
.eyebrow-light,
.contact-link-light {
  color: white;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.7);
}

.section-copy.light,
.mini-card p,
.appointment-panel .section-copy {
  color: rgba(255, 255, 255, 0.82);
}

.mini-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.stacked-cards {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.stack-card {
  padding: 22px;
  background: white;
}

.spec-table {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(7, 30, 85, 0.12);
}

.spec-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.5fr;
  gap: 16px;
  padding: 16px 18px;
  background: white;
  border-top: 1px solid rgba(7, 30, 85, 0.08);
  font-size: 14px;
  line-height: 1.65;
}

.spec-row span:first-child {
  font-weight: 800;
}

.spec-head {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  border-top: 0;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.appointment-panel {
  margin-top: 24px;
  padding: 36px 30px;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(7, 30, 85, 0.18);
  position: relative;
  z-index: 10;
}

.appointment-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.agenda-list li {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.ops-block {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(9, 26, 69, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-links a,
.footer-meta a {
  font-weight: 700;
}

@keyframes spell-run {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -200;
  }
}

@keyframes spell-throb {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.64;
  }

  45% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes spell-throb-wide {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.18;
  }

  50% {
    transform: scale(1.16);
    opacity: 0.82;
  }
}

@keyframes meter-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes line-shift {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
    opacity: 0.42;
  }

  50% {
    transform: translateY(-8px) scaleX(1.015);
    opacity: 0.88;
  }
}

@keyframes chart-run {
  0% {
    transform: translate(0, 0) scale(0.72);
  }

  18% {
    transform: translate(72px, -34px) scale(1);
  }

  36% {
    transform: translate(170px, -8px) scale(0.82);
  }

  58% {
    transform: translate(280px, -112px) scale(1.08);
  }

  76% {
    transform: translate(388px, -54px) scale(0.8);
  }

  100% {
    transform: translate(520px, -162px) scale(1.16);
  }
}

@media (max-width: 1100px) {
  .arc-network {
    inset: 112px 0 auto;
    height: 920px;
    opacity: 0.8;
  }

  .hero,
  .bento-grid,
  .content-grid,
  .split-section,
  .appointment-panel,
  .card-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card-hero,
  .bento-card-wide,
  .bento-card-metric,
  .bento-card:nth-child(2) {
    grid-column: span 12;
  }

  .hero-panel,
  .bento-section,
  .hero-aside,
  .content-block,
  .navy-panel,
  .appointment-panel,
  .footer {
    padding: 26px 20px;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 12px;
  }

  .arc-network {
    display: none;
  }

  .topbar {
    position: static;
  }

  .bento-section,
  .hero-panel,
  .hero-aside,
  .content-block,
  .navy-panel,
  .appointment-panel {
    padding-inline: 18px;
  }

  .hero h1,
  .section-title,
  .glass-card h2 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .contact-link {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .button {
    width: 100%;
  }

  .chart-panel {
    min-height: 220px;
  }

  .chart-stat {
    position: static;
    margin: 14px;
  }
}
