@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: rgba(18, 22, 33, 1);
  --fg: rgba(222, 228, 237, 1);
  --card: rgba(26, 31, 44, 1);
  --card-fg: rgba(222, 228, 237, 1);
  --primary: rgba(230, 115, 30, 1);
  --primary-fg: rgba(255, 255, 255, 1);
  --secondary: rgba(30, 36, 50, 1);
  --secondary-fg: rgba(195, 205, 218, 1);
  --muted: rgba(28, 33, 45, 1);
  --muted-fg: rgba(110, 120, 140, 1);
  --border: rgba(38, 44, 58, 1);
  --destructive: rgba(220, 60, 60, 1);
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, rgba(230, 115, 30, 1), rgba(245, 158, 50, 1));
  --gradient-hero: linear-gradient(180deg, rgba(12, 15, 22, 0.3) 0%, rgba(18, 22, 33, 1) 100%);
  --shadow-glow: 0 0 30px rgba(230, 115, 30, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
body { background: var(--bg); color: var(--fg); font-family: 'Inter', sans-serif; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-gradient-primary { background: var(--gradient-primary); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-card { box-shadow: var(--shadow-card); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: rgba(18, 22, 33, 0.8); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.logo img { flex-shrink: 0; }
.logo-sub { color: var(--muted-fg); font-size: 0.75rem; margin-left: 4px; }

/* Nav */
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a { padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: all 0.2s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); background: rgba(230, 115, 30, 0.1); }
.burger { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); margin-bottom: 4px; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); background: rgba(230, 115, 30, 0.1); }

/* Disclaimer banner */
.disclaimer-banner { background: rgba(230, 115, 30, 0.1); border-bottom: 1px solid rgba(230, 115, 30, 0.2); padding: 6px 0; text-align: center; font-size: 0.75rem; color: var(--muted-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(30, 36, 50, 0.5); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-bottom: 12px; color: var(--fg); }
.footer-col a, .footer-col p { display: block; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted-fg); }

/* Cards */
.card { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); transition: all 0.2s; }
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* Buttons */
.btn-primary { display: inline-block; padding: 12px 32px; border-radius: var(--radius); background: var(--gradient-primary); color: var(--primary-fg); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.125rem; border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { display: inline-block; padding: 12px 32px; border-radius: var(--radius); border: 2px solid var(--primary); color: var(--primary); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.125rem; background: none; cursor: pointer; transition: background 0.2s; }
.btn-outline:hover { background: rgba(230, 115, 30, 0.1); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; border-radius: 8px; }

/* Badge */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(230, 115, 30, 0.2); color: var(--primary); font-size: 0.75rem; font-weight: 700; }

/* Hero */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-content { position: relative; z-index: 10; padding: 5rem 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; color: var(--muted-fg); max-width: 640px; margin: 0 auto 2rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* Section */
.section { padding: 4rem 0; }
.section-alt { background: rgba(30, 36, 50, 0.2); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: 3rem; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { padding: 8px 16px; border-radius: 8px; font-weight: 500; font-size: 0.875rem; border: 1px solid var(--border); background: var(--secondary); color: var(--secondary-fg); cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: var(--primary); }
.filter-btn.active { background: var(--gradient-primary); color: var(--primary-fg); border-color: transparent; box-shadow: var(--shadow-glow); }

/* Article */
.article { max-width: 768px; margin: 0 auto; padding: 4rem 1rem; }
.article h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.article h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.article h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.article p { margin-bottom: 1rem; line-height: 1.8; }
.article ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article li { margin-bottom: 0.5rem; color: var(--muted-fg); }
.article li b { color: var(--fg); }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.table-wrap table { width: 100%; font-size: 0.875rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; border-collapse: collapse; }
.table-wrap th { text-align: left; padding: 12px; background: var(--secondary); font-weight: 700; color: var(--fg); }
.table-wrap td { padding: 12px; border-top: 1px solid var(--border); color: var(--muted-fg); }

/* CTA block */
.cta-block { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--primary); background: rgba(230, 115, 30, 0.1); box-shadow: var(--shadow-glow); text-align: center; margin: 2rem 0; }

/* Share buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1rem; }
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; color: white; font-size: 1rem; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.9; color: white; }

/* Progress bar */
.progress-bar { width: 100%; height: 8px; background: var(--secondary); border-radius: 4px; overflow: hidden; margin-bottom: 1.5rem; }
.progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.3s; }

/* Quiz */
.quiz-option { width: 100%; text-align: left; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--secondary); color: var(--secondary-fg); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; margin-bottom: 8px; }
.quiz-option:hover { border-color: var(--primary); background: rgba(230, 115, 30, 0.1); }
.quiz-option.correct { border-color: rgba(34, 197, 94, 1); background: rgba(34, 197, 94, 0.2); color: rgba(134, 239, 172, 1); }
.quiz-option.wrong { border-color: var(--destructive); background: rgba(220, 60, 60, 0.2); color: rgba(220, 60, 60, 1); }
.quiz-option.dimmed { opacity: 0.5; }

/* Textarea */
textarea { width: 100%; background: var(--secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--fg); font-size: 0.875rem; resize: none; font-family: 'Inter', sans-serif; }
textarea:focus { outline: none; border-color: var(--primary); }

/* Wheel */
.wheel-wrap { position: relative; display: inline-block; }
.wheel-arrow { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 10; font-size: 1.5rem; color: var(--primary); }
.wheel { width: 288px; height: 288px; border-radius: 50%; border: 4px solid var(--primary); box-shadow: var(--shadow-glow); overflow: hidden; position: relative; transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99); }
.wheel-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wheel-center div { width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--primary); }

/* Storm section */
.storm-section { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.storm-img { width: 100%; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); }

/* Page header with Storm image */
.page-hero { position: relative; padding: 4rem 0 2rem; text-align: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0.15; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,22,33,0) 0%, rgba(18,22,33,1) 100%); }
.page-hero-content { position: relative; z-index: 5; }

/* Storm decorative accent */
.storm-accent { display: inline-block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); box-shadow: var(--shadow-glow); margin-bottom: 1rem; }

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.italic { font-style: italic; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.max-w-3xl { max-width: 768px; margin-left: auto; margin-right: auto; }
.inline-flex { display: inline-flex; align-items: center; gap: 8px; }
.hidden { display: none; }
.block { display: block; }

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .storm-section { flex-direction: column; }
  .share-buttons { flex-direction: column; }
  .share-btn { width: 100%; }
}
@media (min-width: 769px) {
  .storm-section { flex-direction: row; }
  .storm-section > img { width: 50%; }
  .storm-section > div { flex: 1; }
}