:root {
  --ink: #102033;
  --muted: #5b6878;
  --line: #d8e1ea;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-blue: #edf6fb;
  --teal: #0a8aa0;
  --blue: #155fa8;
  --green: #1f9d63;
  --yellow: #f3b329;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 28px);
  min-height: 72px;
  padding: 0 clamp(18px, 6vw, 84px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  min-width: 0;
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 700;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 0 5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--blue);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 160ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: clamp(360px, 56vh, 540px);
  padding: clamp(48px, 8vw, 88px) clamp(18px, 6vw, 84px) clamp(42px, 7vw, 72px);
  background:
    linear-gradient(115deg, rgba(10, 138, 160, 0.12), rgba(31, 157, 99, 0.08) 48%, rgba(255, 255, 255, 0) 48%),
    var(--surface);
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 800px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-logo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.74) 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 246, 251, 0.86));
  box-shadow:
    0 28px 70px rgba(16, 32, 51, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    translate3d(var(--move-x, 0), var(--move-y, 0), 0)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(var(--card-scale, 1));
  transition: transform 90ms ease, box-shadow 180ms ease;
  animation: cardFloat 6s ease-in-out infinite;
  will-change: transform;
  cursor: pointer;
}

.hero-logo-card.is-pointer-active {
  --card-scale: 1.035;
  animation-play-state: paused;
  box-shadow:
    0 38px 90px rgba(16, 32, 51, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-logo-card::before,
.hero-logo-card::after {
  position: absolute;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-logo-card::before {
  inset: 0;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 35%), rgba(10, 138, 160, 0.28), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  opacity: 0.72;
  transform: translateZ(12px);
}

.hero-logo-card::after {
  inset: auto 14% -18px;
  height: 30px;
  background: rgba(16, 32, 51, 0.14);
  filter: blur(18px);
}

.hero-logo-card img {
  width: min(76%, 250px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(16, 32, 51, 0.18));
  transform: translateZ(28px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
strong,
span,
small,
td,
th {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.page-content {
  display: grid;
  gap: clamp(22px, 4vw, 34px);
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 82px) clamp(18px, 6vw, 84px) clamp(64px, 9vw, 96px);
}

.page-content > p,
.article-content > p,
.article-support > p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.09rem);
}

.content-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.05rem);
}

.card-grid,
.step-grid,
.article-grid,
.bio-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin: 4px 0 20px;
}

.info-card,
.step-card,
.article-card,
.bio-grid article,
.source-grid a,
.example-box {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(198, 215, 230, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 254, 0.98));
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.055);
  text-decoration: none;
  cursor: pointer;
}

.info-card::before,
.step-card::before,
.article-card::before,
.bio-grid article::before,
.source-grid a::before,
.example-box::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 35%), rgba(10, 138, 160, 0.16), rgba(255, 255, 255, 0) 40%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.info-card > *,
.step-card > *,
.article-card > *,
.bio-grid article > *,
.source-grid a > *,
.example-box > * {
  position: relative;
  z-index: 1;
}

.info-card,
.article-card,
.source-grid a {
  display: grid;
  gap: 10px;
  align-content: start;
}

.info-card strong,
.article-card strong {
  font-size: 1.13rem;
  line-height: 1.25;
}

.info-card span,
.article-card p,
.step-card p,
.bio-grid p,
.example-box p,
.source-grid span,
.article-card small {
  margin: 0;
  color: var(--muted);
}

.article-card span,
.step-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.step-card {
  min-height: 190px;
  display: grid;
  align-content: start;
}

.info-card,
.step-card,
.article-card,
.bio-grid article,
.source-grid a,
.example-box {
  transform:
    perspective(800px)
    translate3d(var(--move-x, 0), var(--move-y, 0), 0)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    scale(var(--card-scale, 1));
  transition: transform 90ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
}

.info-card:hover,
.info-card:focus-visible,
.step-card:hover,
.step-card:focus-within,
.article-card:hover,
.article-card:focus-visible,
.bio-grid article:hover,
.bio-grid article:focus-within,
.source-grid a:hover,
.source-grid a:focus-visible,
.example-box:hover {
  --card-scale: 1.025;
  border-color: rgba(21, 95, 168, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(245, 250, 253, 1));
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.11);
}

.info-card:hover::before,
.step-card:hover::before,
.article-card:hover::before,
.bio-grid article:hover::before,
.source-grid a:hover::before,
.example-box:hover::before {
  opacity: 1;
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

.article-card small {
  font-weight: 700;
}

.article-content {
  max-width: 980px;
}

.article-content h2:not(:first-child),
.article-support h2:not(:first-child) {
  margin-top: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.article-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.article-support {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

.score-table th,
.score-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.score-table th {
  background: var(--surface-blue);
}

.score-table td:nth-child(2) {
  width: 96px;
  color: var(--blue);
  font-weight: 900;
}

.example-box {
  background: var(--surface-soft);
}

.example-box strong,
.source-grid a {
  color: var(--ink);
  font-weight: 800;
}

.source-grid span {
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9d6e2;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

.contact-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue);
  font: inherit;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px clamp(18px, 6vw, 84px);
  color: #d8e5ef;
  background: #071723;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer div:last-child {
  text-align: right;
}

.site-footer strong {
  font-weight: 900;
}

.site-footer span,
.footer-links a {
  color: #b9c9d6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    width: min(58vw, 230px);
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer div:last-child,
  .footer-links {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .brand span {
    max-width: 42vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: clamp(14px, 6vw, 28px);
    left: clamp(14px, 6vw, 28px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    min-height: auto;
    padding: 12px;
    white-space: normal;
  }

  .site-nav a::after {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 0;
    width: 2px;
    height: auto;
    border-radius: 999px;
    transform: scaleY(0.35);
    transform-origin: top center;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after,
  .site-nav a.is-active::after {
    transform: scaleY(1);
  }

  .page-hero {
    padding-top: 40px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .hero-logo-card {
    width: min(54vw, 190px);
  }

  .article-meta {
    display: grid;
  }

  .score-table {
    min-width: 620px;
  }

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

@media (max-width: 430px) {
  .page-hero {
    gap: 22px;
  }

  .hero-logo-card {
    width: min(62vw, 170px);
  }

  .info-card,
  .step-card,
  .article-card,
  .bio-grid article,
  .source-grid a,
  .example-box {
    padding: 16px;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}
