/* ==========================================================================
   Carbon Starfish — site styles
   Deep-space palette drawn from the Carbon Starfish logo.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #050912;
  --bg-raise: #0a1122;
  --bg-sunk: #03060d;
  --surface: rgba(140, 180, 255, 0.045);
  --surface-hi: rgba(140, 180, 255, 0.08);
  --line: rgba(150, 190, 255, 0.13);
  --line-hi: rgba(150, 200, 255, 0.28);

  /* Text */
  --text: #eef3fc;
  --text-soft: #c3cee2;
  --muted: #8f9db6;
  --dim: #66748e;

  /* Brand (from the logo) */
  --cyan: #46d9ff;
  --blue: #2e7cf6;
  --azure: #6aa8ff;
  --violet: #9b8cff;
  --glow: rgba(70, 217, 255, 0.35);

  /* Product accents */
  --quill: #7d8cff;
  --quill-deep: #3f51b5;
  --sift: #5b86ff;
  --sift-deep: #3157c7;

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; }
ul { margin: 0; padding: 0; }

::selection { background: rgba(70, 217, 255, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: #021018;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Cosmos backdrop ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(46, 124, 246, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(155, 140, 255, 0.08), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(70, 217, 255, 0.07), transparent 60%),
    var(--bg);
}
.cosmos canvas { width: 100%; height: 100%; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--band {
  background: linear-gradient(180deg, transparent, rgba(10, 17, 34, 0.75) 12%, rgba(10, 17, 34, 0.75) 88%, transparent);
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-hi), transparent);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 40em;
}
.muted { color: var(--muted); }
.shine {
  background: linear-gradient(120deg, #ffffff 0%, #bfefff 30%, var(--cyan) 55%, var(--azure) 80%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  padding-right: 0.06em;
}

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head .h2 + .lede { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--btn-bg);
  color: var(--text);
  font: 700 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); background: rgba(70, 217, 255, 0.06); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #5fe0ff 0%, var(--blue) 100%);
  color: #02101c;
  box-shadow: 0 10px 30px -10px rgba(46, 124, 246, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #8beaff 0%, #4a90ff 100%);
  box-shadow: 0 16px 40px -12px rgba(70, 217, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--quill { border-color: transparent; background: linear-gradient(135deg, #8e9bff, var(--quill-deep)); color: #fff; box-shadow: 0 10px 30px -12px rgba(63, 81, 181, 0.9); }
.btn--quill:hover { background: linear-gradient(135deg, #a5afff, #5263cc); }
.btn--sift { border-color: transparent; background: linear-gradient(135deg, #7ea0ff, var(--sift-deep)); color: #fff; box-shadow: 0 10px 30px -12px rgba(49, 87, 199, 0.9); }
.btn--sift:hover { background: linear-gradient(135deg, #9ab4ff, #3e66d8); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.text-link:hover { border-color: currentColor; gap: 12px; }
.text-link svg { width: 15px; height: 15px; }

.ext::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.35em;
  vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 1 11' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 1 11' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.7;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 9, 18, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img { width: 46px; height: auto; filter: drop-shadow(0 0 12px rgba(70, 217, 255, 0.45)); transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-18deg) scale(1.05); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b {
  font-family: var(--font-caps);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 20%, #a9c8ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-word span {
  margin-top: 5px;
  font-family: var(--font-caps);
  font-size: 9.5px;
  letter-spacing: 0.5em;
  color: var(--azure);
}

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: var(--surface-hi); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--surface-hi); box-shadow: inset 0 0 0 1px var(--line); }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta .btn { display: inline-flex; min-height: 42px; padding: 0 18px; font-size: 14px; color: #02101c; }
.nav-links .nav-cta .btn:hover { background: linear-gradient(135deg, #8beaff 0%, #4a90ff 100%); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 28px;
    background: rgba(5, 9, 18, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .is-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 17px; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 110px) 0 clamp(70px, 10vw, 140px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero .lede { margin: 28px 0 40px; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* Logo constellation */
.constellation {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.constellation::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 217, 255, 0.32), rgba(46, 124, 246, 0.12) 45%, transparent 70%);
  filter: blur(28px);
  animation: breathe 6s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(110, 190, 255, 0.16);
  animation: spin 40s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px var(--cyan);
}
.orbit--1 { inset: 0; }
.orbit--2 { inset: 13%; animation-duration: 28s; animation-direction: reverse; border-style: dashed; border-color: rgba(110, 190, 255, 0.12); }
.orbit--2::after { background: var(--violet); box-shadow: 0 0 14px 2px var(--violet); width: 5px; height: 5px; }
.orbit--3 { inset: 26%; animation-duration: 18s; }
.orbit--3::after { top: auto; bottom: -4px; background: #fff; box-shadow: 0 0 12px 2px #fff; width: 4px; height: 4px; }
.constellation img {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 0 40px rgba(70, 217, 255, 0.35));
  animation: float 9s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .product-hero .hero-visual { order: 0; }
  .constellation { width: min(78vw, 380px); }
}

/* Proof strip */
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; padding-left: 0; }
.proof b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.proof span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Product showcase (home) ---------- */
.product {
  --accent: var(--cyan);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.product + .product { margin-top: 28px; }
.product--quill { --accent: var(--quill); }
.product--sift { --accent: var(--sift); }
.product--flip .product-copy { order: 2; }
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 35%, transparent 70%, rgba(70, 217, 255, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.product-id img { width: 56px; height: 56px; object-fit: contain; }
.product-id .mark-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f6f7f3;
  box-shadow: 0 8px 24px -10px rgba(91, 134, 255, 0.6);
}
.product-id .mark-tile img { width: 32px; height: 32px; }
.product-name { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 48px); font-weight: 600; line-height: 1; }
.product-tag { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.product h3:not(.product-name) { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; font-style: italic; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.product p { color: var(--text-soft); }

.ticks { list-style: none; display: grid; gap: 12px; margin: 26px 0 32px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-soft); line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--cyan)) 50%, transparent);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.15em + 6px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--accent, var(--cyan));
  border-bottom: 2px solid var(--accent, var(--cyan));
  transform: rotate(-45deg);
}
.ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 640px) { .ticks--2 { grid-template-columns: 1fr; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 40%, transparent);
  background: color-mix(in srgb, var(--accent, var(--cyan)) 10%, transparent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--cyan));
  box-shadow: 0 0 10px var(--accent, var(--cyan));
}

.product-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; }
.product-links a { color: var(--muted); text-decoration: none; }
.product-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product--flip .product-copy { order: 0; }
}

@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 22px; }
  .btn-row > .btn { flex: 1 1 100%; }
}

/* Browser window frame for screenshots */
.window {
  position: relative;
  border-radius: 14px;
  background: #0d1426;
  border: 1px solid var(--line-hi);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 120px -40px color-mix(in srgb, var(--accent, var(--cyan)) 55%, transparent);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}
.product--flip .window { transform: perspective(1600px) rotateY(5deg) rotateX(2deg); }
.window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.window-bar span {
  flex: 1;
  margin: 0 40px 0 18px;
  padding: 3px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window img { width: 100%; }
@media (max-width: 900px) {
  .window, .product--flip .window { transform: none; }
}

/* RenderSift finding mock (rendered in HTML, adapts to dark) */
.finding-mock {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: #f6f7f3;
  color: #17202f;
  min-height: 300px;
}
.finding-shot { position: relative; padding: 22px; background: #ecede8; border-right: 1px solid #dfe1da; }
.finding-shot .bar { height: 10px; border-radius: 3px; background: #c9cdc6; margin-bottom: 12px; }
.finding-shot .bar--dark { background: #5c6676; width: 62%; height: 14px; margin-top: 20px; }
.finding-shot .bar--short { width: 78%; }
.finding-shot .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.finding-shot .tiles i { aspect-ratio: 0.85; background: #c9cdc6; border-radius: 3px; }
.finding-shot .tiles i:last-child { background: #e4e6e0; outline: 2px solid var(--sift-deep); outline-offset: 2px; position: relative; }
.finding-shot .pin {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sift-deep);
  color: #fff;
  font: 700 11px/22px var(--font-body);
  text-align: center;
  box-shadow: 0 0 0 4px rgba(49, 87, 199, 0.2);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(49, 87, 199, 0.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(49, 87, 199, 0); } }
.finding-card { padding: 24px 22px; border-left: 3px solid var(--sift-deep); margin: 18px; background: #fff; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); align-self: center; }
.finding-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6475; }
.finding-meta .sev { padding: 3px 7px; border-radius: 3px; background: #fde7e7; color: #b42318; }
.finding-meta .conf { margin-left: auto; color: #17202f; }
.finding-card h4 { margin: 14px 0 8px; font: 700 17px/1.25 var(--font-body); color: #111a2a; }
.finding-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #4b5565; }
.finding-card .evidence { font-size: 12px; font-weight: 700; color: #22713a; }
@media (max-width: 520px) {
  .finding-mock { grid-template-columns: 1fr; }
  .finding-shot { border-right: 0; border-bottom: 1px solid #dfe1da; }
}

/* ---------- Five arms (principles) ---------- */
.arms {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.9fr) 1fr;
  grid-template-areas:
    ".  a  ."
    "b  m  c"
    "d  .  e";
  gap: 22px 40px;
  align-items: center;
}
.arms-core { grid-area: m; position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.arms-core::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 217, 255, 0.25), transparent 65%);
  filter: blur(20px);
}
.arms-core img { position: relative; width: 82%; animation: spin 120s linear infinite; filter: drop-shadow(0 0 30px rgba(70, 217, 255, 0.3)); }
.arm--a { grid-area: a; text-align: center; max-width: 420px; justify-self: center; }
.arm--b { grid-area: b; text-align: right; }
.arm--c { grid-area: c; }
.arm--d { grid-area: d; text-align: right; }
.arm--e { grid-area: e; }
.arm-num { font-family: var(--font-caps); font-size: 13px; letter-spacing: 0.25em; color: var(--cyan); }
.arm h3 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.arm p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 960px) {
  .arms { grid-template-columns: 1fr 1fr; grid-template-areas: "m m" "a a" "b c" "d e"; }
  .arms-core { width: min(60vw, 280px); justify-self: center; }
  .arm { text-align: left !important; max-width: none; justify-self: stretch; }
}
@media (max-width: 600px) {
  .arms { grid-template-columns: 1fr; grid-template-areas: "m" "a" "b" "c" "d" "e"; }
  .arm { padding-left: 18px; border-left: 1px solid var(--line-hi); }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--accent, var(--cyan));
  background: color-mix(in srgb, var(--accent, var(--cyan)) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--cyan)) 35%, transparent);
}
.card .icon svg { width: 22px; height: 22px; }
.card-num { display: block; margin-bottom: 18px; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent, var(--cyan)); }

a.card { text-decoration: none; display: block; }
a.card .go { display: inline-flex; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--accent, var(--cyan)); }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature .icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: var(--accent, var(--cyan));
  background: color-mix(in srgb, var(--accent, var(--cyan)) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--cyan)) 30%, transparent);
}
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--text-soft); max-width: 46em; }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; gap: 16px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), transparent);
  opacity: 0.5;
}
.step { position: relative; padding-right: 32px; }
.step b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent, var(--cyan));
  box-shadow: 0 0 24px -6px var(--accent, var(--cyan));
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}
.step h3 { font-family: var(--font-display); font-size: 34px; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent, var(--cyan)), transparent); }
  .step { padding: 0 0 0 82px; }
  .step b { position: absolute; left: 0; top: 0; margin: 0; }
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; }
@media (max-width: 520px) { .table th, .table td { padding: 16px; } }
.table th, .table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.025); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 700; color: var(--text); width: 38%; }
.table td { color: var(--text-soft); }
.table tr.is-us th, .table tr.is-us td { background: color-mix(in srgb, var(--accent, var(--cyan)) 9%, transparent); color: #fff; }
.table tr.is-us th { box-shadow: inset 3px 0 0 var(--accent, var(--cyan)); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent, var(--cyan));
  border-bottom: 2px solid var(--accent, var(--cyan));
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: -6px 0 26px; color: var(--text-soft); max-width: 52em; }

/* Link lists (resources / policies) */
.links-panel {
  padding: 30px 30px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.links-panel h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.links-panel h3 img { width: 26px; height: 26px; object-fit: contain; }
.link-list { list-style: none; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s, padding 0.3s var(--ease);
}
.link-list a small { font-weight: 500; color: var(--dim); font-size: 13px; }
.link-list a:hover { color: var(--accent, var(--cyan)); padding-left: 6px; }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 120px; }
@media (max-width: 900px) { .sticky { position: static; } }

/* Prose */
.prose p { color: var(--text-soft); font-size: 18px; }
.prose p:first-child::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.4em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--cyan);
}
.pullquote {
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  color: #fff;
}
.pullquote cite { display: block; margin-top: 18px; font: 600 13px/1.4 var(--font-body); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Manifesto band */
.manifesto { text-align: center; }
.manifesto .h2 { max-width: 15em; margin: 0 auto; }
.manifesto .lede { margin: 28px auto 0; }
.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 64px auto 0;
  text-align: left;
}
.pair .card { --accent: var(--quill); }
.pair .card + .plus + .card { --accent: var(--sift); }
.pair .card h3 { display: flex; align-items: center; gap: 10px; }
.pair .card blockquote { margin: 14px 0 0; font-family: var(--font-display); font-size: 24px; font-style: italic; line-height: 1.25; color: #fff; }
.pair .plus { display: grid; place-items: center; font-family: var(--font-display); font-size: 40px; color: var(--cyan); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } .pair .plus { font-size: 28px; } }

/* CTA band */
.cta {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px);
  border-radius: 32px;
  border: 1px solid var(--line-hi);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(70, 217, 255, 0.18), transparent 70%),
    radial-gradient(500px 300px at 50% 110%, rgba(155, 140, 255, 0.12), transparent 70%),
    rgba(10, 17, 34, 0.8);
}
.cta img.cta-mark { width: 92px; margin: 0 auto 26px; filter: drop-shadow(0 0 24px rgba(70, 217, 255, 0.5)); }
.cta .lede { margin: 22px auto 36px; }
.cta .btn-row { justify-content: center; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); }
.page-hero .lede { margin-top: 26px; }
.page-hero .display { font-size: clamp(44px, 6vw, 84px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; font-size: 14px; color: var(--dim); list-style: none; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--dim); }

/* Product page heroes */
.product-hero { --accent: var(--cyan); }
.product-hero .display { font-size: clamp(44px, 5.6vw, 78px); }
.product-hero .product-id { margin-bottom: 30px; }
.theme-quill { --accent: var(--quill); }
.theme-sift { --accent: var(--sift); }
.theme-quill .eyebrow, .theme-sift .eyebrow { color: var(--accent); }
.theme-quill .shine { background-image: linear-gradient(120deg, #fff 0%, #c9cfff 40%, var(--quill) 75%, var(--violet)); }
.theme-sift .shine { background-image: linear-gradient(120deg, #fff 0%, #cbd9ff 40%, var(--sift) 75%, var(--cyan)); }

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: var(--text-soft);
}
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent, var(--cyan)); }

/* Plan teaser */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plans > div { padding: 28px 26px; }
.plans > div:nth-child(even) { border-left: 1px solid var(--line); }
.plans > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.plans h3 { font-family: var(--font-display); font-size: 30px; }
.plans p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } .plans > div:nth-child(even) { border-left: 0; } .plans > div + div { border-top: 1px solid var(--line); } }

/* Contact cards */
.contact-card { display: flex; flex-direction: column; }
.contact-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.contact-card p { flex: 1; margin-bottom: 20px !important; }
.contact-card a.mail { font-weight: 700; color: var(--accent, var(--cyan)); text-decoration: none; word-break: break-word; }
.contact-card a.mail:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(3, 6, 13, 0.6), var(--bg-sunk));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; color: var(--muted); font-size: 15px; }
.footer-col h4 { margin-bottom: 18px; font-family: var(--font-caps); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}
.footer-base a { color: var(--muted); text-decoration: none; }
.footer-base a:hover { color: var(--text); }
.footer-domains { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }
.js .reveal-d4 { transition-delay: 0.32s; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 36px; }
.mt-l { margin-top: 64px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .window, .product--flip .window { transform: none; }
}
