/* ============================================
   Future Dev Blueprint - Styles
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-page: #050317;
  --bg-card: rgba(6, 9, 40, 0.9);
  --bg-card-hover: rgba(12, 16, 36, 0.95);
  --text-primary: #f9f5ff;
  --text-muted: #c4c0ff;
  --accent-magenta: #ff8cf7;
  --accent-cyan: #7cf8ff;
  --accent-peach: #ffd26f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 255, 255, 0.2);
  --grid-opacity: 0.06;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 18px rgba(255, 143, 247, 0.7);
}

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

/* ---- Body & Typography ---- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  background-image: radial-gradient(circle at top center, rgba(43, 42, 102, 0.3) 0%, transparent 55%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Background Grid Overlay ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px),
    linear-gradient(to top, rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  z-index: -1;
}

/* ---- Page Container ---- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 40px;
  }
}

/* ---- Card Base (Glassmorphism) ---- */
.card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card + .card {
  margin-top: 24px;
}

/* ---- Section Kicker & Title ---- */
.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-magenta);
  margin-bottom: 8px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(20px, 4vw, 24px);
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 70ch;
}

/* ---- Hero Section ---- */
.hero {
  text-align: left;
  margin-bottom: 0;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--accent-magenta);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent-magenta), var(--accent-peach), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  animation: gradient-shift 15s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 70ch;
  line-height: 1.5;
}

.hero-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.hero-bullets li {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.hero-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.hero-labels {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  color: var(--text-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 247, 0.4);
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.cta-button:active {
  transform: translateY(0);
}

/* ---- Six Pillars Grid ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.pillar-card {
  position: relative;
  padding: 20px 18px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(255, 140, 247, 0.15), rgba(13, 13, 37, 0.96));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pillar-card:hover,
.pillar-card:focus-within {
  background: radial-gradient(circle at top left, rgba(255, 140, 247, 0.25), rgba(18, 18, 45, 0.98));
  border-color: var(--accent-magenta);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(255, 140, 247, 0.3);
}

.pillar-card[aria-expanded="true"] {
  border-color: var(--accent-cyan);
  background: radial-gradient(circle at top left, rgba(124, 248, 255, 0.2), rgba(18, 18, 45, 0.98));
}

.pillar-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-magenta);
  margin-bottom: 8px;
  font-weight: 500;
}

.pillar-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.pillar-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.pillar-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.pillar-card[aria-expanded="true"] .pillar-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

.pillar-detail p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ---- Human vs AI Roles Section ---- */
.roles-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .roles-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.roles-column {
  padding: 20px;
  border-radius: 12px;
  background: rgba(12, 16, 36, 0.5);
  border: 1px solid var(--border-subtle);
}

.roles-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.roles-list {
  list-style: none;
  padding-left: 0;
}

.roles-list li {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.roles-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-magenta);
}

.roles-caption {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(124, 248, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ---- Interactive Demo Section ---- */
.demo-section {
  background: radial-gradient(circle at top, rgba(124, 248, 255, 0.1), var(--bg-card));
  border: 1px solid rgba(124, 248, 255, 0.2);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(124, 248, 255, 0.1), 0 0 40px rgba(124, 248, 255, 0.15);
}

.demo-intro {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-end;
}

.demo-control-group {
  flex: 1;
  min-width: 200px;
}

.demo-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

#time-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 140, 247, 0.5);
  transition: transform 0.2s ease;
}

#time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#time-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 140, 247, 0.5);
}

#time-slider:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.slider-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  min-width: 60px;
  text-align: right;
}

.ai-level-buttons {
  display: flex;
  gap: 8px;
}

.ai-level-btn {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-level-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-magenta);
  color: var(--text-primary);
}

.ai-level-btn.active,
.ai-level-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(255, 140, 247, 0.3);
}

.ai-level-btn:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ---- Allocation Bar Visualization ---- */
.demo-visualization {
  margin-bottom: 24px;
}

.allocation-bar {
  display: flex;
  width: 100%;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
}

.bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease;
  position: relative;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  overflow: hidden;
}

.bar-segment[data-pillar="1"] {
  background: rgba(255, 140, 247, 0.4);
}

.bar-segment[data-pillar="2"] {
  background: rgba(255, 210, 111, 0.4);
}

.bar-segment[data-pillar="3"] {
  background: rgba(124, 248, 255, 0.4);
}

.bar-segment[data-pillar="4"] {
  background: rgba(255, 140, 247, 0.6);
}

.bar-segment[data-pillar="5"] {
  background: rgba(255, 210, 111, 0.6);
}

.bar-segment[data-pillar="6"] {
  background: rgba(124, 248, 255, 0.6);
}

.segment-label {
  white-space: nowrap;
  padding: 0 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.allocation-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.allocation-legend-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.allocation-legend-item[data-pillar="1"]::before {
  background: rgba(255, 140, 247, 0.6);
}

.allocation-legend-item[data-pillar="2"]::before {
  background: rgba(255, 210, 111, 0.6);
}

.allocation-legend-item[data-pillar="3"]::before {
  background: rgba(124, 248, 255, 0.6);
}

.allocation-legend-item[data-pillar="4"]::before {
  background: rgba(255, 140, 247, 0.8);
}

.allocation-legend-item[data-pillar="5"]::before {
  background: rgba(255, 210, 111, 0.8);
}

.allocation-legend-item[data-pillar="6"]::before {
  background: rgba(124, 248, 255, 0.8);
}

.demo-summary {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 16px;
  background: rgba(124, 248, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
}

/* ---- Leaders Section ---- */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.leader-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(12, 16, 36, 0.6);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.leader-card:hover {
  background: rgba(18, 22, 42, 0.8);
  border-color: var(--accent-magenta);
  transform: translateY(-2px);
}

.leader-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.leader-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.leader-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-left {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-magenta);
  font-weight: 500;
}

.footer-right {
  font-style: italic;
}

/* ---- Scroll Reveal Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

  .hero-title {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bar-segment {
    transition: none;
  }
}

/* ---- Focus States for Accessibility ---- */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ---- Print Styles ---- */
@media print {
  .bg-grid {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .cta-button,
  .demo-controls,
  .allocation-bar {
    display: none;
  }
}

