:root {
  --bg: #eef3fa;
  --paper: #f6f9fd;
  --ink: #0b1220;
  --muted: #64748b;
  --line: #c3cfdf;
  --deep: #1c2b5a;
  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 50px rgba(11, 18, 32, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.2), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(28, 43, 90, 0.12), transparent 35%),
    var(--bg);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 12px;
}

.site-header,
main,
.site-footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--deep);
  max-width: min(84vw, 360px);
}

.brand img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

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

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(34, 211, 238, 0.14);
}

.site-nav a[aria-current="page"] {
  background: rgba(28, 43, 90, 0.14);
  color: var(--deep);
  font-weight: 700;
}

.site-nav .products-pill {
  background: rgba(28, 43, 90, 0.1);
  border: 1px solid rgba(28, 43, 90, 0.18);
}

@media (max-width: 520px) {
  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
    padding: 7px 8px;
    font-size: 0.9rem;
  }
}

main {
  padding: 10px 0 24px;
}

.hero {
  background: linear-gradient(145deg, rgba(246, 249, 253, 0.95), rgba(232, 243, 255, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  padding: 28px 124px 28px 20px;
}

.page-hero {
  background: linear-gradient(145deg, rgba(246, 249, 253, 0.95), rgba(236, 243, 252, 0.92));
  border: 1px solid rgba(28, 43, 90, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  padding: 28px 124px 28px 20px;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 112px;
  height: 88px;
  background-image: url("./assets/logos/silent-logic-mark-hero-corner.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 8px 16px rgba(11, 18, 32, 0.2));
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

body[data-page="about"] .page-hero {
  background: linear-gradient(145deg, rgba(236, 243, 252, 0.96), rgba(220, 231, 247, 0.92));
  border-color: rgba(28, 43, 90, 0.34);
  box-shadow: var(--shadow-lg);
}

body[data-page="about"] .page-hero .lead {
  color: #526178;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--deep);
  font-weight: 700;
}

h1 {
  margin: 10px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.8rem, 4.8vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

.lead {
  margin: 18px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #1c2b5a, #0b1220);
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.22);
}

.btn-outline {
  color: var(--deep);
  border-color: rgba(28, 43, 90, 0.32);
  background: rgba(246, 249, 253, 0.95);
}

.hero-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-facts li {
  border: 1px solid rgba(28, 43, 90, 0.18);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.hero-facts strong {
  display: block;
  font-size: 0.94rem;
}

.hero-facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  margin-top: 26px;
}

.section h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.01em;
}

.card-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.info-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.info-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(246, 249, 253, 0.88);
  box-shadow: var(--shadow-sm);
}

body[data-page="about"] .info-grid article {
  background: rgba(232, 239, 250, 0.92);
  border-color: rgba(28, 43, 90, 0.26);
}

.info-grid h3 {
  margin: 0;
  font-size: 1.08rem;
}

.info-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(246, 249, 253, 0.88);
  box-shadow: var(--shadow-sm);
}

.card-grid h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section-accent {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.28);
  padding: 18px;
  background: linear-gradient(140deg, rgba(28, 43, 90, 0.96), rgba(11, 18, 32, 0.96));
  color: #eaf1f7;
}

.section-accent .process-list {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 14px;
}

.section-accent h3 {
  margin: 0;
  font-size: 1.02rem;
}

.section-accent p {
  margin: 6px 0 0;
  color: #cbd5e1;
}

.criteria-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
}

.criteria-list li {
  color: #dbeafe;
}

.accent-copy {
  margin: 12px 0 0;
  max-width: 64ch;
}

.product-panel {
  margin-top: 12px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(246, 249, 253, 0.94);
}

.product-panel p {
  margin: 0;
  color: var(--muted);
}

.product-panel p + p {
  margin-top: 10px;
}

.product-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-list {
  margin: 0;
  padding-left: 1.2rem;
}

.contact p {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.contact a {
  color: var(--deep);
}

.site-footer {
  padding: 30px 0 42px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.footer-nav a {
  color: var(--deep);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  max-width: 68ch;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 650ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 90ms;
}

.delay-2 {
  animation-delay: 180ms;
}

.delay-3 {
  animation-delay: 270ms;
}

.delay-4 {
  animation-delay: 360ms;
}

.delay-5 {
  animation-delay: 450ms;
}

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

@media (min-width: 760px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    max-width: 420px;
  }

  .brand img {
    max-width: 420px;
  }

  .hero {
    padding: 42px 188px 42px 40px;
  }

  .page-hero {
    padding: 34px 176px 34px 32px;
  }

  .hero::after,
  .page-hero::after {
    top: 16px;
    right: 14px;
    width: 166px;
    height: 130px;
  }

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

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

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

  .section-accent {
    padding: 24px;
  }
}

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

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