@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,200;0,800;0,900;1,200&family=Crimson+Text:ital,wght@0,400;1,400&family=Space+Mono:wght@400&display=swap');

:root {
  --void:         #03010a;
  --storm-deep:   #06020e;
  --vortex:       #0e0520;
  --wall:         #1c0a3a;
  --spiral:       #2e1260;
  --outer:        #442080;
  --band:         #5a30a0;
  --eyewall:      #30c060;
  --calm-eye:     #80f0a0;
  --lightning-p:  #c060ff;
  --rain-band:    #4060d0;
  --danger-r:     #e03030;
  --text-main:    #d8c8f8;
  --text-muted:   #6040a0;
  --card-bg:      rgba(14,5,32,0.80);
  --card-border:  rgba(90,48,160,0.28);
  --mono:         'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 17px;
  background: var(--void);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Vortex background ── */
.vortex-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60%  60% at 80% 15%, rgba(192,96,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 80%  55% at 50% 50%, rgba(46,18,96,0.6)    0%, transparent 65%),
    radial-gradient(ellipse 100% 65% at 50% 100%,rgba(14,5,32,0.8)     0%, transparent 70%),
    linear-gradient(180deg, #03010a 0%, #060210 50%, #03010a 100%);
}

#vortex-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--spiral), var(--lightning-p));
  z-index: 9999;
}

/* ── Layout ── */
.wrap {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto; padding: 0 28px 100px;
}

/* ══ HERO ══ */
.hero {
  min-height: 90vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 64px;
  opacity: 0; animation: spinIn 1.3s 0.1s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes spinIn {
  from { opacity:0; transform:scale(0.96) rotate(-0.5deg); }
  to   { opacity:1; transform:none; }
}

.hero-tag {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--band); margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 900; font-style: italic;
  line-height: 0.82; letter-spacing: -0.05em;
  color: var(--text-main);
  text-transform: uppercase;
  position: relative;
}
.hero h1 .pre {
  display: block; font-weight: 200; font-size: 22%;
  letter-spacing: 0.22em; color: var(--band);
  margin-bottom: 4px; font-style: normal;
}

.hero-bar {
  width: 100%; height: 1px; margin: 28px 0 26px;
  background: linear-gradient(90deg, transparent, var(--lightning-p), var(--band), transparent);
  opacity: 0.4;
}

.hero-bottom {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.hb-val {
  font-family: 'Exo 2', sans-serif; font-size: 2.6rem; font-weight: 800;
  color: var(--band); line-height: 1; display: block; margin-bottom: 4px;
}
.hb-lbl { font-size: 0.88rem; font-style: italic; color: var(--text-muted); line-height: 1.45; }
.hero-desc {
  grid-column: 1/-1; font-size: 1.05rem; font-style: italic;
  line-height: 1.85; color: var(--text-muted); max-width: 700px;
}

/* ── Divider ── */
.cyclone-rule {
  width: 100%; height: 1px; margin: 64px 0;
  background: linear-gradient(90deg, transparent, var(--band), var(--spiral), transparent);
  opacity: 0.35;
}

/* ── Sec util ── */
.sec-tag {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--band); margin-bottom: 10px;
}
.sec-h2 {
  font-family: 'Exo 2', sans-serif; font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: -0.03em; color: var(--text-main);
  margin-bottom: 30px; line-height: 1;
}

/* ══ STRUCTURE ══ */
.structure-section { opacity: 0; animation: rise 0.8s forwards; }

.struct-panels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: rgba(90,48,160,0.1); border-radius: 14px; overflow: hidden;
}
.struct-panel {
  background: var(--card-bg); padding: 28px 22px; backdrop-filter: blur(12px);
  transition: background 0.3s; position: relative; overflow: hidden;
}
.struct-panel:hover { background: rgba(46,18,96,0.85); }
.struct-panel::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lightning-p), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.struct-panel:hover::after { opacity: 0.8; }
.struct-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.struct-panel h3 {
  font-family: 'Exo 2', sans-serif; font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--text-main); margin-bottom: 10px;
}
.struct-panel p { font-size: 0.9rem; line-height: 1.73; color: var(--text-muted); }
.struct-data {
  margin-top: 12px; font-family: var(--mono); font-size: 0.65rem;
  color: var(--eyewall); letter-spacing: 0.1em;
}

/* ══ SAFFIR-SIMPSON ══ */
.saffir-section { opacity: 0; animation: rise 0.8s forwards; }

.ss-bars { display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.ss-row {
  display: grid; grid-template-columns: 8px 80px 220px 1fr auto;
  align-items: center; gap: 0;
  border-bottom: 1px solid rgba(90,48,160,0.1); transition: background 0.25s;
}
.ss-row:last-child { border-bottom: none; }
.ss-row:hover { background: rgba(46,18,96,0.4); }
.ss-color { min-height: 100%; }
.ss-cat {
  font-family: 'Exo 2', sans-serif; font-size: 1.8rem; font-weight: 900;
  color: var(--text-main); padding: 22px; letter-spacing: -0.04em;
  border-right: 1px solid rgba(90,48,160,0.12);
}
.ss-name {
  font-family: 'Exo 2', sans-serif; font-size: 0.92rem; font-weight: 800;
  text-transform: uppercase; color: var(--text-main); padding: 22px;
  border-right: 1px solid rgba(90,48,160,0.08);
}
.ss-desc { padding: 22px; font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }
.ss-speed {
  font-family: var(--mono); font-size: 0.78rem; color: var(--band);
  padding: 22px; white-space: nowrap; border-left: 1px solid rgba(90,48,160,0.1);
}

/* ══ FORMATION ══ */
.formation-section { opacity: 0; animation: rise 0.8s forwards; }

.formation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-item {
  padding: 24px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 10px; backdrop-filter: blur(12px); transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.form-item:hover { border-color: rgba(192,96,255,0.4); transform: translate(3px, -3px); }
.form-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--spiral), var(--lightning-p));
}
.form-item h3 {
  font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 800;
  text-transform: uppercase; color: var(--text-main); margin-bottom: 10px; letter-spacing: -0.01em;
}
.form-item p { font-size: 0.9rem; line-height: 1.73; color: var(--text-muted); }
.form-tag { margin-top: 10px; font-family: var(--mono); font-size: 0.63rem; color: var(--band); letter-spacing: 0.1em; }

/* ══ IMPACTS ══ */
.impacts-section { opacity: 0; animation: rise 0.8s forwards; }

.impacts-list { display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
.impact-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 0; padding: 0; border-bottom: 1px solid rgba(90,48,160,0.08);
  align-items: start; transition: background 0.25s;
}
.impact-row:last-child { border-bottom: none; }
.impact-row:hover { background: rgba(46,18,96,0.4); }
.impact-icon-col { font-size: 1.8rem; padding: 22px; display: flex; align-items: center; justify-content: center; }
.impact-body { padding: 22px 22px 22px 0; }
.impact-body h3 {
  font-family: 'Exo 2', sans-serif; font-size: 1rem; font-weight: 800;
  text-transform: uppercase; color: var(--text-main); margin-bottom: 6px; letter-spacing: -0.01em;
}
.impact-body p { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }

/* ══ HISTORIQUE ══ */
.history-section { opacity: 0; animation: rise 0.8s forwards; }

.hurr-table { width: 100%; border-collapse: collapse; }
.hurr-table th {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--band); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--card-border);
}
.hurr-table td {
  padding: 14px 16px; border-bottom: 1px solid rgba(90,48,160,0.07);
  font-size: 0.91rem; color: var(--text-muted); vertical-align: middle;
}
.hurr-table tr:hover td { background: rgba(90,48,160,0.07); }
.hurr-table td:first-child { font-family: var(--mono); font-size: 0.86rem; color: var(--band); }
.hurr-table td:nth-child(2) { color: var(--text-main); font-style: italic; }
.cat-badge { font-family: 'Exo 2', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--danger-r); }
.victims-col { font-family: var(--mono); color: var(--danger-r); font-size: 0.84rem; }

/* ══ FOOTER ══ */
footer {
  margin-top: 80px; padding-top: 22px;
  border-top: 1px solid rgba(90,48,160,0.25);
  text-align: center; font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.55;
}

@keyframes rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }

.structure-section  { animation-delay: 0.8s; }
.saffir-section     { animation-delay: 1.0s; }
.formation-section  { animation-delay: 1.2s; }
.impacts-section    { animation-delay: 1.4s; }
.history-section    { animation-delay: 1.6s; }

@media (max-width: 720px) {
  .struct-panels { grid-template-columns: 1fr; }
  .formation-grid { grid-template-columns: 1fr; }
  .ss-row { grid-template-columns: 8px 60px 1fr; }
  .ss-name { display: none; }
  .ss-speed { display: none; }
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 8rem); }
}
