/* AI Governance School — Particle Design System */

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

:root {
  --data-red: #D62828;
  --success-green: #2E8B57;
  --primary-blue: #0047AB;
  --action-orange: #FF6B35;

  --bg-dark: #1a1a1a;
  --white: #FFFFFF;
  --text-black: #1A1A1A;

  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --spacing-section: 120px;
  --spacing-element: 48px;
  --spacing-small: 24px;
}

body {
  font-family: var(--font-stack);
  color: var(--white);
  background: var(--bg-dark);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

/* Canvas Background — fixed fullscreen behind all content */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-element);
}

h1 {
  font-size: 64px;
  letter-spacing: -2px;
}

h2 {
  font-size: 48px;
  letter-spacing: -1px;
}

h3 {
  font-size: 32px;
}

p {
  margin-bottom: var(--spacing-small);
  max-width: 600px;
}

a {
  color: var(--action-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--white);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--action-orange);
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

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

/* Container */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-section) 24px;
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.hero-headline {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
}

.hero-headline .line {
  display: block;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
}

.hero-subhead {
  font-size: 24px;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
  max-width: 700px;
  margin-bottom: 48px;
}

.cta-group {
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
}

/* Statement Cards */
.hero-statements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.statement-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
  border-radius: 12px;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
}

.statement-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--action-orange);
}

.statement-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 36px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--action-orange);
  color: var(--white);
  border: 2px solid var(--action-orange);
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 24px;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--action-orange);
  border: 2px solid var(--action-orange);
}

.btn-outline:hover {
  background: var(--action-orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* Content Sections */
.content-section {
  padding: var(--spacing-section) 24px;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-headline {
  margin-bottom: 24px;
}

.section-headline .line {
  display: block;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-section) 24px;
  position: relative;
  z-index: 10;
  background: rgba(0, 71, 171, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-headline {
  color: var(--white);
  margin-bottom: 24px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 72px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 32px;
  border-radius: 12px;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--action-orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card:hover::before {
  transform: scaleY(1);
}

.stat-number {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--action-orange), #ff8c5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.stat-card.harm .stat-number {
  background: linear-gradient(135deg, var(--data-red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.harm::before { background: var(--data-red); }

.stat-card.success .stat-number {
  background: linear-gradient(135deg, var(--success-green), #5cb85c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.success::before { background: var(--success-green); }

.stat-card.countries .stat-number {
  background: linear-gradient(135deg, var(--primary-blue), #5c8aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card.countries::before { background: var(--primary-blue); }

/* Data Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 72px;
}

.data-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.data-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.data-card .stat {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 16px;
}

.data-card .label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.data-card.harm {
  border-left-color: var(--data-red);
}

.data-card.harm .stat {
  color: var(--data-red);
}

.data-card.success {
  border-left-color: var(--success-green);
}

.data-card.success .stat {
  color: var(--success-green);
}

/* Components Grid */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.component {
  text-align: center;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.component:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.component-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.component-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Certification Flow */
.cert-flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 72px;
}

.cert-step {
  display: flex;
  gap: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: translateX(-40px);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--action-orange);
  min-width: 80px;
}

.step-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Research Regions */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 72px;
}

.region-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px;
  border-radius: 12px;
}

.region-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--primary-blue);
}

.region-card ul {
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.region-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.region-card li:last-child {
  border-bottom: none;
}

/* Legend */
.legend {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.harm     { background: var(--data-red); }
.legend-dot.success  { background: var(--success-green); }
.legend-dot.countries { background: var(--primary-blue); }

/* Footer */
.footer {
  padding: 48px 24px;
  background: rgba(26, 26, 26, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0;
}

/* Fade-in utility */
.fade-in {
  opacity: 1; /* was 0 — content must not depend on JS to be visible */
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }

  .nav-links {
    gap: 20px;
    font-size: 12px;
  }

  .stats-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

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

  .regions-grid {
    grid-template-columns: 1fr;
  }

  .cert-step {
    flex-direction: column;
    gap: 16px;
  }

  .btn {
    display: block;
    margin-bottom: 16px;
  }

  .btn-secondary {
    margin-left: 0;
  }
}
