:root {
  --bg: #07131f;
  --bg-deep: #030a12;
  --surface: rgba(8, 24, 36, 0.8);
  --surface-strong: rgba(10, 30, 44, 0.92);
  --line: rgba(138, 205, 255, 0.18);
  --line-strong: rgba(138, 205, 255, 0.28);
  --text: #eff7ff;
  --muted: #acc3d6;
  --accent: #62d2ff;
  --accent-warm: #ff9466;
  --accent-lime: #ccff7a;
  --shadow: 0 28px 80px rgba(2, 10, 18, 0.42);
  --radius: 28px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 18% 0%, rgba(98, 210, 255, 0.2), transparent 24%),
    radial-gradient(circle at 84% 6%, rgba(255, 148, 102, 0.16), transparent 22%),
    linear-gradient(155deg, #08111b 0%, #041321 46%, #082125 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 168px 168px;
  opacity: 0.22;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #07131f;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}

.page-shell::before {
  width: 24rem;
  height: 24rem;
  top: 24rem;
  right: -7rem;
  background: rgba(98, 210, 255, 0.12);
}

.page-shell::after {
  width: 20rem;
  height: 20rem;
  top: 90rem;
  left: -6rem;
  background: rgba(255, 148, 102, 0.11);
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(4, 12, 19, 0.72);
  border-bottom: 1px solid rgba(159, 214, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.6rem 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(98, 210, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.section {
  padding: clamp(3.75rem, 9vw, 7rem) 0;
}

.section-divider-wrap {
  display: flex;
  justify-content: center;
}

.section-divider {
  width: min(18rem, calc(100% - 2.5rem));
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(159, 214, 255, 0.08) 18%,
    rgba(159, 214, 255, 0.28) 50%,
    rgba(159, 214, 255, 0.08) 82%,
    transparent 100%
  );
}

.hero {
  padding-top: clamp(2.75rem, 10vw, 6rem);
}

.hero-grid,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: center;
}

.hero-intro {
  grid-column: 1 / -1;
}

.hero-title {
  max-width: 24ch;
  font-size: clamp(2.65rem, 5.2vw, 4.7rem);
}

.split-layout.reverse {
  grid-template-columns: minmax(300px, 0.98fr) minmax(0, 1.02fr);
}

.eyebrow,
.card-kicker {
  margin: 0 0 1rem;
  color: var(--accent-lime);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
}

h1 {
  max-width: 24ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  max-width: 32ch;
  font-size: clamp(2rem, 5vw, 3.35rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.lead,
.section-copy,
.info-card p,
.site-footer p {
  color: var(--muted);
}

.lead {
  max-width: 61ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
}

.section-heading {
  max-width: 70rem;
}

.section-copy {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin: 1.9rem 0 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.button.primary {
  color: #07131f;
  background: linear-gradient(135deg, var(--accent-lime), var(--accent));
  box-shadow: 0 14px 28px rgba(98, 210, 255, 0.22);
}

.button.secondary {
  border-color: rgba(159, 214, 255, 0.16);
  background: rgba(7, 25, 38, 0.78);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(159, 214, 255, 0.32);
  background: rgba(10, 29, 44, 0.92);
}

.signal-list,
.chips,
.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.signal-list li,
.chips span,
.chips a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 24, 37, 0.68);
  color: var(--muted);
}

.chips a {
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.chips a:hover,
.chips a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(12, 35, 52, 0.9);
  transform: translateY(-1px);
  outline: none;
}

.resource-label {
  margin: 2rem 0 0.9rem;
  color: #d9ebf7;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.resource-links {
  margin-top: 0;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(98, 210, 255, 0.4);
  text-underline-offset: 0.18em;
}

.text-link:hover,
.text-link:focus-visible {
  color: #b7f5ff;
  outline: none;
}

.media-card,
.info-card,
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(159, 214, 255, 0.14);
  box-shadow: var(--shadow);
}

.media-card {
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.88), rgba(5, 14, 22, 0.98));
}

.media-card::after,
.info-card::after,
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 36%);
  opacity: 0.45;
}

.hero-card {
  padding-bottom: 0;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(4, 13, 20, 0.74);
  border: 1px solid rgba(159, 214, 255, 0.12);
  color: #d9ebf7;
  backdrop-filter: blur(18px);
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

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

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

.gaps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 28rem;
  align-items: stretch;
}

.info-card {
  background: linear-gradient(180deg, rgba(9, 28, 41, 0.82), rgba(7, 19, 30, 0.95));
  padding: 1.35rem;
}

.info-card h3 {
  margin-top: 0.15rem;
}

.info-card p {
  margin: 0.95rem 0 0;
}

.gap-card {
  position: relative;
  height: 100%;
  min-height: 0;
  perspective: 1800px;
}

.gap-card-inner {
  position: relative;
  height: 100%;
  min-height: 0;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.gap-card.is-flipped .gap-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .gap-card:hover .gap-card-inner {
    transform: rotateY(180deg);
  }
}

.gap-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(159, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 28, 41, 0.84), rgba(7, 19, 30, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.gap-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 36%);
  opacity: 0.45;
}

.gap-card-front {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 16rem auto auto;
  align-content: start;
  gap: 1rem;
  transform: rotateY(0deg) translateZ(1px);
}

.gap-card-back {
  transform: rotateY(180deg) translateZ(1px);
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem;
}

.gap-card-back > div,
.gap-card-toggle,
.gap-card .card-index {
  position: relative;
  z-index: 1;
}

.gap-card-visual {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(159, 214, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 21, 33, 0.9), rgba(6, 14, 24, 0.95));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gap-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gap-card-front-copy {
  display: grid;
  gap: 0.95rem;
  position: static;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gap-card-front .card-index {
  position: absolute;
  top: 1.35rem;
  left: 1.35rem;
  z-index: 2;
  margin: 0;
  border-color: rgba(159, 214, 255, 0.28);
  background: rgba(4, 13, 20, 0.82);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.gap-card-front h3,
.gap-card-back h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  max-width: 24ch;
}

.gap-card-hint,
.gap-card-back p {
  margin: 0;
  color: var(--muted);
}

.gap-card-back p {
  margin-top: 1rem;
}

.gap-card-toggle {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 214, 255, 0.16);
  background: rgba(7, 25, 38, 0.82);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.gap-card-toggle:hover,
.gap-card-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(159, 214, 255, 0.34);
  background: rgba(10, 31, 46, 0.94);
  outline: none;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 214, 255, 0.16);
  background: rgba(98, 210, 255, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  padding-top: 0.15rem;
}

.workflow-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.workflow-list li {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(159, 214, 255, 0.14);
  background: rgba(8, 24, 36, 0.72);
  color: #d9ebf7;
}

.cta-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.6rem, 5vw, 2.75rem);
  background: linear-gradient(135deg, rgba(10, 31, 46, 0.96), rgba(8, 20, 31, 0.98));
}

.site-footer {
  padding: 0 0 4rem;
}

.footer-inner {
  border-top: 1px solid rgba(159, 214, 255, 0.12);
  padding-top: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.82s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

.delay-5 {
  animation-delay: 0.4s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .split-layout,
  .split-layout.reverse,
  .trio,
  .duo,
  .gaps-grid {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: none;
  }

  .gaps-grid {
    grid-auto-rows: 26.5rem;
  }

  .gap-card-front {
    grid-template-rows: 15rem auto auto;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-caption {
    position: static;
    margin: 1rem;
  }
}

@media (min-width: 721px) {
  .gap-card-toggle {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .button {
    width: 100%;
  }

  .gaps-grid {
    grid-auto-rows: 25.5rem;
  }

  .gap-card-front {
    grid-template-rows: 14rem auto auto;
  }

  .gap-card-toggle {
    width: 100%;
  }

  .signal-list,
  .chips {
    gap: 0.65rem;
  }

  .signal-list li,
  .chips span,
  .chips a {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .gap-card-inner {
    transition: none !important;
  }
}
