/* ═══════════════════════════════════════════════════════════════
   SigWren Design System — v3 (Dark)
   Aligned with app dark theme + feature guide palette
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Ink — light text on dark */
  --ink-950: #eaf0f8;
  --ink-800: #cdd6e2;
  --ink-700: #9aacbf;
  --ink-500: #6882a0;
  --ink-400: #48607a;

  /* Surfaces — dark */
  --bg: #0a0e14;
  --bg-alt: #0f1420;
  --surface: #131920;
  --surface-alt: #182230;

  /* Brand — cyan */
  --brand: #22d3ee;
  --brand-deep: #06b6d4;
  --brand-light: #164e63;
  --brand-tint: rgba(34, 211, 238, 0.08);

  /* Accent — cyan (primary CTA) */
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-tint: rgba(34, 211, 238, 0.08);

  /* Purple — secondary accent */
  --teal: #a78bfa;
  --teal-tint: rgba(167, 139, 250, 0.08);

  /* Green — success/athlete */
  --green: #34d399;
  --green-tint: rgba(52, 211, 153, 0.08);

  /* Amber — warm highlight */
  --amber: #fbbf24;
  --amber-tint: rgba(251, 191, 36, 0.08);

  /* Borders & shadows */
  --line: #1e2a3a;
  --line-subtle: rgba(30, 42, 58, 0.6);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.35);

  /* Radii */
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;

  /* Spacing */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography — Inter only, aligned with app */
  --font-heading: "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
}

/* ═══════════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink-950);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

/* ═══════════════════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════════════════ */

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  color: var(--ink-950);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.site-nav a:hover {
  background: var(--brand-tint);
  color: var(--ink-950);
}

.site-nav a.is-active {
  color: var(--brand);
  background: var(--brand-tint);
  font-weight: 600;
}

.site-nav .nav-cta {
  border: 1.5px solid var(--accent);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 7px 16px;
  transition: background var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.site-nav .login-link {
  color: var(--brand);
  font-weight: 600;
}

.site-nav .login-link:hover {
  color: var(--brand-deep);
  background: transparent;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.menu-toggle:hover {
  background: var(--surface-alt);
}

/* ═══════════════════════════════════════════════════════════════
   Page & Hero
   ═══════════════════════════════════════════════════════════════ */

.page {
  padding: var(--space-12) 0 var(--space-20);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-16);
}

.hero-simple {
  margin-bottom: var(--space-12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════════ */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}

h1 {
  margin-top: var(--space-4);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.18;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.lead {
  margin: var(--space-5) 0 0;
  max-width: 62ch;
  color: var(--ink-700);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════ */

.actions {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 12px 22px;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease), transform 0.1s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0a0e14;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink-950);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--ink-400);
}

/* ═══════════════════════════════════════════════════════════════
   Panels & Cards
   ═══════════════════════════════════════════════════════════════ */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  transition: box-shadow 0.3s var(--ease);
}

.panel:hover {
  box-shadow: var(--shadow-elevated);
}

.panel p {
  margin: var(--space-4) 0 0;
  color: var(--ink-700);
}

.narrative-panel {
  max-width: 880px;
}

.narrative-panel:hover {
  box-shadow: var(--shadow-card);
}

.inline-panel {
  margin-top: var(--space-6);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-4);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--duration) var(--ease);
}

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

.text-link::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--duration) var(--ease);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   Metrics
   ═══════════════════════════════════════════════════════════════ */

.metric-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--surface-alt);
}

.metric .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════════ */

.section {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--line-subtle);
}

.section:first-of-type {
  border-top: 0;
}

/* Alternating warm tint on even sections */
.section:nth-of-type(even) {
  background: var(--bg-alt);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-top-color: transparent;
}

.section:nth-of-type(even) + .section {
  border-top-color: transparent;
}

.section-header {
  max-width: 72ch;
}

.section-copy {
  margin-top: var(--space-4);
  color: var(--ink-700);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   Content Grids
   ═══════════════════════════════════════════════════════════════ */

.content-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

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

.persona-grid {
  align-items: stretch;
}

.persona-card {
  display: flex;
  flex-direction: column;
}

.persona-card p {
  flex: 1;
}

.myth-grid .split-card {
  background: var(--surface);
  border-color: var(--line);
}

.note-grid {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   SigWren Gallery
   ═══════════════════════════════════════════════════════════════ */

.sigwren-gallery {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  max-width: 860px;
}

.sigwren-card {
  margin: 0;
}

.sigwren-shot {
  min-height: 220px;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.shot.sigwren-shot img {
  position: relative;
  inset: auto;
  width: min(70%, 300px);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

.sigwren-card .shot-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-500);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Notes
   ═══════════════════════════════════════════════════════════════ */

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  padding: var(--space-3);
  font-size: 0.9rem;
  color: var(--ink-700);
}

/* ═══════════════════════════════════════════════════════════════
   Screenshots
   ═══════════════════════════════════════════════════════════════ */

.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-card);
  min-height: 230px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.shot:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 10%,
      var(--brand-tint),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 90%,
      var(--teal-tint),
      transparent 55%
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
}

.shot-fallback span {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink-500);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 14px;
}

.shot.has-image .shot-fallback {
  display: none;
}

.shot.missing img {
  display: none;
}

.shot-caption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-500);
}

/* ═══════════════════════════════════════════════════════════════
   Split Cards
   ═══════════════════════════════════════════════════════════════ */

.split-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-5);
  transition: box-shadow 0.3s var(--ease);
}

.split-card:hover {
  box-shadow: var(--shadow-soft);
}

.split-card h3 {
  margin-bottom: 8px;
}

.split-card p {
  margin: 0;
  color: var(--ink-700);
}

/* ═══════════════════════════════════════════════════════════════
   Checklists
   ═══════════════════════════════════════════════════════════════ */

.checklist {
  margin: var(--space-4) 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink-700);
}

.checklist li {
  position: relative;
  padding-left: 22px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.checklist li + li {
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   Kickers & Callouts
   ═══════════════════════════════════════════════════════════════ */

.kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  color: var(--ink-700);
}

.callout strong {
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════════
   Story / Narrative
   ═══════════════════════════════════════════════════════════════ */

.story-prose {
  max-width: 74ch;
}

.story-prose.compact {
  max-width: 68ch;
}

.story-prose p {
  margin: 0 0 var(--space-5);
  color: var(--ink-700);
  line-height: 1.7;
}

.story-prose p:last-child {
  margin-bottom: 0;
}

.story-signature {
  margin-top: var(--space-5);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  font-family: var(--font-heading);
}

.story-heading {
  margin-bottom: var(--space-5);
}

.story-columns,
.intelligence-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.story-columns .split-card ul,
.intelligence-grid .split-card p {
  margin-top: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════ */

.form-grid {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink-950);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

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

.helper {
  margin-top: var(--space-3);
  font-size: 0.86rem;
  color: var(--ink-500);
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

footer {
  border-top: 1px solid var(--line-subtle);
  margin-top: var(--space-16);
  padding: var(--space-8) 0 var(--space-12);
  color: var(--ink-500);
  font-size: 0.86rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════════
   Feature Cards (v3)
   ═══════════════════════════════════════════════════════════════ */

.feature-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.25s var(--ease);
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.18);
  background: var(--surface-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.feature-card h3 {
  color: var(--ink-950);
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.7;
}

.feature-roles {
  display: flex;
  gap: 6px;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.role-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.role-athlete { background: rgba(52,211,153,0.08); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.role-coach { background: rgba(167,139,250,0.08); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.role-admin { background: rgba(251,191,36,0.08); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.role-everyone { background: rgba(34,211,238,0.08); color: #22d3ee; border: 1px solid rgba(34,211,238,0.2); }

/* Hero stat row */
.hero-stats {
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-950);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--ink-400);
  font-weight: 500;
  margin-top: 4px;
}

/* Capability section icons */
.section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-5);
}

/* Hero gradient glow */
.hero-glow {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34,211,238,0.05), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   Scroll Reveal
   ═══════════════════════════════════════════════════════════════ */

.section,
.hero,
.hero-simple {
  animation: fadeInUp 0.5s var(--ease) both;
}

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

/* Stagger sections */
.section:nth-of-type(2) {
  animation-delay: 0.08s;
}
.section:nth-of-type(3) {
  animation-delay: 0.16s;
}
.section:nth-of-type(4) {
  animation-delay: 0.24s;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1020px) {
  .hero,
  .content-grid,
  .sigwren-gallery,
  .note-grid,
  .content-grid.three,
  .story-columns,
  .intelligence-grid,
  .form-grid.two,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .shot {
    min-height: 0;
  }

  .shot img {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    object-fit: contain;
    object-position: left top;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 14px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .site-nav a {
    width: 100%;
  }

  .page {
    padding-top: var(--space-8);
  }

  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .lead {
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   IC-406 — Landing Hero Repositioning
   ═══════════════════════════════════════════════════════════════ */

.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;
}

.trust-line {
  margin: var(--space-4) 0 0;
  font-size: 0.85rem;
  color: var(--ink-500);
  max-width: 48ch;
  line-height: 1.5;
}

.hero-visual {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.story-section {
  margin-top: var(--space-16);
}

.story-grid {
  gap: var(--space-6);
}

.story-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.story-block:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
}

.story-block-visual {
  background: var(--bg-alt);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2);
}

.story-block-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.story-block h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.story-block p {
  color: var(--ink-700);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}

.credibility-strip {
  margin: var(--space-20) 0 var(--space-12);
  padding: var(--space-10) var(--space-8);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.credibility-copy {
  max-width: 72ch;
  margin: 0 auto var(--space-8);
  color: var(--ink-700);
  font-size: 0.98rem;
  line-height: 1.75;
}

.science-model {
  color: var(--ink-950);
  font-weight: 600;
  white-space: nowrap;
}

.integrations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
}

.integrations li {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}

@media (max-width: 900px) {
  .story-section {
    margin-top: var(--space-12);
  }

  .credibility-strip {
    margin: var(--space-12) 0 var(--space-8);
    padding: var(--space-8) var(--space-5);
  }

  .integrations {
    gap: var(--space-3) var(--space-6);
  }
}
