/* Clairvynt website redesign (static site)
   Design goals: modern B2B, high trust, fast, accessible. */

:root {
  /* Color */
  --bg: #0A1628;
  --surface: rgba(27, 75, 90, 0.14);
  --surface-solid: #1A2832;
  --ink: #E8F1F4;
  --muted: #A8BCC4;
  --muted-2: #6B8490;
  --line: rgba(77, 173, 183, 0.18);

  --accent: #4DADB7;
  --accent-ink: #0A1628;
  --accent-2: #6ECBD4;
  --warn: #f59e0b;

  /* Brand tokens */
  --color-brand-teal: #4DADB7;
  --color-brand-teal-dark: #1B4B5A;
  --color-brand-navy: #0A1628;
  --color-bg-deep: #0F1A1F;
  --color-bg-surface: #1A2832;
  --color-bg-elevated: #233845;
  --color-accent-light: #6ECBD4;
  --color-accent-bright: #8FDBDC;
  --color-accent-glow: rgba(77, 173, 183, 0.3);
  --color-text-primary: #E8F1F4;
  --color-text-secondary: #A8BCC4;
  --color-text-muted: #6B8490;
  --shadow-glow: 0 0 32px var(--color-accent-glow);

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-serif: var(--font-sans);

  /* Type scale (smaller, calmer on 13" laptops) */
  --step--1: clamp(0.88rem, 0.86rem + 0.12vw, 0.95rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.22vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.44vw, 1.32rem);
  --step-2: clamp(1.34rem, 1.16rem + 0.9vw, 1.84rem);
  --step-3: clamp(1.78rem, 1.42rem + 1.7vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.3rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 2.5rem;
  --space-7: 3.25rem;

  /* Shape */
  --radius-sm: 12px;
  --radius: 18px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 48px rgba(0, 0, 0, 0.55);

  /* Layout */
  --container: 1080px;

  color-scheme: dark;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* Atmosphere: subtle grid + gradients for dark depth. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(77, 173, 183, 0.22), transparent 60%),
    radial-gradient(900px 640px at 16% 22%, rgba(27, 75, 90, 0.42), transparent 62%),
    radial-gradient(700px 700px at 70% 86%, rgba(77, 173, 183, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.0), rgba(10, 22, 40, 1));
  filter: saturate(110%);
}

/* Subtle grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(77, 173, 183, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 173, 183, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 62%);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.container {
  width: min(var(--container), calc(100% - 2 * var(--space-4)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  height: auto;
  padding: 0.65rem 0.9rem;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 1000;
}

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(77, 173, 183, 0.12);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  /* Needed so the mobile nav can anchor to the header, not the page. */
  position: relative;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 120px;
}

.brand__icon {
  display: none;
  width: 40px;
  height: 40px;
}

@media (max-width: 420px) {
  .brand__logo {
    display: none;
  }
  .brand__icon {
    display: block;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 241, 244, 0.15);
  border-radius: 14px;
  background: rgba(232, 241, 244, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.nav-toggle__icon {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(232, 241, 244, 0.75);
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Products flyout */
.nav-item.has-dropdown {
  position: relative;
}

.nav-products__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-products__trigger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  margin-top: -0.12rem;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 320px;
  max-width: 420px;
  width: max-content;
  padding: 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(77, 173, 183, 0.18);
  background: rgba(15, 26, 31, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 80;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.has-dropdown:hover .nav-products__trigger::after,
.has-dropdown:focus-within .nav-products__trigger::after {
  transform: rotate(-135deg);
}

.nav-products__group {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 241, 244, 0.58);
}

.nav-products__trigger:focus-visible {
  outline: 3px solid rgba(77, 173, 183, 0.4);
  outline-offset: 2px;
}

/* Company dropdown */
.nav-details {
  position: relative;
}

.nav-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 241, 244, 0.75);
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-details summary::marker {
  content: "";
}

.nav-details summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  margin-left: 0.1rem;
}

.nav-details[open] summary::after {
  transform: rotate(-135deg);
}

.nav-details__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(77, 173, 183, 0.18);
  background: rgba(15, 26, 31, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.nav-details__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  color: rgba(232, 241, 244, 0.82);
}

.nav-details__panel a:hover {
  background: rgba(77, 173, 183, 0.12);
  color: var(--ink);
}

.nav-products__panel {
  min-width: 220px;
  width: auto;
  max-width: none;
}

.nav-products__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-details__soon {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: var(--step--1);
  color: var(--color-text-muted);
  opacity: 0.5;
  cursor: default;
}

.nav-details__soon::after {
  content: " \2014  coming soon";
  font-size: 0.75em;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3);
    margin: 0;
    gap: var(--space-2);
    border-bottom: 1px solid rgba(77, 173, 183, 0.18);
    background: rgba(15, 26, 31, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-nav a,
  .nav-products__trigger,
  .nav-details summary {
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(27, 75, 90, 0.10);
    border: 1px solid rgba(77, 173, 183, 0.14);
    color: rgba(232, 241, 244, 0.82);
  }

  .site-nav a:hover,
  .nav-products__trigger:hover,
  .nav-details summary:hover {
    color: var(--ink);
  }

  .dropdown {
    display: block;
    position: static;
    min-width: 0;
    max-width: none;
    width: auto;
    margin-top: 0.35rem;
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
  }

  .nav-products__group {
    margin-top: 0.35rem;
  }

  .nav-details__panel {
    position: static;
    min-width: 0;
    padding: 0.4rem 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-details__panel a {
    margin-top: 0.35rem;
    color: rgba(232, 241, 244, 0.82);
  }

  .nav-toggle {
    border-color: rgba(232, 241, 244, 0.15);
    background: rgba(232, 241, 244, 0.06);
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
}

/* Sections / Typography */
main {
  padding-bottom: var(--space-7);
}

.section {
  padding: var(--space-7) 0;
}

.section--tight {
  padding: var(--space-6) 0;
}

.section--alt {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(77, 173, 183, 0.10), transparent 60%),
    radial-gradient(900px 520px at 90% 100%, rgba(27, 75, 90, 0.16), transparent 65%),
    rgba(10, 22, 40, 0.92);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-teal);
  font-weight: 600;
}

.eyebrow::before {
  display: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
}

h1 {
  font-weight: 600;
  font-size: var(--step-4);
}

h2 {
  font-weight: 600;
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-secondary);
}

.lead {
  font-size: var(--step-0);
  color: var(--color-text-secondary);
  max-width: 62ch;
}

.content-narrow {
  max-width: 62ch;
}

.muted {
  color: var(--color-text-muted);
}

.tiny {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.kicker {
  font-weight: 600;
  color: var(--color-text-primary);
}

.hr {
  height: 1px;
  background: rgba(77, 173, 183, 0.14);
  margin: var(--space-6) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease,
    border-color 120ms ease;
  will-change: transform;
}

.btn:focus {
  outline: 3px solid rgba(77, 173, 183, 0.4);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-color: rgba(77, 173, 183, 0.6);
}

.btn-primary {
  background: linear-gradient(135deg, #4DADB7, #6ECBD4);
  color: var(--color-brand-navy);
  border-color: rgba(77, 173, 183, 0.55);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(77, 173, 183, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(27, 75, 90, 0.06);
  border-color: rgba(77, 173, 183, 0.28);
  color: rgba(232, 241, 244, 0.92);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: rgba(77, 173, 183, 0.5);
}

.btn-pill {
  font-size: var(--step--1);
  padding: 0.5rem 0.75rem;
  background: rgba(27, 75, 90, 0.10);
  border: 1px solid rgba(77, 173, 183, 0.18);
  border-radius: 999px;
  text-decoration: none;
}

/* Layout helpers */
.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

@media (min-width: 920px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

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

.card {
  background:
    linear-gradient(180deg, rgba(27, 75, 90, 0.12), rgba(10, 22, 40, 0.25)),
    rgba(10, 22, 40, 0.35);
  border: 1px solid rgba(77, 173, 183, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

a.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), var(--shadow-glow);
  border-color: rgba(77, 173, 183, 0.46);
}

.card--soft {
  background: rgba(27, 75, 90, 0.08);
}

.card__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(77, 173, 183, 0.15);
  pointer-events: none;
  user-select: none;
}

.chip--accent {
  color: var(--color-text-muted);
  border-color: rgba(77, 173, 183, 0.15);
}

.icon-dot {
  display: none;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(232, 241, 244, 0.96);
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 173, 183, 0.30), transparent 55%),
    linear-gradient(135deg, rgba(27, 75, 90, 0.92), rgba(10, 22, 40, 0.64));
  border: 1px solid rgba(77, 173, 183, 0.22);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.3);
}

.avatar--green {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(77, 173, 183, 0.92), rgba(110, 203, 212, 0.86));
}

/* Team card: large image/avatar on top, name, role, Read more → bio */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
}

.team-card__head {
  width: calc(100% + 2 * var(--space-4));
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  margin-top: 0;
  margin-bottom: var(--space-3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 75, 90, 0.2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.team-card__head--photo {
  padding: 0;
}

.team-card__head--photo .team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
}

.team-card__name {
  margin: 0 0 var(--space-1);
  font-size: var(--step-1);
}

.team-card__name + .tiny.muted {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.team-card__details {
  margin: 0;
  text-align: left;
}

.team-card__read-more {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: inline-block;
  margin-bottom: 0;
}

.team-card__read-more::-webkit-details-marker {
  display: none;
}

.team-card__read-more:hover {
  text-decoration: underline;
}

.team-card__details[open] .team-card__read-more {
  margin-bottom: var(--space-2);
}

.team-card__bio {
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: var(--step--1);
  line-height: 1.55;
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-6);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 18%, rgba(77, 173, 183, 0.18), transparent 60%),
    radial-gradient(820px 520px at 86% 22%, rgba(27, 75, 90, 0.42), transparent 62%);
  filter: saturate(110%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero__visual {
  overflow: hidden;
  position: relative;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.00), rgba(10, 22, 40, 0.14));
}

.hero__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Full-width overlay hero (home page) */
.hero--overlay {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero--overlay .hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero--overlay .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.hero--overlay .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.4) 0%, rgba(10, 22, 40, 0.7) 60%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(10, 22, 40, 0.6), transparent 70%);
  z-index: 1;
}

.hero--overlay .network {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0.55;
  position: absolute;
  inset: 0;
}

/* Animated SVG network */
.network .link {
  stroke: rgba(77, 173, 183, 0.35);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: linkFlow 8s linear infinite;
}

.network .link-strong {
  stroke: rgba(77, 173, 183, 0.5);
  stroke-dasharray: 24 14;
  animation-duration: 10s;
}

.network .node {
  fill: rgba(77, 173, 183, 0.9);
  filter: drop-shadow(0 0 10px rgba(77, 173, 183, 0.25));
  transform-origin: center;
  animation: pulse 3.2s ease infinite;
}

.network .node:nth-child(2n) {
  animation-duration: 4.2s;
}

.network .node:nth-child(3n) {
  animation-duration: 5s;
}

.network .halo {
  fill: rgba(77, 173, 183, 0.12);
  animation: halo 3.2s ease infinite;
}

@keyframes linkFlow {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes halo {
  0%, 100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.22;
  }
}

/* Hero stagger-in animations */
.stagger {
  opacity: 0;
  transform: translateY(14px);
}

body.is-loaded .stagger {
  animation: fadeUp 720ms ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card header image (full width inside card padding) */
.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.insights-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 760px) {
  .insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.insight-card {
  list-style: none;
}

.insight-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(77, 173, 183, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 100%, rgba(27, 75, 90, 0.28), transparent 60%),
    rgba(10, 22, 40, 0.95);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.insight-card__image {
  flex-shrink: 0;
}

.insight-card__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.insight-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-4);
}

.insight-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card__title {
  margin: 0;
  font-size: var(--step-1);
}

.insight-card__excerpt {
  margin: 0;
  color: var(--color-text-secondary);
}

.insight-card__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-glow);
}

@media (prefers-reduced-motion: reduce) {
  .insight-card__link {
    transition: none !important;
    transform: none !important;
  }

  .insight-card__link:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm);
  }
}

.pagination {
  margin-top: var(--space-4);
}

.pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pagination__link {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 173, 183, 0.3);
  text-decoration: none;
  color: rgba(232, 241, 244, 0.9);
}

.pagination__link:hover {
  border-color: rgba(77, 173, 183, 0.6);
  color: var(--ink);
}

/* Blog post featured image */
.prose__featured-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

/* Form success state */
.form__success {
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.form__success h3 {
  color: var(--color-text-primary);
}

/* Proof block */
.proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (min-width: 760px) {
  .proof {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid rgba(77, 173, 183, 0.2);
  background: rgba(10, 22, 40, 0.35);
  box-shadow: var(--shadow-sm);
}

.stat__num {
  font-size: clamp(1.8rem, 1.5rem + 1.4vw, 2.6rem);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(77, 173, 183, 0.98);
  text-shadow: 0 0 26px rgba(77, 173, 183, 0.22);
  margin: 0 0 0.3rem;
}

.stat__label {
  margin: 0;
  color: var(--color-text-secondary);
}

/* Lists */
.list {
  padding-left: 1.1rem;
  margin: 0;
}

.list li {
  margin: 0.45rem 0;
  color: var(--color-text-secondary);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(77, 173, 183, 0.18);
  background: rgba(10, 22, 40, 0.5);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--color-text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-muted);
}

.field select option {
  background-color: #1A2832;
  color: var(--color-text-primary);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid rgba(77, 173, 183, 0.4);
  outline-offset: 2px;
  border-color: rgba(77, 173, 183, 0.4);
}

.form__hint {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 860px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* CTA panel */
.cta-panel {
  padding: var(--space-5);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(77, 173, 183, 0.18);
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(77, 173, 183, 0.16), transparent 60%),
    radial-gradient(900px 520px at 80% 70%, rgba(27, 75, 90, 0.42), transparent 70%),
    rgba(10, 22, 40, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-panel__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 860px) {
  .cta-panel__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Footer (dark, simple) */
.site-footer {
  border-top: 1px solid rgba(77, 173, 183, 0.18);
  padding: var(--space-6) 0;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(77, 173, 183, 0.14), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(27, 75, 90, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.25), rgba(10, 22, 40, 0.98));
  color: rgba(232, 241, 244, 0.92);
}

.site-footer a {
  color: rgba(232, 241, 244, 0.92);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.site-footer .tiny {
  color: rgba(244, 241, 234, 0.72);
}

.footer {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 920px) {
  .footer {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__brand img {
  width: 160px;
  height: auto;
}

.footer__cols {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 520px) {
  .footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 241, 244, 0.5);
}

.footer__col {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.footer__muted {
  color: rgba(244, 241, 234, 0.72);
}

.footer__desc {
  font-size: 0.82rem;
  color: rgba(244, 241, 234, 0.55);
  margin: 0;
  line-height: 1.5;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: rgba(244, 241, 234, 0.35);
  transition: color 150ms ease;
}

.footer__linkedin:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__legal {
  font-size: 0.7rem;
  color: rgba(244, 241, 234, 0.32);
  margin: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(77, 173, 183, 0.10);
  grid-column: 1 / -1;
}

/* Motion: use prefers-reduced-motion, reveal class for meaningful sections. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

/* Long-form content (blog) */
.prose {
  max-width: 74ch;
}

.prose h1 {
  font-size: var(--step-3);
  margin-top: 0;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--space-5);
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: var(--space-4);
}

.prose p,
.prose li {
  color: var(--color-text-primary);
}

.prose blockquote {
  margin: var(--space-4) 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(77, 173, 183, 0.6);
  background: rgba(27, 75, 90, 0.12);
  border-radius: 16px;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: rgba(77, 173, 183, 0.10);
  padding: 0.1rem 0.3rem;
  border-radius: 10px;
}

.prose hr {
  border: 0;
  height: 1px;
  background: rgba(77, 173, 183, 0.14);
  margin: var(--space-5) 0;
}

@media (max-width: 768px) {
  .hero--overlay {
    min-height: 70vh;
  }

  .hero--overlay .network {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .reveal {
    transition: none !important;
  }

  .btn:hover,
  a.card:hover {
    transform: none !important;
  }

  .reveal,
  .stagger {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
