:root {
  --bg-dark: #0a0a0a;
  --bg-hero: #1a1a1a;
  --bg-light: #ffffff;
  --bg-light-alt: #f8f9fa;
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-yellow: #fbbf24;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  --border-soft: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
}

/* Layout */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-brand span {
  white-space: nowrap;
}

.nav-logo-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--text-light);
  background: rgba(251, 191, 36, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-yellow);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: var(--text-light);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.02);
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin: 0.5rem 0 0;
  color: var(--accent-yellow);
  font-weight: 500;
}

.hero-subline {
  font-size: 1rem;
  margin: 0.25rem 0 0;
  color: #d1d5db;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--bg-light-alt);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 800px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lede {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Cards */
.card {
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card + .card {
  margin-top: 1.5rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 1rem 0;
}

.card p {
  margin: 0.75rem 0;
  line-height: 1.7;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
  margin: 1.5rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table thead {
  background: var(--bg-light-alt);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-soft);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--bg-light-alt);
}

/* Lists */
.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-red);
  font-weight: 700;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ownership-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-light-alt);
  border-radius: 8px;
  border-left: 3px solid var(--accent-yellow);
}

/* PDF Viewer */
.pdf-block {
  margin: 2rem 0;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.pdf-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.pdf-frame {
  width: 100%;
  min-height: 500px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fafafa;
}

.pdf-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--accent-red);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--accent-red-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
}

.btn.secondary:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Business Model Canvas */
.bmc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.bmc-box {
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.bmc-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bmc-box-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.bmc-metric {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fffbeb;
  border-left: 3px solid var(--accent-yellow);
  font-size: 0.875rem;
}

.bmc-metric strong {
  color: var(--accent-red);
  font-weight: 600;
}

/* One-Pager Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.metric-pill {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.metric-pill:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.metric-pill-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-pill-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.875rem;
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer strong {
  color: #d1d5db;
  font-weight: 600;
}

.site-footer a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fcd34d;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .navbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .stats-row,
  .metrics-grid,
  .bmc-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .metric-pill-value {
    font-size: 2rem;
  }

  .pdf-frame {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 280px;
  }

  .nav-brand span {
    font-size: 0.85rem;
  }

  .card {
    padding: 1.25rem;
  }

  .table th,
  .table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .site-footer {
    font-size: 0.8125rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .nav-toggle,
  .pdf-actions,
  .btn {
    display: none;
  }

  .hero {
    background: #ffffff;
    color: var(--text-main);
  }

  .card,
  .stat-card,
  .metric-pill {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}
/* --- New Layout Grid --- */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 2rem;
}

.layout-card {
  border: 1px solid var(--border);
  background: var(--dark-bg, #919191); /* Uses existing dark bg */
  padding: 20px;
}

.layout-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--yellow); /* Uses existing yellow */
  margin-bottom: 12px;
}

.layout-card p {
  font-size: 0.9rem;
  color: var(--subtext); /* Uses existing subtext color */
  margin-bottom: 16px;
  text-align: left;
}

.layout-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}