:root{
  --bg: #0b0d10; 
  --fg: #e7ecf3; 
  --muted: #abb3bf; 
  --ink: #0b0d10; 
  --card: #12161b; 
  --accent: #7aa2ff; 
  --accent2: #50e3c2; 
  --pill: #2a3140;
  --gradient-primary: linear-gradient(135deg, #7aa2ff, #50e3c2);
  --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

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

/* Header */
.site-header {
  background: linear-gradient(120deg, #0b0d10, #101521 60%, #0b0d10);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 162, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

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

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav a:hover {
  background: rgba(122, 162, 255, 0.1);
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: 
    radial-gradient(1200px 600px at 20% 0%, rgba(122,162,255,0.15), transparent 70%),
    radial-gradient(800px 400px at 80% 0%, rgba(80,227,194,0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(122,162,255,0.05) 50%, transparent);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 60px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(122, 162, 255, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card.featured {
  background: linear-gradient(135deg, rgba(122,162,255,0.1), rgba(80,227,194,0.1));
  border-color: rgba(122, 162, 255, 0.3);
}

.card.featured::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.card-description {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature {
  background: rgba(122, 162, 255, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.primary {
  background: var(--gradient-primary);
  color: var(--ink);
}

.badge:not(.primary) {
  background: var(--pill);
  color: var(--muted);
}

/* Highlight Section */
.highlight-section {
  background: linear-gradient(135deg, rgba(122,162,255,0.1), rgba(80,227,194,0.1));
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 80px 0;
}

.highlight-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.highlight-content h3 {
  margin-bottom: 24px;
}

.highlight-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fg);
  margin: 0 0 48px;
  line-height: 1.6;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.impact-item {
  text-align: center;
}

.impact-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.impact-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.about-highlights {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.about-highlights h4 {
  margin: 0 0 20px;
  color: var(--fg);
}

.about-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-highlights li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.about-highlights li:last-child {
  border-bottom: none;
}

/* Contact Section */
.contact-section {
  background: rgba(122,162,255,0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.contact-item {
  text-align: center;
  padding: 32px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-item h4 {
  margin: 0 0 16px;
  color: var(--fg);
}

.contact-item p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #070911;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
}

/* Prosody-specific styles */
.hero--prosody {
  background: 
    linear-gradient(180deg, rgba(122,162,255,0.12), transparent),
    radial-gradient(900px 400px at 20% 10%, rgba(80,227,194,0.12), transparent 60%);
}

.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: #cfd7e3;
  line-height: 1.7;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.box {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.box h4 {
  margin: 0 0 16px;
  color: var(--fg);
}

.note {
  background: rgba(122,162,255,0.1);
  color: var(--accent);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin: 24px 0;
}

/* Examples */
.example {
  background: linear-gradient(135deg, rgba(122,162,255,0.1), rgba(80,227,194,0.1));
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  margin: 16px 0;
  transition: all 0.3s ease;
}

.example:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.example strong {
  color: var(--fg);
}

/* Q&A Styles */
.qa dt {
  font-weight: 700;
  color: var(--fg);
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.qa dd {
  margin: 0 0 20px 0;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-wrap {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .impact-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Light mode (optional) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --fg: #1e293b;
    --muted: #64748b;
    --ink: #ffffff;
    --card: #ffffff;
    --accent: #3b82f6;
    --accent2: #10b981;
    --pill: #f1f5f9;
  }
  
  .site-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
  }
  
  .card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  
  .example {
    background: rgba(59,130,246,0.1);
  }
}
