/* CarbonFlow website v2 – Manrope + Forest palette */
:root {
  /* ForestPalette-like colors (app theme) */
  --c-bg: #121212; /* carbon900 */
  --c-bg-2: #1b1b1b; /* carbon800 */
  --c-bg-3: #252525; /* carbon700 */
  --c-surface: #202020; /* slightly above bg */
  --c-border: rgba(255, 255, 255, 0.08);

  --c-green: #8cc63f; /* mainGreen */
  --c-green-bright: #a7c957; /* limeSoft */
  --c-orange: #b65534; /* mainRed */

  --c-text: #e8f5e2;
  --c-muted: rgba(232, 245, 226, 0.55);
  --c-num: rgba(232, 245, 226, 0.12);

  --sidebar-w: 220px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

/* ─── Sidebar ───────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--c-bg-2);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  z-index: 100;
  gap: 0;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
}

.logo-c {
  color: var(--c-text);
}

.logo-f {
  color: var(--c-orange);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  color: var(--c-muted);
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: rgba(140, 198, 63, 0.12);
  color: var(--c-green-bright);
}

.sidebar-link.is-active .link-num {
  color: var(--c-orange);
}

.link-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-num);
  min-width: 1.5rem;
  transition: color 0.15s;
}

.link-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}

.sidebar-cta {
  display: block;
  text-align: center;
  padding: 0.55rem 1rem;
  background: var(--c-green);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.15s;
}

.sidebar-cta:hover {
  background: var(--c-green-bright);
}

.sidebar-alt-link {
  text-align: center;
  font-size: 0.75rem;
  color: var(--c-muted);
}

.sidebar-alt-link:hover {
  color: var(--c-text);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Scroll root ────────────────────────────── */
.scroll-root {
  margin-left: var(--sidebar-w);
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* ─── Panels ─────────────────────────────────── */
.panel {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.panel-inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.panel-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.panel-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-orange);
  text-transform: uppercase;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

/* ─── Hero ───────────────────────────────────── */
.panel--hero {
  background: var(--c-bg);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem 0 3rem;
  gap: 2rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 480px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin: 0 0 1.25rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--c-text);
}

.hero-headline em {
  font-style: italic;
  color: var(--c-muted);
}

.headline-accent {
  color: var(--c-green-bright);
  position: relative;
  display: inline-block;
}

.headline-accent::after {
  content: "";
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-orange);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--c-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Orbital visual */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 100px;
  height: 100px;
}

.ring-2 {
  width: 180px;
  height: 180px;
  border-color: rgba(140, 198, 63, 0.2);
}

.ring-3 {
  width: 260px;
  height: 260px;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.orbit-core {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  background: var(--c-surface);
  border: 1px solid rgba(140, 198, 63, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-icon {
  font-size: 2rem;
  line-height: 1;
}

.orbit-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
}

.dot-1 {
  transform: translate(-18px, -18px) translate(0, -90px);
}

.dot-2 {
  transform: translate(-18px, -18px) rotate(90deg) translate(0, -90px) rotate(-90deg);
}

.dot-3 {
  transform: translate(-18px, -18px) rotate(180deg) translate(0, -90px) rotate(-180deg);
}

.dot-4 {
  transform: translate(-18px, -18px) rotate(270deg) translate(0, -90px) rotate(-270deg);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--c-green));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
  text-decoration: none;
}

.btn--primary {
  background: var(--c-green);
  color: #fff;
  border: 2px solid transparent;
}

.btn--primary:hover {
  background: var(--c-green-bright);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 2px solid var(--c-border);
}

.btn--ghost:hover {
  border-color: var(--c-green);
  color: var(--c-green-bright);
}

.btn--outline {
  background: transparent;
  color: var(--c-orange);
  border: 2px solid var(--c-orange);
}

.btn--outline:hover {
  background: var(--c-orange);
  color: #000;
}

/* ─── Features ───────────────────────────────── */
.panel--features {
  background: var(--c-bg-3);
}

.features-strip {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.feat {
  flex: 1;
  padding: 0 2rem;
}

.feat:first-child {
  padding-left: 0;
}

.feat:last-child {
  padding-right: 0;
}

.feat-divider {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--c-border);
  flex-shrink: 0;
  min-height: 160px;
}

.feat-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--c-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--c-border);
}

.feat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.feat-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.feat-desc {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Impact ─────────────────────────────────── */
.panel--impact {
  background: var(--c-bg);
}

.panel-header--light .panel-title {
  color: var(--c-text);
}

.impact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.manifesto-text {
  font-size: 1.0625rem;
  color: var(--c-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.manifesto-text strong {
  color: var(--c-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-green-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ─── Organizations ──────────────────────────── */
.panel--orgs {
  background: var(--c-bg-2);
}

.orgs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.orgs-lead {
  font-size: 1.0625rem;
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

.orgs-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.orgs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.orgs-list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

.orgs-callout {
  text-align: center;
}

.callout-big {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(135deg, var(--c-green-bright) 0%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ─── About ──────────────────────────────────── */
.panel--about {
  background: var(--c-bg-3);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo-wrap {
  margin-bottom: 1.5rem;
}

.about-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-text);
  background: radial-gradient(circle at 30% 20%, rgba(140, 198, 63, 0.22), rgba(182, 85, 52, 0.12) 70%);
}

.about-bio p {
  font-size: 1rem;
  color: var(--c-muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.about-bio strong {
  color: var(--c-text);
}

.founder-quote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-green);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--c-text);
}

.about-cta {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 2rem;
}

.cta-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 1.25rem;
}

.cta-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-line {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.8;
  margin: 0;
}

.contact-line a {
  color: var(--c-orange);
}

.contact-line a:hover {
  text-decoration: underline;
}

.panel-footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.panel-footer p {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin: 0;
}

.footer-link {
  color: var(--c-green);
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }

  .panel--hero {
    justify-content: flex-start;
    padding: 4rem 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .features-strip {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feat {
    padding: 0;
  }

  .feat-divider {
    width: 100%;
    height: 1px;
    min-height: auto;
  }

  .impact-layout,
  .orgs-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .orgs-callout {
    display: none;
  }

  .panel-inner {
    padding: 3rem 2rem;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .scroll-root {
    margin-left: 0;
    scroll-snap-type: none;
    height: auto;
    overflow-y: auto;
  }

  .panel {
    min-height: auto;
    padding: 5rem 0 3rem;
  }

  .panel--hero {
    padding: 5rem 0 3rem;
  }

  .panel-inner {
    padding: 2rem 1.25rem;
  }

  .panel-footer {
    padding: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

