.auth-page-wrap {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.auth-page-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(110, 220, 95, .08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(90, 200, 250, .04) 0%, transparent 50%);
  pointer-events: none;
}

/* Card centrada: único hijo flex del wrap (el bg es absolute) */
.auth-page-wrap .auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0;
  flex-shrink: 0;
}

body.auth-page .page-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
}

/* En la página de auth, body es flex para que main ocupe el resto y la card se centre */
body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.auth-page .site-footer {
  margin-top: 0;
}

/* Auth section: column flex so margin:auto on the inner card can center it
   vertically without ever overflowing above the padding-top (navbar clearance).
   When the card is taller than the available space it sticks to the top (100px
   from wrap top = just below the fixed navbar) and the parent scrolls. */
body.auth-page .auth-page-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 100px 24px 80px;
  box-sizing: border-box;
}

/* margin:auto distributes free vertical space above and below the card.
   When there is no free space the margins collapse to 0 and the card
   sits at the start of the content area — never behind the navbar. */
body.auth-page .auth-page-wrap > .auth-page-inner {
  margin-top: auto;
  margin-bottom: auto;
}

body.auth-page .l-auth-section--page {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}

/* ── Auth inner wrapper: centra en móvil, grid 2 col en escritorio ── */
.auth-page-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Brand top section (inside card) ────────────────────────────── */
.auth-brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.auth-brand-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-badge-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6EDC5F, #4DB840);
  color: #000;
  font-family: 'Outfit', var(--font-sans, sans-serif);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.auth-brand-wordmark {
  font-family: 'Outfit', var(--font-sans, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-brand-tagline {
  font-family: 'Outfit', var(--font-sans, sans-serif);
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.4;
  margin: 0;
}

/* Divider variant inside the card: full-width separator */
.auth-brand-divider--card {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.l-auth-section {
  padding: 80px 24px 100px;
  background: var(--bg);
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(12, 18, 15, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.auth-card-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(110, 220, 95, .12) 0%, transparent 65%);
  pointer-events: none;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.auth-title {
  font-family: 'Outfit', var(--font-sans, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 8px;
  color: var(--text);
}

.auth-subtitle {
  font-size: .95rem;
  color: var(--text2);
  margin: 0;
  line-height: 1.5;
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, .04);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all .25s;
  font-family: inherit;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--surface2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.auth-panels {
  position: relative;
  z-index: 1;
}

/* Ocultar todos los paneles por defecto; solo el activo es visible (alta especificidad para evitar sobrescrituras) */
.auth-page .auth-panels .auth-panel,
.auth-panel {
  display: none !important;
}

.auth-page .auth-panels .auth-panel.active,
.auth-panel.active {
  display: block !important;
  animation: ld-fadeUp .3s ease;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label,
.auth-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text2);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(110, 220, 95, .15);
}

.auth-field--types .auth-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 4px;
}

.auth-note {
  font-size: .85rem;
  color: var(--text3);
  margin-top: 4px;
}

.auth-type-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text2);
  cursor: pointer;
}

.auth-type-opt input {
  accent-color: var(--green);
}

.auth-type-opt:hover {
  color: var(--text);
}

/* Checkbox field variant */
.auth-field--checkbox {
  margin-top: 4px;
}

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text2);
  font-weight: 400;
}

.auth-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

.auth-checkbox-text {
  line-height: 1.4;
}

.auth-checkbox-hint {
  margin: 4px 0 0 27px;
  font-size: .78rem;
  color: var(--text3);
  line-height: 1.4;
}

.auth-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 12px;
  color: #f87171;
  font-size: .9rem;
}

.auth-field-error {
  font-size: .8rem;
  color: #f87171;
}

.auth-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-link-soft {
  font-size: .85rem;
  color: var(--text3);
  text-decoration: none;
}

.auth-link-soft:hover {
  color: var(--green);
}

.auth-form .btn-hero {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.auth-back {
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}

.auth-link-back:hover {
  color: var(--green);
}

.l-auth-section--page {
  min-height: 0;
  padding: 0;
}

/* Light mode auth */
html.dc-light .auth-page-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(110, 220, 95, .06) 0%, transparent 50%);
}

html.dc-light .auth-card {
  background: #ffffff;
  border: 1px solid #D6E2DB;
  box-shadow:
    0 8px 30px rgba(26, 43, 37, .08),
    0 1px 3px rgba(26, 43, 37, .06);
}

html.dc-light .auth-card-glow {
  background: radial-gradient(ellipse at center, rgba(110, 220, 95, .05) 0%, transparent 65%);
}

html.dc-light .auth-card::before {
  background: linear-gradient(90deg, transparent, rgba(77, 184, 64, .12), transparent);
}

html.dc-light .auth-brand-wordmark {
  color: #1A2B25;
}

html.dc-light .auth-brand-tagline {
  color: #5F7A70;
}

html.dc-light .auth-title {
  color: #1A2B25;
}

html.dc-light .auth-subtitle {
  color: #5F7A70;
}

html.dc-light .auth-tabs {
  background: #F0F5F2;
  border: 1px solid #E3ECE7;
}

html.dc-light .auth-tab {
  color: #5F7A70;
}

html.dc-light .auth-tab:hover {
  color: #1A2B25;
}

html.dc-light .auth-tab.active {
  background: #ffffff;
  color: #1A2B25;
  box-shadow: 0 1px 4px rgba(26, 43, 37, .1);
}

html.dc-light .auth-field label {
  color: #3D5A50;
}

html.dc-light .auth-field input {
  background: #F7FAF8;
  border: 1px solid #D0DCD5;
  color: #1A2B25;
}

html.dc-light .auth-field input:focus {
  background: #ffffff;
  border-color: #4DB840;
  box-shadow: 0 0 0 3px rgba(77, 184, 64, .12);
}

html.dc-light .auth-field input::placeholder {
  color: #8FA8A0;
}

html.dc-light .auth-link-soft {
  color: #5F7A70;
}

html.dc-light .auth-link-soft:hover {
  color: #4DB840;
}

html.dc-light .auth-link-back {
  color: #5F7A70;
}

html.dc-light .auth-link-back:hover {
  color: #4DB840;
}

html.dc-light .auth-brand-divider--card {
  background: #E3ECE7;
}

html.dc-light .l-eyebrow {
  color: #4DB840;
}

html.dc-light .auth-error {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .2);
  color: #dc2626;
}

html.dc-light .auth-field-error {
  color: #dc2626;
}


/* ─── Section base ─── */
.l-section {
  padding: 120px 24px;
  position: relative;
}

.l-container {
  max-width: 1120px;
  margin: 0 auto;
}

.l-eyebrow {
  font-size: .78rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.l-section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.l-section-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.7;
  letter-spacing: -.01em;
  max-width: 560px;
}

/* ─── Community scene ─── */
.l-scene {
  background: var(--bg);
  padding-top: 0;
  padding-bottom: 0;
}

.l-scene-intro {
  padding: 120px 24px 60px;
  text-align: center;
}

.l-scene-intro .l-section-title {
  max-width: 700px;
  margin: 0 auto 20px;
}

.l-scene-intro .l-section-body {
  margin: 0 auto;
  text-align: center;
  max-width: 520px;
}

.canvas-frame {
  position: relative;
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
  height: 520px;
}

.canvas-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

.canvas-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

#energyCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Metrics strip */
.metrics-strip {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 60px;
}

.metric-cell {
  background: var(--bg2);
  padding: 32px 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s, transform .6s, background .3s;
}

.metric-cell.visible {
  opacity: 1;
  transform: none;
}

.metric-cell:nth-child(2) {
  transition-delay: .1s;
}

.metric-cell:nth-child(3) {
  transition-delay: .2s;
}

.metric-cell:nth-child(4) {
  transition-delay: .3s;
}

.metric-cell:hover {
  background: var(--bg3);
}

.mc-icon {
  font-size: 1.3rem;
  margin-bottom: 14px;
  display: block;
}

.mc-val {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--green);
  line-height: 1;
}

.mc-lbl {
  font-size: .78rem;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: .01em;
}

/* ─── Timeline ─── */
.l-timeline-section {
  padding: 140px 24px;
  background: var(--bg);
}

.l-timeline {
  max-width: 800px;
  margin: 60px auto 0;
  position: relative;
}

.l-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border2) 10%, var(--border2) 90%, transparent);
}

.tl-item {
  display: flex;
  gap: 40px;
  padding: 0 0 60px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all .7s cubic-bezier(.16, 1, .3, 1);
}

.tl-item.visible {
  opacity: 1;
  transform: none;
}

.tl-item:nth-child(2) {
  transition-delay: .15s;
}

.tl-item:nth-child(3) {
  transition-delay: .3s;
}

.tl-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  transition: all .3s;
}

.tl-item:hover .tl-node {
  background: rgba(110, 220, 95, .1);
  border-color: rgba(110, 220, 95, .4);
  box-shadow: 0 0 24px rgba(110, 220, 95, .15);
}

.tl-right {
  padding-top: 12px;
}

.tl-step {
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tl-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.tl-desc {
  font-size: .95rem;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.7;
  letter-spacing: -.01em;
}

/* ─── Bento grid ─── */
.l-bento-section {
  padding: 0 24px 140px;
}

.bento-grid {
  max-width: 1080px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bento {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
  transform: translateY(24px);
}

.bento.visible {
  opacity: 1;
  transform: none;
}

.bento:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateY(-2px);
}

.bento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
}

.bento.large {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(110, 220, 95, .1);
  border: 1px solid rgba(110, 220, 95, .15);
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: 20px;
}

.bento h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.bento p {
  font-size: .85rem;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.65;
  letter-spacing: -.01em;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: .02em;
}

.mini-chart-wrap {
  margin-top: 24px;
  height: 80px;
  position: relative;
}

#miniChart {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Chart section ─── */
.l-chart-section {
  padding: 0 24px 140px;
  background: var(--bg);
}

.chart-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.chart-title {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(110, 220, 95, .1);
  border: 1px solid rgba(110, 220, 95, .2);
  padding: 4px 10px;
  border-radius: 980px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: ld-pulse 2s infinite;
  display: inline-block;
}

#consumptionChart {
  width: 100%;
  height: 240px;
  display: block;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--text2);
}

.ldot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Counters ─── */
.l-counter-section {
  padding: 140px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.l-counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(110, 220, 95, .05), transparent);
  pointer-events: none;
}

.counters {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 0;
}

.ctr {
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.ctr.visible {
  opacity: 1;
  transform: none;
}

.ctr:nth-child(2) {
  transition-delay: .1s;
}

.ctr:nth-child(3) {
  transition-delay: .2s;
}

.ctr:nth-child(4) {
  transition-delay: .3s;
}

.ctr-val {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--text2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.ctr-unit {
  font-size: 1.2rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: -.02em;
}

.ctr-lbl {
  font-size: .75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 8px;
}

/* ─── CTA strip ─── */
.l-cta-strip {
  padding: 0 24px 120px;
}

.cta-glass {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
}

.cta-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, rgba(110, 220, 95, .06), transparent);
  pointer-events: none;
}

.cta-text {
  position: relative;
  z-index: 1;
}

.cta-glass h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.cta-glass p {
  color: var(--text2);
  font-size: .95rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ─── Animations ─── */
@keyframes ld-fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ld-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.9);
  }
}

/* ─── Responsive ─── */

/* Tablet / mobile — stack hero, reduce section padding */
@media (max-width: 768px) {
  /* Hero: drop to single column */
  .l-hero--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 88px 20px 56px;
    gap: 40px;
    min-height: auto;
  }

  .hero-left {
    align-items: center;
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .l-hero--split .hero-sub {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .l-hero--split .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  /* Mockup: hide laptop on mobile, show phone only centered */
  .hero-right {
    justify-content: center;
    width: 100%;
  }

  .laptop {
    display: none;
  }

  .mockup-scene {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .phone {
    position: static;
    width: 130px;
  }

  .phone-screen {
    height: 200px;
  }

  /* Reduce section vertical padding */
  .l-section {
    padding: 72px 20px;
  }

  .l-scene-intro {
    padding: 72px 20px 40px;
  }

  .l-section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  /* Timeline: single column */
  .l-timeline-section .l-container {
    flex-direction: column;
    gap: 40px;
  }

  /* Auth card: ensure it clears the navbar on tablets */
  .auth-page-wrap,
  body.auth-page .auth-page-wrap {
    padding: 88px 20px 56px;
  }

  body.auth-page .auth-page-wrap {
    padding-bottom: 80px;
  }

  .auth-card {
    padding: 36px 28px;
  }
}

@media (max-width: 1100px) {
  .l-hero--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    text-align: left;
    padding: 72px 24px 64px;
    gap: 20px;
  }

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

  .hero-trust {
    justify-content: flex-start;
  }

  .hero-right {
    justify-content: center;
  }

  .mockup-scene {
    width: 380px;
    height: 300px;
  }

  .laptop {
    width: 300px;
  }

  .laptop-screen {
    height: 160px;
  }

  .phone {
    width: 84px;
  }

  .phone-screen {
    height: 138px;
  }

  body.auth-page .auth-page-wrap {
    padding-bottom: 80px;
  }
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento.large {
    grid-column: span 1;
  }

  .chart-layout {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-glass {
    flex-direction: column;
    padding: 40px 24px;
  }

  .counters {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .auth-page-wrap {
    padding: 80px 16px 80px;
  }

  body.auth-page .auth-page-wrap {
    padding-bottom: 96px;
  }

  .auth-card {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-tab {
    padding: 10px 16px;
    font-size: .9rem;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .l-hero--split .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero,
  .btn-hero2,
  .btn-fill,
  .btn-outline {
    justify-content: center;
  }

  .phone {
    width: 110px;
  }

  .phone-screen {
    height: 170px;
  }
}

/* Extra-small phones (≤380px) */
@media (max-width: 380px) {
  /* Hero title: prevent clamp minimum from being too large */
  .l-hero--split h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .l-hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  /* Mockup scene: shrink phone for very narrow screens */
  .phone {
    width: 95px;
  }

  .phone-screen {
    height: 148px;
  }

  /* CTA and auth: extra compact */
  .cta-glass {
    padding: 32px 16px;
  }

  .auth-card {
    padding: 28px 16px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.4rem;
  }

  body.auth-page .auth-page-wrap {
    padding-bottom: 104px;
  }

  /* Metrics: single column on very small screens */
  .metrics-strip {
    grid-template-columns: 1fr;
  }

  /* Section padding */
  .l-section {
    padding: 56px 16px;
  }

  .l-timeline-section {
    padding: 80px 16px;
  }
}
/* ================================================================
   COMMUNITY JOIN PAGE
   ================================================================ */
.cj-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
  text-align: center;
}

.cj-hero-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
  filter: drop-shadow(0 0 24px rgba(110, 220, 95, .35));
}

.cj-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}

.cj-lead {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* Info cards */
.cj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

@media (max-width: 700px) {
  .cj-cards { grid-template-columns: 1fr; }
}

.cj-card {
  background: var(--bg-card, rgba(255,255,255,.04));
  border: 1px solid var(--border-subtle, rgba(255,255,255,.08));
  border-radius: 14px;
  padding: 1.25rem;
}

.cj-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .6rem;
}

.cj-card-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .4rem;
}

.cj-card-text {
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

/* Privacy note */
.cj-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: rgba(110, 220, 95, .07);
  border: 1px solid rgba(110, 220, 95, .2);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-size: .82rem;
  color: var(--text2);
  text-align: left;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.cj-privacy-note .bi {
  color: var(--green, #6EDC5F);
  flex-shrink: 0;
  margin-top: .1rem;
}

/* Actions */
.cj-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}

.cj-btn-accept {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.cj-btn-skip {
  font-size: .88rem;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}

.cj-btn-skip:hover { color: var(--text2); }

/* Light theme */
html.dc-light .cj-card {
  background: #fff;
  border-color: rgba(26, 43, 37, .08);
  box-shadow: 0 2px 8px rgba(26, 43, 37, .05);
}

/* ============================================================
   Energy flow lines + Floating micrographics
   ============================================================ */

.energy-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ensure all page content sits above the decorative layer */
body.landing-page .l-hero,
body.landing-page .l-scene,
body.landing-page .l-timeline-section,
body.landing-page .l-bento-section,
body.landing-page .l-chart-section,
body.landing-page .l-counters-section,
body.landing-page .l-cta-section,
body.landing-page .l-section,
body.landing-page .cj-section {
  position: relative;
  z-index: 1;
}

/* ── SVG Flow lines ─────────────────────────────────────────── */
.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke: rgba(110, 220, 95, .12);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 12 24;
  animation: flowDash 18s linear infinite;
}

.fp-2 {
  stroke: rgba(168, 240, 112, .08);
  stroke-width: 1;
  stroke-dasharray: 8 32;
  animation-duration: 24s;
  animation-direction: reverse;
}

.fp-3 {
  stroke: rgba(183, 243, 75, .06);
  stroke-width: 0.8;
  stroke-dasharray: 6 28;
  animation-duration: 30s;
}

@keyframes flowDash {
  to { stroke-dashoffset: -200; }
}

/* Light mode: nearly invisible */
html.dc-light .flow-path {
  stroke: rgba(77, 184, 64, .05);
}
html.dc-light .fp-2 {
  stroke: rgba(110, 220, 95, .04);
}
html.dc-light .fp-3 {
  stroke: rgba(183, 243, 75, .03);
}

/* ── Floating micrographics ─────────────────────────────────── */
.micro-floats {
  position: absolute;
  inset: 0;
}

.micro-float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(110, 220, 95, .14);
  font-size: 18px;
  animation: microDrift linear infinite;
  will-change: transform;
}

/* Thin linear icon style */
.micro-float i {
  font-weight: 100 !important;
  opacity: 0.7;
}

/* Some micro-floats are tiny chart-like shapes */
.micro-float svg {
  width: 20px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes microDrift {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(12deg);
    opacity: 0;
  }
}

/* Light mode: more subtle */
html.dc-light .micro-float {
  color: rgba(77, 184, 64, .07);
}

/* Hide decorations on small screens to keep it clean */
@media (max-width: 768px) {
  .energy-decor {
    display: none;
  }
}
