/* ==========================================================================
   TEK Optima Research — company website
   Style: distinctive legacy tekoptimaresearch.com vibe
   (royal blue / navy / cyan / magenta, white bands, curved sections)
   ========================================================================== */

/* Fonts (self-hosted) -------------------------------------------------- */
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/poppins-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/fonts/opensans-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/fonts/opensans-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('/fonts/opensans-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --navy: #081e59;
  --navy-deep: #061952;
  --navy-900: #05123d;

  --blue: #1e6fd0;
  --blue-bright: #2b7fe0;
  --blue-dark: #1657b0;
  --azure: #2868c8;
  --blue-600: #2452a8;

  --cyan: #15f6fb;
  --magenta: #ea22f5;
  --purple: #5a34c8;

  --paper: #ffffff;
  --tint: #f4f8ff;
  --tint-2: #eaf1fb;

  --ink: #0f2350;
  --body: #4a5568;
  --muted: #6b7280;
  --line: #dbe4f0;

  --nav-height: 76px;
  --max-width: 1200px;
  --radius: 16px;
  --radius-lg: 24px;

  --grad-blue: linear-gradient(135deg, #2b7fe0 0%, #1657b0 100%);
  --grad-deep: linear-gradient(160deg, #0a2a6b 0%, #081e59 48%, #061952 100%);
  --grad-purple: linear-gradient(135deg, #1e6fd0 0%, #3b2fb0 55%, #5a34c8 100%);

  --shadow: 0 22px 46px rgba(8, 30, 89, 0.16);
  --shadow-soft: 0 12px 30px rgba(8, 30, 89, 0.1);
  --transition: 0.18s ease-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); line-height: 1.2; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 780px; }

.section { padding: 84px 0; position: relative; }
.section-white { background: var(--paper); }
.section-tint { background: var(--tint); }
.section-tight { padding: 60px 0; }

/* Section headings ----------------------------------------------------- */
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }

.section-title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
}

.section-head .section-title::after { left: 50%; transform: translateX(-50%); }

.section-subtitle { color: var(--muted); font-size: 1rem; }

.on-dark .section-title { color: #fff; }
.on-dark .section-subtitle { color: rgba(255, 255, 255, 0.82); }

/* Buttons -------------------------------------------------------------- */
.btn-primary, .btn-outline, .btn-light, .btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

.btn-primary { color: #fff; background: var(--grad-blue); box-shadow: 0 10px 24px rgba(30, 111, 208, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30, 111, 208, 0.45); }

.btn-outline { color: var(--blue); background: transparent; border: 1.6px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-light { color: var(--blue-dark); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost-light { color: #fff; background: transparent; border: 1.6px solid rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-secondary-link::after { content: "\2192"; transition: transform var(--transition); }
.btn-secondary-link:hover::after { transform: translateX(3px); }

.hero .btn-ghost-light, .contact-hero .btn-ghost-light, .page-hero .btn-ghost-light { color: #fff; }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(8, 30, 89, 0.06);
}

.header-inner { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a {
  position: relative;
  padding: 6px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--cyan));
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }

.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px !important;
  border-radius: 999px;
  color: #fff !important;
  background: var(--grad-blue);
  box-shadow: 0 6px 16px rgba(30, 111, 208, 0.32);
}
.nav-external::after { display: none !important; }
.nav-external:hover { filter: brightness(1.06); }
.nav-external .nav-external-arrow { font-size: 0.72rem; transition: transform var(--transition); }
.nav-external:hover .nav-external-arrow { transform: translate(2px, -2px); }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; cursor: pointer; background: none; border: none; padding: 0; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.nav-mobile { display: none; position: fixed; inset: var(--nav-height) 0 0 0; background: #fff; padding: 24px 22px 32px; z-index: 55; box-shadow: 0 26px 60px rgba(8, 30, 89, 0.2); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 18px; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1rem; color: var(--ink); }
.nav-mobile-links a { padding: 8px 0; border-bottom: 1px solid var(--line); }
.nav-open .nav-mobile { display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* Hero (legacy nebula image) ------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 118px 0 138px;
  background:
    linear-gradient(180deg, rgba(6, 20, 60, 0.42) 0%, rgba(6, 20, 60, 0.62) 55%, rgba(5, 15, 56, 0.9) 100%),
    url('/images/hero-nebula.jpg') center / cover no-repeat,
    var(--grad-deep);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 18% 58%, rgba(6, 20, 60, 0.45) 0, transparent 62%);
}

.hero-inner { position: relative; z-index: 2; max-width: 660px; }

.hero-pre { font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }

.hero-title { font-weight: 700; font-size: clamp(2.2rem, 3.6vw + 1rem, 3.4rem); color: #fff; margin-bottom: 20px; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); }
.hero-title span { color: #fff; }

.hero-body { color: rgba(255, 255, 255, 0.86); font-size: 1.02rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

@media (max-width: 760px) {
  .hero { padding: 84px 0 96px; }
}

/* Bands ---------------------------------------------------------------- */
.band-blue { position: relative; color: #fff; background: var(--grad-deep); overflow: hidden; }
.band-blue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/cells-texture.jpg') center / cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.band-blue::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 20%, rgba(21, 246, 251, 0.14) 0, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(234, 34, 245, 0.16) 0, transparent 48%);
}
.band-blue > .container { position: relative; z-index: 2; }

.band-navy { background: var(--navy-deep); color: #fff; }

.arc-bottom { border-bottom-left-radius: 50% 90px; border-bottom-right-radius: 50% 90px; }

/* Line-art overlay */
.with-lineart { position: relative; }
.with-lineart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/images/lineart-nodes.svg') no-repeat left top;
  background-size: 360px;
  opacity: 0.5;
  pointer-events: none;
}
.with-lineart > .container { position: relative; z-index: 2; }

/* Tiles (blue feature tiles) ------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 22px; }

.tile {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--grad-blue);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 0, rgba(21, 246, 251, 0.35) 0, transparent 58%); opacity: 0.7; pointer-events: none; }

.tile-icon { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18); }
.tile-icon img { width: 40px; height: 40px; }
.tile-title { position: relative; z-index: 1; font-weight: 600; font-size: 1.04rem; margin-bottom: 8px; color: #fff; }
.tile-body { position: relative; z-index: 1; font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); }

/* Cards ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 22px; }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-eyebrow { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.card-title { font-weight: 600; font-size: 1.2rem; margin-bottom: 10px; }
.card-body { font-size: 0.92rem; color: var(--body); margin-bottom: 16px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.card-link span { transition: transform var(--transition); }
.card:hover .card-link span { transform: translateX(4px); }

.card--deepinsight { color: #fff; border: none; background: var(--grad-purple); box-shadow: 0 20px 44px rgba(59, 47, 176, 0.32); }
.card--deepinsight .card-eyebrow { color: var(--cyan); }
.card--deepinsight .card-title { color: #fff; }
.card--deepinsight .card-body { color: rgba(255, 255, 255, 0.88); }
.card--deepinsight .card-link { color: #fff; }

/* Media rows (imagery) ------------------------------------------------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.media-row.reverse .media-figure { order: 2; }

.media-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.media-figure--circle img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 26px 60px rgba(8, 30, 89, 0.28); }

.media-copy .section-title::after { left: 0; }
.media-copy p { font-size: 0.98rem; color: var(--body); margin-bottom: 18px; }
.on-dark .media-copy p { color: rgba(255, 255, 255, 0.85); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.check-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--body); }
.on-dark .check-list li { color: rgba(255, 255, 255, 0.88); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-blue); box-shadow: 0 0 0 3px rgba(43, 127, 224, 0.18); }

@media (max-width: 820px) {
  .media-row { grid-template-columns: 1fr; gap: 30px; }
  .media-row.reverse .media-figure { order: 0; }
  .media-figure--circle img { max-width: 340px; margin: 0 auto; }
}

/* DeepInsight gradient strip ------------------------------------------ */
.ds-strip { position: relative; overflow: hidden; color: #fff; background: var(--grad-purple); padding: 46px 0; }
.ds-strip::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(21, 246, 251, 0.28) 0, transparent 45%); pointer-events: none; }
.ds-strip-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ds-strip-text { max-width: 680px; }
.ds-strip-text p { font-size: 1rem; color: rgba(255, 255, 255, 0.92); }
.ds-strip-text strong { font-weight: 600; }
.ds-strip-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ds-strip-link span { transition: transform var(--transition); }
.ds-strip-link:hover span { transform: translateX(4px); }

/* Page hero (About) ---------------------------------------------------- */
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--grad-deep); padding: 80px 0 96px; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 25%, rgba(234, 34, 245, 0.22) 0, transparent 45%), radial-gradient(circle at 10% 80%, rgba(21, 246, 251, 0.16) 0, transparent 42%); }
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-title { color: #fff; font-weight: 700; font-size: clamp(2rem, 3vw + 1rem, 2.9rem); margin-bottom: 16px; }
.page-lede { color: rgba(255, 255, 255, 0.86); font-size: 1.06rem; max-width: 620px; }

.prose { font-size: 0.98rem; color: var(--body); margin-bottom: 18px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Facts ---------------------------------------------------------------- */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 20px; margin-top: 8px; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-soft); }
.fact-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.fact-value { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1.02rem; color: var(--ink); line-height: 1.35; }

/* CTA panel ------------------------------------------------------------ */
.cta-panel { border-radius: var(--radius-lg); padding: 44px 46px; color: #fff; background: var(--grad-purple); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0, rgba(21, 246, 251, 0.3) 0, transparent 45%); pointer-events: none; }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel h2 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.cta-panel p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; }
.cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Contact -------------------------------------------------------------- */
.contact-hero { position: relative; color: #fff; overflow: hidden; background: var(--grad-deep); padding: 84px 0 140px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.contact-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% 30%, rgba(234, 34, 245, 0.26) 0, transparent 42%), radial-gradient(circle at 15% 78%, rgba(21, 246, 251, 0.18) 0, transparent 42%); }
.contact-hero-inner { position: relative; z-index: 2; max-width: 720px; }
.contact-title { color: #fff; font-weight: 700; font-size: clamp(2rem, 3vw + 1rem, 2.8rem); margin-bottom: 14px; }
.contact-subtitle { color: rgba(255, 255, 255, 0.88); font-size: 1.04rem; }

.contact-body { position: relative; z-index: 3; margin-top: -84px; padding-bottom: 80px; }
.contact-panel { display: grid; grid-template-columns: 1.05fr 0.95fr; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }

.contact-form-card { padding: 46px; }
.contact-form-card .contact-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.contact-email { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); word-break: break-all; margin-bottom: 20px; transition: color var(--transition); }
.contact-email:hover { color: var(--blue); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-copy { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--tint); color: var(--blue); border: 1.6px solid var(--blue); cursor: pointer; transition: all var(--transition); }
.btn-copy:hover { background: var(--blue); color: #fff; }
.btn-copy .copy-success { display: none; }
.btn-copy.copied .copy-text { display: none; }
.btn-copy.copied .copy-success { display: inline; }

.contact-info { position: relative; color: #fff; background: var(--navy); padding: 46px 42px; }
.contact-info::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(21, 246, 251, 0.16) 0, transparent 45%); pointer-events: none; }
.contact-info > * { position: relative; z-index: 2; }
.info-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 22px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.info-item:last-child { margin-bottom: 0; }
.info-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(21, 246, 251, 0.14); color: var(--cyan); }
.info-icon svg { width: 20px; height: 20px; }
.info-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }
.info-text strong { display: block; color: #fff; font-weight: 600; margin-bottom: 3px; }
.info-text a { color: var(--cyan); }

@media (max-width: 860px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-body { margin-top: -60px; }
  .contact-form-card, .contact-info { padding: 32px 26px; }
}

/* Error page ----------------------------------------------------------- */
.error-page { padding: 120px 0; text-align: center; background: var(--tint); }
.error-code { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: rgba(30, 111, 208, 0.18); }
.error-page .page-title { color: var(--ink); }
.error-page .page-lede { color: var(--muted); margin: 0 auto 26px; }
.error-page .hero-actions { justify-content: center; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #c6d2ee; padding: 46px 0 28px; }

.footer-nav { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-nav a { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c6d2ee; position: relative; padding-bottom: 3px; }
.footer-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--cyan); transition: width var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { width: 100%; }

.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.footer-bottom img { height: 26px; width: auto; }

/* Legal pages ---------------------------------------------------------- */
.legal-content { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem 4rem; line-height: 1.8; }
.legal-content h1 { font-size: 2.3rem; margin-bottom: 1rem; }
.legal-content .last-updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.2rem; }
.legal-content h2 { font-size: 1.5rem; margin-top: 2.6rem; margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.12rem; margin-top: 1.8rem; margin-bottom: 0.7rem; color: var(--blue-600); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin-bottom: 1.4rem; padding-left: 1.6rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--blue); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-intro { background: var(--tint); border-left: 4px solid var(--blue); padding: 1.25rem 1.4rem; margin-bottom: 2rem; border-radius: 6px; }

/* Utility / a11y ------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-title--spaced { margin-top: 8px; }
.small-note { font-size: 0.85rem; color: var(--muted); }

/* Animations ----------------------------------------------------------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(21, 246, 251, 0); }
  50% { transform: scale(1.5); box-shadow: 0 0 14px rgba(21, 246, 251, 0.9); }
}
@keyframes fire {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.85; }
}

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

/* Large / ultrawide screens ------------------------------------------- */
@media (min-width: 1600px) {
  :root { --max-width: 1340px; }
}
@media (min-width: 2200px) {
  :root { --max-width: 1480px; }
}
