/* ============================================
   RELAY by IronPlate Solutions - Shared Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0c0f14;
  --bg-secondary: #111620;
  --bg-card: #151920;
  --bg-card-2: #1c2029;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.12);
  --blue-soft: rgba(59, 130, 246, 0.08);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.1);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.1);
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e2530;
  --border-hover: #2a3040;
  --nav-height: 72px;
  --max-width: 1200px;
  --radius: 16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* --- Noise Texture Overlay --- */
.noise {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(12, 15, 20, 0.6);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* Gradient accent line that echoes the hero waveform */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 211, 238, 0) 15%,
    rgba(34, 211, 238, 0.45) 35%,
    rgba(59, 130, 246, 0.6) 50%,
    rgba(99, 102, 241, 0.45) 65%,
    rgba(34, 211, 238, 0) 85%,
    transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.nav.scrolled {
  background: rgba(12, 15, 20, 0.85);
  border-bottom-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

.nav.scrolled::after { opacity: 1; }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo with subtle hover glow */
.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition);
}

.nav-logo img {
  height: 30px;
  width: auto;
  transition: filter var(--transition);
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.55));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 4px;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  padding: 8px 18px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-links a.active::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.25) inset,
    0 6px 20px -8px rgba(59, 130, 246, 0.5);
  overflow: hidden;
  isolation: isolate;
}


.nav-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #6366f1 100%) !important;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.5) inset,
    0 10px 28px -6px rgba(59, 130, 246, 0.55);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Badge / Pill Labels --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge::before { content: '\25C9'; margin-right: 2px; }

.badge.orange {
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--orange);
}

.badge.green {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--green);
}

.badge.red {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--red);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-2);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Sections --- */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 62%;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 100%);
}

.hero-wave canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content { max-width: 720px; position: relative; z-index: 2; }

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* Stat bar */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.stat-item.green h3 { color: var(--green); }
.stat-item.orange h3 { color: var(--orange); }
.stat-item.red h3 { color: var(--red); }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card-icon.green { background: var(--green-soft); }
.card-icon.orange { background: var(--orange-soft); }
.card-icon.red { background: var(--red-soft); }
.card-icon.purple { background: var(--purple-soft); }

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 auto 20px;
}

.step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

.step-connector {
  display: none;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  text-align: center;
  padding: 40px 28px;
}

.problem-card .number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  line-height: 1;
}

.problem-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* --- Testimonials --- */
.testimonials-track {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active { display: block; }

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

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial-card blockquote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--blue);
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author { color: var(--text-muted); font-size: 0.95rem; }
.testimonial-author strong { color: var(--text-secondary); }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--blue);
  transform: scale(1.2);
}

/* --- Founders Preview --- */
.founders-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.founders-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.founders-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Then & Now photo pair */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.photo-frame:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.photo-frame img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}


.photo-frame .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

.photo-frame .photo-caption span {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-frame img { height: 260px; }
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-section .section-title { margin-bottom: 16px; }
.cta-section .section-subtitle { margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo img { height: 36px; }

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.footer-links a:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
}

.footer-contact {
  text-align: center;
}

.footer-contact a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-contact a:hover { color: var(--blue); }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.03em;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  text-align: center;
}

.page-header .section-title { font-size: 3rem; }

/* --- Investor Metrics --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  text-align: center;
  padding: 32px 20px;
}

.metric-card .value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1;
}

.metric-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.metric-card.green .value { color: var(--green); }
.metric-card.orange .value { color: var(--orange); }

/* --- Timeline / Process --- */
.process-steps {
  max-width: 600px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.process-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.process-step:last-child { margin-bottom: 0; }

.process-step .step-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--blue-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--blue);
}

.process-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Team Bios --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.team-card {
  padding: 36px;
}

.team-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.team-card ul { margin-top: 12px; }

.team-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.team-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  position: absolute;
  left: 0;
  top: 13px;
}

/* --- Video Embed --- */
.video-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Market Table --- */
.market-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th,
.market-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.market-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.market-table td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.market-table td:first-child { color: var(--text-primary); font-weight: 600; }
.market-table td:nth-child(2) { color: var(--blue); font-weight: 700; font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.market-table tr:last-child td { border-bottom: none; }

/* --- Traction Table --- */
.traction-table {
  width: 100%;
  border-collapse: collapse;
}

.traction-table th,
.traction-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.traction-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.traction-table td { font-size: 0.95rem; }
.traction-table tr:last-child td { border-bottom: none; }

.status-signed { color: var(--green); font-weight: 600; }
.status-verbal { color: #f59e0b; font-weight: 600; }
.status-expected { color: var(--text-muted); }

/* --- Raise Card --- */
.raise-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  border: 2px solid var(--blue) !important;
}

.raise-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.raise-card .raise-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 32px;
  line-height: 1;
}

.raise-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
  text-align: left;
}

.raise-details > div {
  background: var(--bg-card-2);
  border-radius: 10px;
  padding: 16px;
}

.raise-detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.raise-detail-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 4px;
  font-family: 'Outfit', sans-serif;
}

/* --- LOI Page --- */
.loi-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.loi-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Callout Box --- */
.callout {
  background: var(--blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.callout strong { color: var(--text-primary); }
.callout.orange { background: var(--orange-soft); border-color: rgba(249, 115, 22, 0.2); }
.callout.green { background: var(--green-soft); border-color: rgba(34, 197, 94, 0.2); }

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid,
  .problem-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-right { display: none; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(12, 15, 20, 0.92);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 6px;
    border: none;
    border-radius: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  }

  .nav-links::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 160px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
    opacity: 0.5;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, color var(--transition), background var(--transition);
  }

  .nav-links a::before { display: none; }

  .nav-links.open a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open a:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.2s; }

  .nav-links a.active {
    background: rgba(59, 130, 246, 0.12);
    border-left: 2px solid var(--blue);
  }

  body.nav-open { overflow: hidden; }

  .nav-toggle { display: flex; }

  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  .page-header .section-title { font-size: 2.2rem; }

  .features-grid,
  .problem-grid,
  .steps,
  .team-grid,
  .founders-preview {
    grid-template-columns: 1fr;
  }

  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .raise-details { grid-template-columns: 1fr; }

  section { padding: 72px 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 60px); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .founders-image img { height: 280px; }
  .process-step { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .stat-bar { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-item h3 { font-size: 1.5rem; }
  .stat-item { padding: 18px; }
  .card { padding: 24px; }
}

/* ============================================
   POLISH PASS - Additive refinements
   ============================================ */

/* --- Accessible focus states --- */
:where(a, button, .btn, .nav-cta, .testimonial-dot):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 10px;
}

.nav-links a:focus-visible,
.footer-links a:focus-visible {
  outline-offset: 2px;
}

/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* --- Card gradient-border glow on hover --- */
.card,
.stat-item,
.step,
.process-step,
.photo-frame,
.testimonial-card {
  position: relative;
  isolation: isolate;
}

.card::before,
.stat-item::before,
.step::before,
.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0) 40%, rgba(168, 85, 247, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before,
.stat-item:hover::before,
.step:hover::before,
.process-step:hover::before {
  opacity: 1;
}

.card:hover,
.stat-item:hover,
.step:hover,
.process-step:hover {
  box-shadow: 0 12px 40px -12px rgba(59, 130, 246, 0.25);
}

/* Color-aware glow on stat-item variants */
.stat-item.orange:hover { box-shadow: 0 12px 40px -12px rgba(249, 115, 22, 0.3); }
.stat-item.green:hover  { box-shadow: 0 12px 40px -12px rgba(34, 197, 94, 0.28); }
.stat-item.red:hover    { box-shadow: 0 12px 40px -12px rgba(239, 68, 68, 0.28); }

.stat-item.orange::before { background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(249, 115, 22, 0) 55%, rgba(249, 115, 22, 0.15)); }
.stat-item.green::before  { background: linear-gradient(135deg, rgba(34, 197, 94, 0.4),  rgba(34, 197, 94, 0) 55%,  rgba(34, 197, 94, 0.15)); }
.stat-item.red::before    { background: linear-gradient(135deg, rgba(239, 68, 68, 0.4),  rgba(239, 68, 68, 0) 55%,  rgba(239, 68, 68, 0.15)); }

/* Color-aware glow on metric-card variants */
.metric-card.green:hover  { box-shadow: 0 12px 40px -12px rgba(34, 197, 94, 0.28); }
.metric-card.orange:hover { box-shadow: 0 12px 40px -12px rgba(249, 115, 22, 0.3); }

/* --- Button shine sweep --- */
.btn-primary,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.nav-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.nav-cta:hover::after {
  left: 140%;
}

/* --- Section title: subtle gradient shimmer --- */
.section-title {
  background: linear-gradient(180deg, var(--text-primary) 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Keep nested highlights readable */
.section-title .highlight,
.hero-title .highlight {
  -webkit-text-fill-color: var(--blue);
}

/* --- Hero title: add subtle glow --- */
.hero-title {
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.1));
}

/* --- Nav scroll refinement --- */
.nav.scrolled {
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.5);
}

/* --- Badge refinement: add soft pulse dot --- */
.badge::before {
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* --- Testimonial card: soft spotlight --- */
.testimonial-card {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06), transparent 60%), var(--bg-card);
}

/* --- Photo frame: gradient shine on hover --- */
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.0) 40%, rgba(59, 130, 246, 0.18) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.photo-frame:hover::after { opacity: 1; }

/* --- Raise card: more presence --- */
.raise-card {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%), var(--bg-card);
  box-shadow: 0 24px 80px -32px rgba(59, 130, 246, 0.35);
}

.raise-card .raise-amount {
  background: linear-gradient(135deg, #60a5fa 0%, var(--blue) 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Tables: subtle row hover --- */
.market-table tbody tr,
.traction-table tbody tr {
  transition: background var(--transition);
}

.market-table tbody tr:hover,
.traction-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

/* --- Section label: subtle color shift --- */
.section-label {
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Footer: add top accent gradient --- */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.02) 100%);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
}

/* --- Link underline on hover (content links) --- */
.loi-content a,
.footer-contact a {
  position: relative;
}

.loi-content a::after,
.footer-contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.loi-content a:hover::after,
.footer-contact a:hover::after {
  transform: scaleX(1);
}

/* --- Fade-in: slight scale for more lift --- */
.fade-in {
  transform: translateY(24px) scale(0.985);
}

.fade-in.visible {
  transform: translateY(0) scale(1);
}

/* ============================================
   HOMEPAGE SECTION POLISH
   ============================================ */

/* --- Subtle dot grid on the page --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
}

/* Section glow accent (used by How It Works) */
.section-glow {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(99, 102, 241, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-glow > * { position: relative; z-index: 1; }

/* --- Steps: flow connector + icons + eyebrow --- */
.steps-flow {
  position: relative;
}

.step-connector-line {
  position: absolute;
  top: 67px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.18) 22%,
    rgba(59, 130, 246, 0.22) 50%,
    rgba(59, 130, 246, 0.18) 78%,
    transparent 100%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.step-connector-pulse {
  display: none;
}

@keyframes stepPulse {
  0%   { left: -14%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 768px) {
  .step-connector-line { display: none; }
}

.step {
  z-index: 1;
}

.step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 8px 32px -16px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step:hover .step-icon {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  color: #22d3ee;
  box-shadow: 0 12px 36px -12px rgba(34, 211, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.step-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Hide the legacy step-number when icon is present */
.steps-flow .step-number { display: none; }

/* --- Video card frame glow --- */
#demo-video .video-wrap {
  position: relative;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow:
    0 30px 80px -30px rgba(59, 130, 246, 0.35),
    0 0 0 1px rgba(59, 130, 246, 0.05);
}

#demo-video .video-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16), transparent 60%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

/* --- Testimonials: glass card + giant quote + pill dot --- */
.testimonial-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1), transparent 60%),
    rgba(21, 25, 32, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -40px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 12rem;
  line-height: 1;
  color: rgba(59, 130, 246, 0.12);
  pointer-events: none;
  z-index: 0;
}

.testimonial-card blockquote,
.testimonial-card .testimonial-author {
  position: relative;
  z-index: 1;
}

/* Hide the inline quotation pseudo (the original blockquote::before) since
   we now have the giant background mark on the card itself */
.testimonial-card blockquote::before { display: none; }

.testimonial-slide {
  animation: testimonialFadeSlide 0.6s ease both;
}

@keyframes testimonialFadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: width var(--transition), background var(--transition);
}

.testimonial-dot.active {
  width: 28px;
  height: 10px;
  background: var(--blue);
  transform: none;
}

/* --- Founders: gradient border on photo frames --- */
.photo-frame {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(99, 102, 241, 0.2)) border-box;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.45), rgba(59, 130, 246, 0.15) 40%, rgba(99, 102, 241, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Animated arrow on outline link buttons --- */
.btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.btn-arrow-link:hover .btn-arrow,
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Final CTA: gradient frame + larger button + waveform callback --- */
.cta-section {
  background: transparent;
  padding: 120px 0;
}

.cta-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(59, 130, 246, 0.25) 35%, rgba(99, 102, 241, 0.5) 100%);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(59, 130, 246, 0.4);
}

.cta-frame-inner {
  position: relative;
  border-radius: 27px;
  background:
    radial-gradient(ellipse at top, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg-secondary);
  padding: 80px 40px;
  text-align: center;
  z-index: 1;
}

.cta-frame .section-label { display: inline-block; }

.cta-wave-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  border-radius: 0 0 27px 27px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

.cta-frame .section-title,
.cta-frame .section-subtitle,
.cta-frame .cta-buttons {
  position: relative;
  z-index: 2;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 0.92rem;
  border-radius: 10px;
}

.btn-pulse {
  animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45), 0 8px 30px rgba(59, 130, 246, 0.25); }
  50%      { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0),   0 8px 30px rgba(59, 130, 246, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
  .step-connector-pulse { animation: none; opacity: 0; }
}

@media (max-width: 768px) {
  .cta-frame-inner { padding: 56px 24px; }
  .cta-section { padding: 80px 0; }
}

/* ============================================
   STORY PAGE POLISH
   ============================================ */

/* --- Page header with wave echo --- */
.page-header-wave {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.page-header-bg .page-wave-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 60%;
  opacity: 0.45;
}

.page-header-wave .container { position: relative; z-index: 1; }

/* --- Story chips --- */
.story-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 48px auto 0;
}

.story-chip {
  background: rgba(21, 25, 32, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.story-chip:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -16px rgba(59, 130, 246, 0.35);
}

.chip-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .story-chips { grid-template-columns: 1fr 1fr; }
}

/* --- Origin story timeline --- */
.origin-copy .section-label { display: block; margin-bottom: 12px; }

.story-timeline {
  position: relative;
  margin-top: 24px;
  padding-left: 18px;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(34, 211, 238, 0.5),
    rgba(59, 130, 246, 0.35) 50%,
    rgba(99, 102, 241, 0.2));
}

.story-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 10px 0 18px;
}

.story-timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 6px 0 0;
}

/* --- Team cards: avatar + badge --- */
.team-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px -16px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.team-avatar svg { width: 26px; height: 26px; }

/* Photo variant: circular founder headshot with gradient ring */
.team-avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.7), rgba(59, 130, 246, 0.45) 40%, rgba(99, 102, 241, 0.7));
  border: none;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.25) inset,
    0 12px 40px -16px rgba(34, 211, 238, 0.55);
  overflow: hidden;
  margin-bottom: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-avatar-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  background: var(--bg-card-2);
}

.team-card:hover .team-avatar-photo {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.5) inset,
    0 18px 50px -14px rgba(34, 211, 238, 0.7);
}

.team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.team-head h3 { margin-bottom: 2px; }
.team-head .role { margin-bottom: 0; }

.team-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  white-space: nowrap;
}

/* Use story cta-frame variant with more breathing room on story page */
.cta-section + .footer { margin-top: 0; }

/* ============================================
   DEMO / INVESTOR PAGE POLISH
   ============================================ */

/* --- Process grid (demo page) --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  isolation: isolate;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.process-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(59, 130, 246, 0.3);
}

.process-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 8px 32px -16px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color var(--transition), transform var(--transition), border-color var(--transition);
}

.process-icon svg { width: 20px; height: 20px; }

.process-card:hover .process-icon {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

.process-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* --- LOI cards --- */
.loi-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.loi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.loi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.loi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(59, 130, 246, 0.3);
}

.loi-card-featured {
  border-color: rgba(59, 130, 246, 0.4);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg-card);
  box-shadow: 0 24px 80px -32px rgba(59, 130, 246, 0.4);
}

.loi-card-featured:hover {
  border-color: rgba(59, 130, 246, 0.7);
}

.loi-card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.loi-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(59, 130, 246, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px -16px rgba(59, 130, 246, 0.5);
}

.loi-card-icon svg { width: 20px; height: 20px; }

.loi-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.loi-card-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.loi-submit {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.loi-submit p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .loi-grid { grid-template-columns: 1fr; }
}

/* --- Pipeline cards (investor page) --- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pipeline-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.pipeline-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.pipeline-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pipeline-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .pipeline-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Investor metric cards: add icon & variants --- */
.metrics-grid .metric-card.green .value { color: var(--green); }
.metrics-grid .metric-card.orange .value { color: var(--orange); }

/* --- Traction table row status pills --- */
.status-signed,
.status-verbal,
.status-expected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-signed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.status-signed::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.status-verbal {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-expected {
  background: rgba(100, 116, 139, 0.08);
  color: var(--text-muted);
}

/* ============================================
   MOBILE POLISH OVERRIDE (375-768px)
   Comprehensive pass for spacing, typography,
   and layout on small screens.
   ============================================ */
@media (max-width: 768px) {

  /* --- Global type scale down --- */
  .hero-title { font-size: 2rem !important; letter-spacing: -0.01em; }
  .hero-subtitle { font-size: 0.95rem !important; margin-bottom: 28px !important; }
  .section-title { font-size: 1.6rem !important; }
  .section-subtitle { font-size: 0.9rem !important; }
  .section-label { font-size: 0.7rem !important; letter-spacing: 1.5px; margin-bottom: 10px; }
  .page-header .section-title { font-size: 1.8rem !important; }

  /* --- Tighter section padding --- */
  section { padding: 56px 0 !important; }
  .page-header { padding-top: calc(var(--nav-height) + 40px) !important; padding-bottom: 32px !important; }
  .hero { padding-top: calc(var(--nav-height) + 32px) !important; padding-bottom: 40px !important; }
  .cta-section { padding: 56px 0 !important; }

  /* --- Container breathing room --- */
  .container { padding: 0 20px; }

  /* --- Hero buttons: row not column, smaller --- */
  .hero-ctas {
    flex-direction: row !important;
    gap: 10px !important;
    margin-bottom: 36px !important;
  }

  .hero-ctas .btn {
    padding: 9px 18px;
    font-size: 0.82rem;
  }

  /* --- Badge smaller --- */
  .badge { font-size: 10px; padding: 5px 12px; margin-bottom: 14px; }

  /* --- Tagline above hero title --- */
  .hero-content > p:first-of-type {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
  }

  /* --- Stat bar: 2-col grid, compact --- */
  .stat-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .stat-item {
    padding: 16px !important;
    border-radius: 12px;
  }
  .stat-item h3 { font-size: 1.4rem !important; }
  .stat-item p { font-size: 0.68rem !important; }

  /* --- Step cards: 3-col side by side, compact --- */
  .steps { grid-template-columns: 1fr 1fr 1fr !important; gap: 8px !important; }
  .step { padding: 16px 10px !important; text-align: center !important; }
  .step-icon { width: 32px !important; height: 32px !important; margin: 0 auto 8px !important; border-radius: 8px !important; }
  .step-icon svg { width: 14px !important; height: 14px !important; }
  .step-eyebrow { font-size: 0.5rem !important; margin-bottom: 2px !important; }
  .step h3 { font-size: 0.75rem !important; margin-bottom: 3px !important; }
  .step p { font-size: 0.65rem !important; line-height: 1.45 !important; }

  /* --- Process cards (demo page) --- */
  .process-card { padding: 24px 18px !important; }
  .process-icon { width: 40px !important; height: 40px !important; }
  .process-icon svg { width: 18px !important; height: 18px !important; }
  .process-card h3 { font-size: 0.95rem !important; }
  .process-card p { font-size: 0.8rem !important; }
  .process-card .step-eyebrow { font-size: 0.6rem !important; }

  /* --- Video wrap --- */
  .video-wrap { border-radius: 12px; }
  #demo-video .video-wrap { box-shadow: 0 16px 40px -16px rgba(59, 130, 246, 0.25) !important; }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 32px 20px !important;
  }
  .testimonial-card blockquote { font-size: 1rem !important; }
  .testimonial-card::before { font-size: 8rem !important; top: -28px !important; left: 14px !important; }

  /* --- Founders preview: keep photos side-by-side, smaller --- */
  .founders-preview { gap: 28px !important; }
  .photo-pair { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .photo-frame img { height: 150px !important; }
  .photo-frame .photo-caption { padding: 14px 10px 10px !important; font-size: 0.7rem !important; }
  .photo-frame .photo-caption span { font-size: 0.6rem !important; }

  /* --- Story chips --- */
  .story-chips { gap: 8px !important; margin-top: 32px !important; }
  .chip-value { font-size: 1.3rem !important; }
  .chip-label { font-size: 0.62rem !important; }
  .story-chip { padding: 14px 12px !important; border-radius: 10px; }

  /* --- Timeline --- */
  .story-timeline { padding-left: 10px !important; }
  .story-timeline-item { grid-template-columns: 36px 1fr !important; gap: 12px !important; }
  .timeline-dot { width: 28px !important; height: 28px !important; font-size: 0.65rem !important; border-radius: 8px; }
  .timeline-body p { font-size: 0.85rem !important; }

  /* --- Team cards: side by side on mobile --- */
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .team-card { padding: 16px 12px !important; }
  .team-avatar-photo { width: 44px !important; height: 44px !important; margin-bottom: 10px !important; }
  .team-head { flex-direction: column !important; gap: 4px !important; }
  .team-head h3 { font-size: 0.85rem !important; }
  .team-card .role { font-size: 0.7rem !important; }
  .team-badge { font-size: 0.5rem !important; padding: 2px 6px !important; }
  .team-card p { font-size: 0.72rem !important; line-height: 1.5 !important; }
  .team-card li { font-size: 0.68rem !important; padding: 3px 0 !important; padding-left: 14px !important; }
  .team-card li::before { width: 4px !important; height: 4px !important; top: 9px !important; }
  .team-card ul { margin-top: 8px !important; }

  /* --- Metrics grid (investor) --- */
  .metrics-grid { gap: 10px !important; }
  .metric-card { padding: 20px 14px !important; }
  .metric-card .value { font-size: 1.6rem !important; }
  .metric-card .label { font-size: 0.68rem !important; }

  /* --- Pipeline cards --- */
  .pipeline-grid { gap: 10px !important; }
  .pipeline-card { padding: 22px 14px !important; }
  .pipeline-value { font-size: 1.7rem !important; }
  .pipeline-label { font-size: 0.78rem !important; }

  /* --- CTA frame --- */
  .cta-frame { border-radius: 20px; }
  .cta-frame-inner {
    padding: 40px 20px !important;
    border-radius: 19px;
  }
  .cta-frame .section-title { font-size: 1.5rem !important; }
  .cta-frame .section-subtitle { font-size: 0.85rem !important; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .cta-buttons .btn-lg { padding: 10px 24px !important; font-size: 0.85rem !important; }

  /* --- LOI cards --- */
  .loi-card { padding: 28px 20px !important; }
  .loi-card h3 { font-size: 1.05rem !important; }
  .loi-card-body { font-size: 0.82rem !important; }
  .loi-card-icon { width: 40px !important; height: 40px !important; }
  .loi-card-icon svg { width: 18px !important; height: 18px !important; }
  .loi-card-tag { font-size: 0.58rem !important; padding: 3px 8px !important; }

  /* --- Raise card --- */
  .raise-card { padding: 24px 18px !important; max-width: 320px !important; }
  .raise-card h3 { font-size: 1rem !important; }
  .raise-card .raise-amount { font-size: 1.6rem !important; margin-bottom: 20px !important; }
  .raise-details { gap: 8px !important; margin-bottom: 20px !important; }
  .raise-details > div { padding: 10px 12px !important; }
  .raise-detail-label { font-size: 0.6rem !important; }
  .raise-detail-value { font-size: 0.9rem !important; }
  .raise-card .btn { padding: 9px 18px !important; font-size: 0.8rem !important; }

  /* --- Cards general --- */
  .card { padding: 22px 18px !important; border-radius: 12px; }
  .card h3 { font-size: 1.05rem !important; }

  /* --- Footer --- */
  .footer { padding: 40px 0 28px !important; }
  .footer-inner { gap: 20px !important; }
  .footer-logo img { height: 28px !important; }
  .footer-links { gap: 4px !important; }
  .footer-links a { font-size: 0.78rem !important; padding: 5px 10px !important; }
  .footer-copy { font-size: 0.68rem !important; }

  /* --- Buttons global mobile --- */
  .btn { padding: 9px 18px !important; font-size: 0.82rem !important; }
  .btn-lg { padding: 10px 22px !important; font-size: 0.85rem !important; }
  .btn-arrow { width: 12px !important; height: 12px !important; }

  /* --- Section header spacing --- */
  .section-header { margin-bottom: 40px !important; }
}

/* --- Extra small (under 400px) --- */
@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem !important; }
  .hero-ctas .btn { padding: 8px 14px !important; font-size: 0.78rem !important; }
  .stat-item h3 { font-size: 1.2rem !important; }
  .section-title { font-size: 1.4rem !important; }
  .cta-frame .section-title { font-size: 1.3rem !important; }
  .story-chips { grid-template-columns: 1fr 1fr; }
}
