/* ═══════════════════════════════════════════════════════════════════════════
   HomeBid Investor Portal — Brand Styles
   Exaggerated Minimal Design System
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Core Colors */
  --bg: #fafafa;
  --bg-alt: #f5f5f5;
  --fg: #0a0a0a;
  --fg-muted: #555;
  --fg-faint: #999;
  --fg-ghost: #ccc;
  
  /* Brand Accent */
  --teal: #0f766e;
  --teal-soft: #f0fdfa;
  --teal-dark: #0d6560;
  
  /* Status Colors */
  --green: #22c55e;
  --green-soft: #f0fdf4;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --red: #ef4444;
  --red-soft: #fef2f2;
  
  /* Surfaces */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --surface: #fff;
  --surface-elevated: #fff;
  
  /* Dark Mode (for dark sections) */
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
  
  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  
  /* Spacing */
  --nav-height: 72px;
  --container-max: 1200px;
  --container-narrow: 800px;
  --section-padding: 120px;
  --section-padding-mobile: 80px;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--teal);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── Container ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1280px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.heading-xl {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.heading-lg {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.heading-md {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.heading-sm {
  font-size: 1.25rem;
}

.text-light {
  font-weight: 300;
  color: var(--fg-faint);
}

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

.text-faint {
  color: var(--fg-faint);
}

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

/* ─── Section Tag (mono uppercase) ─── */
.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: inline-block;
}

/* ─── Section Subtitle ─── */
.section-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ─── Sections ─── */
.section {
  padding: var(--section-padding) 0;
}

.section--border {
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section--dark .section-tag {
  color: var(--teal);
  opacity: 0.8;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .heading-lg {
  color: #fff;
}

.section--dark .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  color: var(--teal);
  padding: 0;
  border-radius: 0;
  margin-left: 12px;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: var(--fg);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.nav-cta:hover {
  transform: scale(1.03);
  background: #1a1a1a;
}

/* Mobile Nav */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 40px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
}

.mobile-menu-cta {
  margin-top: 40px;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--fg);
  padding: 16px 32px;
  border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
  .nav {
    padding: 0 24px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--fg);
  color: #fff;
  padding: 18px 44px;
  font-size: 16px;
}

.btn--primary:hover {
  transform: scale(1.03);
  background: #1a1a1a;
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  padding: 14px 32px;
  font-size: 14px;
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: #fff;
}

.btn--teal {
  background: var(--teal);
  color: #fff;
  padding: 18px 44px;
  font-size: 16px;
}

.btn--teal:hover {
  background: var(--teal-dark);
  transform: scale(1.03);
}

.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn--lg {
  padding: 20px 52px;
  font-size: 17px;
}

.btn--invert {
  background: #fff;
  color: var(--fg);
}

.btn--invert:hover {
  background: #fff;
  transform: scale(1.03);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  padding: 14px 32px;
  font-size: 14px;
}

.btn--ghost:hover {
  background: var(--bg-alt);
}

.btn .arrow {
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.card--feature {
  border-radius: var(--radius-xl);
  padding: 48px;
}

.card--dark {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: #fff;
}

.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.card--highlight {
  border-color: var(--teal);
  background: var(--teal-soft);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Stats & Metrics
   ═══════════════════════════════════════════════════════════════════════════ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.stat-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-value--teal {
  color: var(--teal);
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
}

/* Large stat display */
.stat-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.stat-hero-value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-hero-label {
  font-size: 15px;
  color: var(--fg-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Data Tables
   ═══════════════════════════════════════════════════════════════════════════ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.data-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
}

.data-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.data-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.data-table td {
  color: var(--fg);
}

.data-table tbody tr:hover {
  background: var(--bg-alt);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Progress Bars
   ═══════════════════════════════════════════════════════════════════════════ */

.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: var(--radius-full);
  transition: width 1s var(--ease);
}

.progress-bar-fill--green {
  background: var(--green);
}

.progress-bar-fill--amber {
  background: var(--amber);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Timeline
   ═══════════════════════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.timeline-item--completed .timeline-dot {
  background: var(--green);
}

.timeline-item--pending .timeline-dot {
  background: var(--border-strong);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Timeline Item Hover Effects */
.timeline-item {
  cursor: pointer;
  padding: 16px;
  margin-left: -16px;
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}

.timeline-item:hover {
  background: var(--bg-alt);
  transform: translateX(8px);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2);
}

.timeline-item:hover .timeline-title {
  color: var(--teal);
}

.timeline-dot {
  transition: all 0.3s var(--ease);
}

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

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-link-group h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-group a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-link-group a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.1s; }
.reveal-d3 { transition-delay: 0.15s; }
.reveal-d4 { transition-delay: 0.2s; }
.reveal-d5 { transition-delay: 0.25s; }

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

/* ═══════════════════════════════════════════════════════════════════════════
   Status Badges
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.badge--teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge--green {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 4px 10px;
}

/* Professional status indicator - replaces soft badges */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.status-indicator--built {
  color: var(--teal);
}

.status-indicator--built::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.status-indicator--active {
  color: var(--green);
}

.status-indicator--active::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.status-indicator--ready {
  color: #0EA5E9;
}

.status-indicator--ready::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #0EA5E9;
  border-radius: 50%;
}

.status-indicator--planned {
  color: var(--fg-faint);
}

.status-indicator--planned::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fg-faint);
  border-radius: 50%;
}

.badge--amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge--red {
  background: var(--red-soft);
  color: var(--red);
}

.badge--dark {
  background: var(--fg);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Investor-Specific Components
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.hero {
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--teal-soft);
  border-radius: var(--radius-full);
}

.hero-title {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.35rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--fg-faint);
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }
  
  .hero-stat {
    min-width: 120px;
  }
}

/* Data Room Cards */
.dataroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.dataroom-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.dataroom-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.dataroom-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.dataroom-card-icon svg {
  width: 24px;
  height: 24px;
}

.dataroom-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.dataroom-card-meta {
  font-size: 13px;
  color: var(--fg-faint);
}

/* Metric Highlight */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 15px;
  color: var(--fg-muted);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
}

.metric-value--highlight {
  color: var(--teal);
}

/* Feature List */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .check {
  width: 20px;
  height: 20px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list .check svg {
  width: 12px;
  height: 12px;
}

/* Confidential Banner */
.confidential-banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 24px;
}

.confidential-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

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

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

/* Phase cards responsive */
@media (max-width: 1024px) {
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   Fix inline grid layouts that cause overflow on mobile
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure body doesn't overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Fix all inline 2-column grids */
@media (max-width: 768px) {
  /* Target all inline grid containers with 2 columns */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Target all inline grid containers with 3 columns */
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Target all inline grid containers with 4 columns */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Reduce padding on cards for mobile */
  .card {
    padding: 24px;
  }
  
  .card--feature {
    padding: 28px;
  }
  
  /* Fix hero stats wrapping */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .hero-stat-value {
    font-size: 2rem;
  }
  
  /* Fix hero actions stacking */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Fix stat-hero sizes on mobile */
  .stat-hero {
    padding: 32px 20px;
  }
  
  .stat-hero-value {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  /* Fix section subtitle max-width */
  .section-sub {
    max-width: 100%;
  }
  
  /* Fix inline flex layouts with min-width children */
  [style*="display: flex"][style*="align-items"] {
    flex-wrap: wrap !important;
  }
  
  /* Ensure all images stay in bounds */
  img, video, svg, canvas {
    max-width: 100%;
    height: auto;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  /* Stack 4-column grids to single column */
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  /* Smaller headings on tiny screens */
  .heading-xl {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  
  .heading-lg {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  
  /* Reduce container padding */
  .container {
    padding: 0 16px;
  }
  
  /* Adjust nav for very small screens */
  .nav {
    padding: 0 16px;
  }
  
  .nav-logo-img {
    height: 28px;
  }
  
  .nav-badge {
    font-size: 8px;
    padding-left: 8px;
    margin-left: 8px;
  }
}

/* Chain Visualization Mobile Fixes */
@media (max-width: 768px) {
  .chain-viz-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #chainVizContainer {
    min-width: 320px;
    max-width: 100%;
  }
  
  .chain-viz-hint {
    font-size: 12px;
    padding: 0 16px;
  }
}

/* Additional Mobile Overflow Fixes */
@media (max-width: 640px) {
  /* Fix founder/team card avatar */
  .card--feature [style*="display: flex"][style*="gap: 32px"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  
  /* Make fixed-width avatars responsive */
  [style*="width: 100px"][style*="height: 100px"] {
    width: 80px !important;
    height: 80px !important;
  }
  
  /* Fix the 27→9 steps comparison on mobile */
  [style*="display: flex"][style*="justify-content: center"][style*="gap: 32px"] {
    gap: 16px !important;
  }
  
  /* Reduce large display numbers on mobile */
  [style*="font-size: 4rem"] {
    font-size: 2.5rem !important;
  }
  
  [style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }
  
  /* Fix network effect explainer card */
  .card--dark [style*="display: flex"][style*="align-items: flex-start"] {
    flex-direction: column !important;
  }
  
  /* Ensure badges wrap properly */
  [style*="display: flex"][style*="gap: 12px"] {
    flex-wrap: wrap !important;
  }
  
  /* Fix use of funds grid */
  [style*="display: grid"][style*="gap: 24px"] {
    gap: 16px !important;
  }
}

/* Prevent common elements from exceeding viewport width */
img, video, iframe, embed, object, svg, canvas, table, pre, code {
  max-width: 100%;
}

/* Ensure sections don't overflow */
.section {
  overflow-x: hidden;
}

/* Ensure cards and their contents stay within bounds */
.card, .card--feature, .card--dark, .card--highlight {
  overflow: hidden;
  word-wrap: break-word;
}

/* Fix any element with explicit wide widths on mobile */
@media (max-width: 768px) {
  [style*="max-width: 900px"],
  [style*="max-width: 800px"],
  [style*="max-width: 700px"],
  [style*="max-width: 600px"] {
    max-width: 100% !important;
  }
  
  /* Ensure long words don't cause overflow */
  p, li, span, a, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
