/* ===== PedalLab - Global Styles ===== */
:root {
  --bg-primary: #0a0f0d;
  --bg-secondary: #111a16;
  --bg-card: #151f1a;
  --bg-card-hover: #1a2a22;
  --green-primary: #a3e635;
  --green-secondary: #65a30d;
  --green-dark: #2d5016;
  --green-glow: rgba(163, 230, 53, 0.15);
  --text-primary: #f0fdf4;
  --text-secondary: #bbf7d0;
  --text-muted: #86efac80;
  --border-color: #a3e63540;
  --border-hover: #a3e63580;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --section-padding: 100px 0;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* ===== Navigation ===== */
nav.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

nav.main-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav.main-nav .logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-primary);
  letter-spacing: -0.5px;
}

nav.main-nav .logo span {
  color: var(--text-primary);
}

nav.main-nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav.main-nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav.main-nav .nav-links a:hover {
  color: var(--green-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-text h1 .highlight {
  color: var(--green-primary);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(163, 230, 53, 0.08);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-primary);
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--green-secondary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ===== Section Headers ===== */
.section-badge {
  display: inline-block;
  background: var(--green-glow);
  color: var(--green-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(163, 230, 53, 0.06);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--green-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Split Section (image + text) ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.split-text h2 {
  margin-bottom: 20px;
}

.split-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.split-text ul {
  list-style: none;
  padding: 0;
}

.split-text ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.split-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-primary);
}

/* ===== Steps Section ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.step-card h3 {
  color: var(--green-primary);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ===== Cycle / Process Section ===== */
.cycle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 48px 0;
}

.cycle-item {
  text-align: center;
  flex: 0 0 200px;
}

.cycle-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.2rem;
  background: var(--bg-card);
}

.cycle-item h3 {
  color: var(--green-primary);
  font-size: 1rem;
}

.cycle-arrow {
  font-size: 2rem;
  color: var(--green-primary);
  flex: 0 0 auto;
}

/* ===== Feature List ===== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-glow);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-item h3 {
  color: var(--green-primary);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ===== Highlight Box ===== */
.highlight-box {
  background: var(--green-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Energy Facts ===== */
.energy-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.energy-fact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.energy-fact-item .fact-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.energy-fact-item h3 {
  color: var(--green-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.energy-fact-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ===== Pyramid / Impact ===== */
.pyramid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pyramid-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--green-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
}

.cta-section .highlight-text {
  color: var(--green-primary);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  display: block;
  margin-bottom: 24px;
}

.cta-section p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: left;
  min-width: 200px;
}

.cta-card h3 {
  color: var(--green-primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

/* ===== Language Switcher ===== */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.lang-btn:hover {
  background: var(--green-glow);
  border-color: var(--border-hover);
  color: var(--green-primary);
}

/* ===== SVG Illustrations ===== */
.illustration {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* SVG Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-anim {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes dash {
  to { stroke-dashoffset: -40; }
}

.spin-slow {
  animation: spin 8s linear infinite;
}

.pulse {
  animation: pulse-anim 2s ease-in-out infinite;
}

.dash-anim {
  animation: dash 3s linear infinite;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content,
  .split-section,
  .pyramid-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  section {
    padding: 60px 0;
  }

  nav.main-nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 13, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  nav.main-nav .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .cycle-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .cards-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-cards {
    flex-direction: column;
    align-items: center;
  }
}
