/* Rabbit Charge - Energy & Infrastructure Consortium Stylesheet */
:root {
  --bg-dark: #0a0f1d;
  --bg-card: #0f172a;
  --bg-card-subtle: #1e293b;
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-light: rgba(255, 255, 255, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(to right, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  background: var(--bg-card-subtle);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: #fff;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #283548;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.35) 0%, rgba(10, 15, 29, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 118, 110, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 90px 0;
  position: relative;
}

.bg-card {
  background-color: #0c1322;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(15, 118, 110, 0.25);
  color: var(--primary-light);
  border: 1px solid rgba(20, 184, 166, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.project-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solar-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.wind-icon { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-list {
  list-style: none;
  margin-bottom: 24px;
}

.spec-list li {
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  color: #cbd5e1;
}

.spec-list li strong {
  color: #fff;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.status-ready { background: #064e3b; color: #6ee7b7; }
.status-pilot { background: #0c4a6e; color: #7dd3fc; }

.link-btn {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Barter Section */
.barter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
}

.barter-formula {
  background: #060b16;
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 36px;
  text-align: center;
}

.formula-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.barter-formula code {
  font-size: 1.05rem;
  color: #38bdf8;
  font-family: monospace;
}

.barter-step {
  position: relative;
  padding-left: 54px;
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.barter-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.barter-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Calculator */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
}

.calc-controls {
  margin-bottom: 36px;
}

.calc-toggle {
  display: inline-flex;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.calc-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.calc-btn.active {
  background: var(--primary);
  color: #fff;
}

.slider-group {
  max-width: 650px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.slider-val {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.slider {
  width: 100%;
  height: 8px;
  background: var(--bg-card-subtle);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.calc-results {
  gap: 16px;
}

.result-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 18px;
  border-radius: 8px;
  text-align: center;
}

.res-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.res-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.res-val.highlight {
  color: #38bdf8;
}

/* Entity Cards */
.entity-card {
  display: flex;
  flex-direction: column;
}

.entity-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(15, 118, 110, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.entity-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.entity-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.entity-details {
  background: var(--bg-card-subtle);
  padding: 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.doc-link-btn {
  margin-top: auto;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.mandate-banner {
  margin-top: 30px;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.mandate-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.mandate-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Doc Vault */
.doc-card {
  display: flex;
  flex-direction: column;
}

.doc-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.doc-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: break-all;
}

.doc-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Contact */
.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-light);
}

/* Footer */
.footer {
  background: #060a14;
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .hero-title { font-size: 2.1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
}
