/* ======================================
   Renewables - Design System
====================================== */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --blue: #3b82f6;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --gradient: linear-gradient(90deg, #3b82f6, #10b981);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.8; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

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

/* Hero */
.hero { text-align: center; padding: 80px 24px; }
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Status Badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.status .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Section Headers */
.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  font-size: 18px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
}

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Live Data Card */
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.live-card .label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.live-card .value {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.live-card .unit { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.live-card .change {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.change.up { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.change.down { background: rgba(16, 185, 129, 0.15); color: var(--green); }

/* Feature Card */
.feature {
  text-align: center;
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .txt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 80px;
}
.footer-links { margin-bottom: 16px; display: flex; justify-content: center; gap: 24px; }
.footer-links a { color: var(--text-secondary); }

/* Chart Container */
.chart-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}
.chart-wrap h3 {
  font-size: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-wrap canvas { max-height: 400px; }

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.table th, .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table tr:hover { background: rgba(255, 255, 255, 0.03); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 16px; }
  .section-title { font-size: 28px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .live-card .value { font-size: 36px; }
  .container { padding: 40px 16px; }
}
