/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0b0e1a;
  color: #e0e6f0;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ===== Background floating fans ===== */
.bg-fans {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.fan-spin {
  position: absolute;
  font-size: 3rem;
  opacity: 0.07;
  animation: spin 8s linear infinite;
}
.fan-bg-1 { top: 10%; left: 5%; animation-duration: 12s; font-size: 4rem; }
.fan-bg-2 { top: 60%; right: 8%; animation-duration: 9s; font-size: 5rem; }
.fan-bg-3 { bottom: 15%; left: 40%; animation-duration: 15s; font-size: 6rem; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 30%, #1a2a5e 0%, #0b0e1a 70%);
}
.hero-fan-icon {
  font-size: 6rem;
  animation: spin 4s linear infinite;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 30px rgba(100,180,255,0.5));
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 500px;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

/* ===== Sections ===== */
.section {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ===== Cards Grid ===== */
.cards-grid, .dont-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #141829;
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid transparent;
  transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-good {
  border-color: #1e3a5f;
}
.card-good:hover {
  border-color: #3b82f6;
}
.card-bad {
  border-color: #5f1e1e;
  background: #1a1020;
}
.card-bad:hover {
  border-color: #ef4444;
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
}
.card p {
  color: #94a3b8;
  font-size: 0.95rem;
}
.zap { color: #facc15; font-weight: bold; }

/* ===== Speed Chart ===== */
.section-speed {
  background: linear-gradient(180deg, transparent, #0f1629, transparent);
}
.speed-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  height: 320px;
  padding: 1rem 0;
}
.speed-bar {
  width: 80px;
  height: var(--h);
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  animation: growBar 1.2s ease-out forwards;
  transform-origin: bottom;
}
@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.bar-fill {
  position: absolute; inset: 0;
  border-radius: 12px 12px 0 0;
}
.bar-1 { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.bar-2 { background: linear-gradient(180deg, #34d399, #059669); }
.bar-3 { background: linear-gradient(180deg, #fbbf24, #d97706); }
.bar-4 { background: linear-gradient(180deg, #f87171, #dc2626); }
.bar-label {
  position: relative; z-index: 1;
  padding: 0.6rem 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
.bar-label small { font-weight: 400; opacity: 0.8; font-size: 0.75rem; }

/* ===== Microware Section ===== */
.section-microwave {
  text-align: center;
}
.microwave-warning {
  margin-bottom: 2rem;
}
.warning-flash {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 3px;
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 1rem;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  50% { opacity: 0.85; box-shadow: 0 0 30px 8px rgba(220,38,38,0.3); }
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.reason-card {
  background: #1a1020;
  border: 1px solid #5f1e3a;
  border-radius: 16px;
  padding: 1.8rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.3s;
}
.reason-card:hover {
  transform: translateY(-3px);
  border-color: #f472b6;
}
.reason-num {
  position: absolute; top: 12px; right: 16px;
  font-size: 3rem; font-weight: 900;
  opacity: 0.08;
  line-height: 1;
}
.reason-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}
.reason-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fbbf24;
}
.reason-card p {
  color: #94a3b8;
  font-size: 0.92rem;
}

/* ===== Microwave Demo ===== */
.microwave-demo {
  margin: 2rem auto;
  max-width: 500px;
}
.microwave-visual {
  perspective: 800px;
}
.microwave-body {
  background: #2a2a3a;
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid #3a3a4a;
  display: flex;
  gap: 1rem;
  transition: border-color 0.3s;
}
.microwave-body.active {
  border-color: #ef4444;
  box-shadow: 0 0 40px rgba(239,68,68,0.3);
  animation: shake 0.15s infinite;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-0.5deg); }
  75% { transform: translateX(3px) rotate(0.5deg); }
}
.microwave-window {
  flex: 1;
  background: #1a1a2e;
  border-radius: 12px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.microwave-fan {
  font-size: 3rem;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.microwave-fan.spinning {
  opacity: 1;
  animation: spin 0.3s linear infinite;
  filter: drop-shadow(0 0 10px #ef4444);
}
.sparks {
  position: absolute; inset: 0;
  pointer-events: none;
}
.spark {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fbbf24;
  animation: sparkFly 0.6s ease-out forwards;
}
@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
.microwave-panel {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.5rem;
}
.mwave-display {
  background: #0a0a1a;
  color: #34d399;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  text-align: center;
  width: 100%;
}
.mwave-display.error {
  color: #ef4444;
  animation: blink 0.5s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.mwave-btn {
  width: 100%;
  padding: 0.4rem;
  border: none;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.mwave-btn:active { transform: scale(0.95); }
.btn-start { background: #22c55e; color: #fff; }
.btn-stop { background: #ef4444; color: #fff; }
.demo-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  font-style: italic;
}

/* ===== Facts ===== */
.section-facts {
  background: linear-gradient(180deg, transparent, #0f1629, transparent);
}
.facts-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #141829;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #1e293b;
  transition: border-color 0.3s;
}
.fact:hover { border-color: #60a5fa; }
.fact-emoji { font-size: 1.8rem; flex-shrink: 0; padding-top: 2px; }
.fact p { color: #cbd5e1; font-size: 0.95rem; }
.fact strong { color: #f1f5f9; }

/* ===== Footer ===== */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
}
.footer-fan {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  animation: spin 6s linear infinite;
  display: inline-block;
}
.footer p { color: #64748b; font-size: 0.9rem; }
.footer-small { font-size: 0.75rem; margin-top: 0.4rem; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .speed-chart { gap: 0.8rem; height: 240px; }
  .speed-bar { width: 60px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .microwave-body { flex-direction: column; }
  .microwave-panel { flex-direction: row; width: 100%; justify-content: center; }
}