:root {
  --bg: #f4fbff;
  --ink: #13303a;
  --ink-soft: #31525a;
  --line: #77c8cc;
  --line-strong: #27a8b3;
  --honey: #ffbe42;
  --mint: #53d4d1;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-dark: rgba(4, 34, 45, 0.76);
  --shadow: 0 22px 70px rgba(19, 48, 58, 0.18);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Chakra Petch", "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.94), rgba(229, 245, 239, 0.96)),
    linear-gradient(110deg, #dff9f8 0%, #fff2cf 48%, #e8f7f0 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(25, 90, 109, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 90, 109, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.circuit-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0,
      transparent 78px,
      rgba(39, 168, 179, 0.24) 78px,
      rgba(39, 168, 179, 0.24) 80px
    ),
    repeating-linear-gradient(
      9deg,
      transparent 0,
      transparent 124px,
      rgba(255, 166, 55, 0.2) 124px,
      rgba(255, 166, 55, 0.2) 126px
    );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  background: rgba(244, 251, 255, 0.84);
  border-bottom: 1px solid rgba(43, 132, 140, 0.14);
  backdrop-filter: blur(12px);
}

.site-nav,
.hero-actions,
.identity-strip {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 0.35rem;
  border: 1px solid rgba(29, 110, 130, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.25rem;
}

.site-nav a {
  border-radius: 999px;
  color: #255f67;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(83, 212, 209, 0.18);
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: -0.25rem;
  color: #f5feff;
  background:
    linear-gradient(130deg, rgba(3, 43, 55, 0.98), rgba(12, 63, 83, 0.94) 58%, rgba(20, 84, 104, 0.92)),
    #032b37;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, rgba(244, 251, 255, 0.95));
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(124, 230, 233, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 230, 233, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.trace-line {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 14 12;
  animation: traceFlow 10s linear infinite;
}

.trace-primary {
  stroke: rgba(118, 236, 242, 0.68);
  stroke-width: 4;
}

.trace-secondary {
  stroke: rgba(255, 198, 95, 0.58);
  stroke-width: 3;
  animation-duration: 13s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  max-width: var(--max);
  min-height: 620px;
  margin: 0 auto;
  padding: 5rem 1rem 5.2rem;
}

.hero-copy {
  align-self: center;
  min-width: 0;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #87efe9;
  font-family: "Space Mono", "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: 4.1rem;
  line-height: 1;
}

h2 {
  margin-bottom: 0.72rem;
  font-size: 2.1rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
}

.lede {
  max-width: 48ch;
  margin-bottom: 1.3rem;
  color: rgba(245, 254, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.55;
}

.identity-strip {
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}

.identity-strip div {
  min-width: 9rem;
  border: 1px solid rgba(151, 241, 238, 0.22);
  border-radius: 8px;
  background: rgba(7, 38, 51, 0.68);
  padding: 0.72rem 0.85rem;
}

.identity-strip dt {
  display: block;
  color: rgba(183, 249, 245, 0.72);
  font-family: "Space Mono", "SFMono-Regular", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.identity-strip dd {
  margin: 0.18rem 0 0;
  color: #ffffff;
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.72rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button-primary {
  color: #132722;
  background: linear-gradient(120deg, #ffd66e, #ffb640);
  box-shadow: 0 10px 24px rgba(191, 119, 6, 0.28);
}

.button-secondary {
  color: #d9ffff;
  border-color: rgba(151, 241, 238, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-heading {
  max-width: 680px;
}

.section-heading .eyebrow {
  color: #1f6f7f;
}

.section-heading p,
.detail-card p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.detail-card {
  border: 1px solid rgba(41, 125, 140, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(20, 66, 84, 0.1);
  padding: 1.05rem;
}

.detail-card p {
  margin-bottom: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(41, 125, 140, 0.22);
  padding: 1.4rem 1rem 2rem;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.24rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #155f6f;
  font-weight: 700;
}

@keyframes traceFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -180;
  }
}

@media (max-width: 900px) {
  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 3rem;
  }

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

@media (max-width: 640px) {
  .topbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0.8rem 0.7rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 1.6rem);
  }

  .site-nav a {
    padding-inline: 0.45rem;
    text-align: center;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  h2 {
    font-size: 1.75rem;
  }

  .lede {
    max-width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .hero-inner {
    padding: 1.8rem 0.8rem 2.8rem;
  }

  .identity-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.95rem;
  }

  .identity-strip div:first-child {
    grid-column: 1 / -1;
  }

  .identity-strip div {
    min-width: 0;
    padding: 0.6rem;
  }

  .identity-strip dt {
    font-size: 0.62rem;
  }

  .identity-strip dd {
    overflow-wrap: anywhere;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .section {
    padding: 3rem 0.8rem;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 0.8rem;
  }
}

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