:root {
  --bg: #07111f;
  --bg-soft: #0b1727;
  --panel: rgba(15, 31, 51, 0.72);
  --panel-solid: #0e1d30;
  --text: #f4f7fb;
  --muted: #9fb0c3;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #48e1c8;
  --accent-2: #6ba8ff;
  --accent-text: #04100d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(7, 17, 31, 0.72);
}

html[data-theme="light"] {
  --bg: #f6f9fc;
  --bg-soft: #eef4f9;
  --panel: rgba(255,255,255,0.82);
  --panel-solid: #ffffff;
  --text: #0c1a2c;
  --muted: #5e7188;
  --line: rgba(12, 26, 44, 0.11);
  --accent: #0bb89f;
  --accent-2: #397ee8;
  --accent-text: #ffffff;
  --shadow: 0 24px 80px rgba(29, 52, 79, 0.12);
  --header-bg: rgba(246, 249, 252, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(72, 225, 200, 0.10), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(107, 168, 255, 0.10), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  z-index: -1;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(72, 225, 200, .16), rgba(107,168,255,.08)),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  overflow: hidden;
}

.brand-mark span:first-child {
  color: var(--accent);
  justify-self: end;
}
.brand-mark span:last-child {
  color: var(--text);
  justify-self: start;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: -.01em;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 3px;
  font-size: .72rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.theme-toggle,
.menu-toggle,
.copy-email {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.theme-icon {
  font-size: 1.15rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 10px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  margin-bottom: 26px;
  max-width: 800px;
}

h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--accent-text);
  background: linear-gradient(135deg, var(--accent), #64d9ff);
  box-shadow: 0 12px 35px rgba(72,225,200,.20);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.btn-large {
  min-height: 58px;
  padding-inline: 24px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  background: rgba(255,255,255,.02);
}

.network-card {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.045), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.network-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(72, 225, 200, .14);
  filter: blur(70px);
  z-index: -1;
}

.status-pill {
  position: absolute;
  left: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  background: var(--panel-solid);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(72,225,200,.10);
}

.network-scene {
  position: absolute;
  inset: 80px 22px 120px;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 12;
  opacity: .42;
  animation: flow 8s linear infinite;
}

.node {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  z-index: 2;
}

.node-main {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.65rem;
  background: linear-gradient(145deg, rgba(72,225,200,.23), rgba(107,168,255,.12)), var(--panel-solid);
  border-color: rgba(72,225,200,.35);
  animation: pulse 4s ease-in-out infinite;
}

.node-a { left: 7%; top: 10%; }
.node-b { right: 5%; top: 10%; }
.node-c { left: 4%; bottom: 8%; }
.node-d { right: 4%; bottom: 8%; }

.metric-row {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div {
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 14px;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
}

.metric-row span {
  color: var(--muted);
  font-size: .67rem;
  margin-top: 2px;
}

.section {
  padding: 110px 0;
}

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

.section-heading h2,
.approach-panel h2,
.contact-panel h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  margin-bottom: 18px;
}

.section-heading > p:last-child,
.contact-panel p {
  color: var(--muted);
  max-width: 620px;
}

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

.service-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.032), transparent),
    var(--panel);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(72,225,200,.28);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 26px;
  color: var(--accent);
  background: rgba(72,225,200,.08);
  border: 1px solid rgba(72,225,200,.12);
  font-size: 1.35rem;
}

.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: .93rem;
}

.expertise {
  background: linear-gradient(180deg, transparent, rgba(72,225,200,.035), transparent);
}

.expertise-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: center;
}

.expertise-layout .section-heading {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
}

.text-link span {
  color: var(--accent);
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
}

.stack-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(72,225,200,.08);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.stack-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.stack-card p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: .9rem;
}

.approach-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(72,225,200,.07), rgba(107,168,255,.035) 55%, transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.approach-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  padding: clamp(34px, 6vw, 72px);
}

.approach-points {
  display: grid;
  gap: 14px;
}

.approach-points div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.approach-points div:last-child {
  border-bottom: 0;
}

.approach-points span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.approach-points p {
  margin: 0;
  color: var(--muted);
}

.contact {
  padding-top: 60px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px, 5vw, 64px);
}

.contact-panel h2 {
  margin-bottom: 12px;
}

.contact-panel p {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: min(100%, 330px);
}

.copy-email {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

.site-footer {
  padding: 25px 0 35px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: .82rem;
}

.footer-brand {
  justify-self: start;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner > a:last-child {
  justify-self: end;
  text-decoration: none;
}

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

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

@keyframes flow {
  to { stroke-dashoffset: -80; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(0,0,0,.2), 0 0 0 0 rgba(72,225,200,.08); }
  50% { box-shadow: 0 14px 30px rgba(0,0,0,.2), 0 0 0 18px rgba(72,225,200,0); }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .hero-grid,
  .expertise-layout,
  .approach-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .network-card {
    min-height: 500px;
  }

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

  .approach-panel {
    gap: 25px;
  }

  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
  }

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

  .primary-nav a,
  .theme-toggle {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
  }

  .theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 115px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .network-card {
    min-height: 440px;
    border-radius: 22px;
  }

  .network-scene {
    inset: 70px 12px 116px;
  }

  .node {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: .82rem;
  }

  .node-main {
    width: 82px;
    height: 82px;
    border-radius: 23px;
    font-size: 1.4rem;
  }

  .metric-row {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .metric-row div {
    padding: 10px 8px;
  }

  .metric-row span {
    font-size: .58rem;
  }

  .section {
    padding: 82px 0;
  }

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

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

  .approach-panel,
  .contact-panel {
    border-radius: 21px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-inner > a:last-child {
    justify-self: center;
  }

  .footer-inner p {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
