/* Art direction: Green energy + infrastructure innovation → authoritative, forward-looking, sustainable
   Palette: Cool greens/teals with warm earth tones, dark sophisticated surfaces
   Typography: General Sans (body) + Zodiak (display) — clean industrial meets editorial authority
   Density: spacious — premium corporate feel */

/* ============================================
   CUSTOM PALETTE — Green Energy / Adamant
   ============================================ */

:root, [data-theme="light"] {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm light with subtle green undertone */
  --color-bg:             #f5f7f4;
  --color-surface:        #f9faf8;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #eef1ec;
  --color-surface-offset-2: #e6eae3;
  --color-surface-dynamic: #dde2da;
  --color-divider:        #d0d5cc;
  --color-border:         #c5cbc0;

  /* Text */
  --color-text:           #1a1e18;
  --color-text-muted:     #5c6358;
  --color-text-faint:     #9da396;
  --color-text-inverse:   #f5f7f4;

  /* Primary — Forest Teal */
  --color-primary:        #0d6b4f;
  --color-primary-hover:  #095239;
  --color-primary-active: #073d2b;
  --color-primary-highlight: #d0e8df;

  /* Secondary — Warm Amber (accent) */
  --color-secondary:      #c6882b;
  --color-secondary-hover:#a87020;

  /* Error */
  --color-error:          #a12c3d;

  /* Success */
  --color-success:        #2a7a3e;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 140 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 140 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 140 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:             #111410;
  --color-surface:        #171a14;
  --color-surface-2:      #1c1f18;
  --color-surface-offset: #1a1d16;
  --color-surface-offset-2: #20231c;
  --color-surface-dynamic: #282c24;
  --color-divider:        #2a2e26;
  --color-border:         #363a32;
  --color-text:           #cdd0c9;
  --color-text-muted:     #848a7c;
  --color-text-faint:     #5c6256;
  --color-text-inverse:   #1a1e18;
  --color-primary:        #4aaf86;
  --color-primary-hover:  #2d9a6e;
  --color-primary-active: #1f855c;
  --color-primary-highlight: #1e2f26;
  --color-secondary:      #e0a348;
  --color-secondary-hover:#c8912e;
  --color-error:          #dd6974;
  --color-success:        #6daa45;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #111410;
    --color-surface:        #171a14;
    --color-surface-2:      #1c1f18;
    --color-surface-offset: #1a1d16;
    --color-surface-offset-2: #20231c;
    --color-surface-dynamic: #282c24;
    --color-divider:        #2a2e26;
    --color-border:         #363a32;
    --color-text:           #cdd0c9;
    --color-text-muted:     #848a7c;
    --color-text-faint:     #5c6256;
    --color-text-inverse:   #1a1e18;
    --color-primary:        #4aaf86;
    --color-primary-hover:  #2d9a6e;
    --color-primary-active: #1f855c;
    --color-primary-highlight: #1e2f26;
    --color-secondary:      #e0a348;
    --color-secondary-hover:#c8912e;
    --color-error:          #dd6974;
    --color-success:        #6daa45;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo svg { width: 40px; height: 34px; }
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.header__logo-text span {
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.header__nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.header__nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition-interactive);
}
.header__nav-links a:hover { color: var(--color-text); }

.header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-lang {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-interactive);
}
.btn-lang:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.btn-theme:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
}
.header__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.active {
  display: flex;
  opacity: 1;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 768px) {
  .header__nav-links { display: none; }
  .header__hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(0.1 0.02 140 / 0.85) 0%,
    oklch(0.15 0.03 140 / 0.7) 50%,
    oklch(0.1 0.02 140 / 0.6) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-32) var(--space-6) var(--space-20);
  color: #f0f2ed;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
}
.hero__badge svg { width: 14px; height: 14px; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: italic;
  color: #6fd4a8;
}

.hero__desc {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: rgba(240,242,237,0.75);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: #f0f2ed;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #6fd4a8;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(240,242,237,0.5);
  letter-spacing: 0.03em;
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .hero__title { font-size: var(--text-2xl); }
  .hero__stats { flex-direction: column; gap: var(--space-4); }
}

/* ============================================
   SECTIONS — General
   ============================================ */

.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}
.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section__header {
  max-width: 600px;
  margin-bottom: var(--space-12);
}
.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section--alt { background: var(--color-surface); }
.section--dark {
  background: var(--color-surface-offset-2);
}

/* ============================================
   ABOUT — Vision split
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.about-grid__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-grid__img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.about-grid__content .section__label { margin-bottom: var(--space-3); }
.about-grid__content .section__title { margin-bottom: var(--space-4); }
.about-grid__content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.adamant-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-4);
  text-decoration: none;
  transition: background 0.2s;
}
.adamant-badge:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

/* ============================================
   FEATURES — Advantage cards
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PROJECTS
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover img { transform: scale(1.03); }
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.1 0.02 140 / 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
}
.project-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6fd4a8;
  margin-bottom: var(--space-2);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-2);
}
.project-card__desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  max-width: 42ch;
}

.project-card--featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card--featured { aspect-ratio: 16 / 10; }
}

/* ============================================
   TECHNOLOGY
   ============================================ */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.tech-grid--reverse { direction: rtl; }
.tech-grid--reverse > * { direction: ltr; }
.tech-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.tech-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.tech-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.tech-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-grid--reverse { direction: ltr; }
}

/* ============================================
   NUMBERS / STATS
   ============================================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-12) var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-item__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1;
}
.stat-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}

/* ============================================
   TEAM
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.team-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-primary);
}
.team-card__name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.team-card__org {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: var(--space-1);
  text-decoration: none;
}
.team-card__org:hover {
  text-decoration: underline;
}
.team-card__bio {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  max-width: 100%;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA / CONTACT
   ============================================ */

.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}
.cta-section .section__inner { max-width: 640px; }
.cta-section .section__title {
  color: #fff;
  margin-bottom: var(--space-4);
}
.cta-section .section__desc {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
}
.cta-section .btn--outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-section .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
  border: none;
}
.btn--white:hover {
  background: #f0f2ed;
  color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-surface-offset-2);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) var(--space-6) var(--space-8);
}
.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.6;
  max-width: 32ch;
}
.footer__brand p a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.footer__brand p a:hover {
  text-decoration: underline;
}
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: var(--space-2); }
.footer__col ul a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__col ul a:hover { color: var(--color-text); }

.footer__bottom {
  max-width: var(--content-wide);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__bottom a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ============================================
   PARTNER LOGOS (Adamant section)
   ============================================ */

.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
}
.partner-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
a.partner-logo:hover {
  color: var(--color-text);
}
.partner-logo svg { width: 32px; height: 32px; }

/* ============================================
   PRESS RELEASE BANNER
   ============================================ */

.press-banner {
  background: var(--color-primary-highlight);
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.press-banner__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.press-banner__text {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
}
.press-banner__link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   MARKET SCENARIOS — Countries + Mix bar
   ============================================ */

.market-countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.market-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.market-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.market-card--highlight {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.market-card__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.market-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.market-card--highlight .market-card__value {
  color: var(--color-primary);
}
.market-card__unit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .market-countries { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .market-countries { grid-template-columns: 1fr; }
}

/* Energy mix horizontal bar */
.market-mix {
  margin-top: var(--space-10);
}
.market-mix__header {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.market-mix__bar {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 72px;
  gap: 2px;
}
.market-mix__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  gap: var(--space-1);
  min-width: 48px;
}
.market-mix__segment--nonrenew { background: #5c6358; }
.market-mix__segment--renew { background: var(--color-primary); }
.market-mix__segment--import { background: var(--color-secondary); }
.market-mix__pct {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.market-mix__label {
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.85;
}
.market-mix__legend {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

/* ============================================
   LANGUAGE TOGGLE VISIBILITY
   ============================================ */

[data-lang="en"] .lang-it { display: none; }
[data-lang="it"] .lang-en { display: none; }

/* ============================================
   COLOR-SURFACE-ALT for dark/light mode
   ============================================ */

:root, [data-theme="light"] {
  --color-surface-alt: var(--color-surface-offset);
}
[data-theme="dark"] {
  --color-surface-alt: var(--color-surface-offset);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-surface-alt: var(--color-surface-offset);
  }
}

/* ===== AI CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 150;
  font-family: var(--font-body);
}

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 107, 79, 0.35), var(--shadow-lg);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), background var(--transition-interactive);
  position: relative;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(13, 107, 79, 0.45), var(--shadow-lg);
  background: var(--color-primary-hover);
}

.chat-fab__icon {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-fab__icon--chat {
  opacity: 1;
  transform: scale(1);
}

.chat-fab__icon--close {
  opacity: 0;
  transform: scale(0.6);
}

.chat-widget.open .chat-fab__icon--chat {
  opacity: 0;
  transform: scale(0.6);
}

.chat-widget.open .chat-fab__icon--close {
  opacity: 1;
  transform: scale(1);
}

.chat-panel {
  position: absolute;
  bottom: calc(56px + var(--space-4));
  right: 0;
  width: 400px;
  max-height: 540px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.open .chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, #0d3d2e 0%, #0d6b4f 100%);
  color: #fff;
  flex-shrink: 0;
}

[data-theme="dark"] .chat-panel__header {
  background: linear-gradient(135deg, #111410 0%, #1a3028 100%);
}

.chat-panel__header-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-panel__header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4aaf86;
  box-shadow: 0 0 0 3px rgba(74, 175, 134, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 175, 134, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(74, 175, 134, 0.1); }
}

.chat-panel__header-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.chat-panel__header-subtitle {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

.chat-panel__close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive);
}

.chat-panel__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.chat-panel__close svg {
  width: 14px;
  height: 14px;
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 200px;
  max-height: 360px;
  scroll-behavior: smooth;
}

.chat-panel__messages::-webkit-scrollbar {
  width: 4px;
}

.chat-panel__messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-panel__messages::-webkit-scrollbar-thumb {
  background: var(--color-surface-offset-2);
  border-radius: var(--radius-full);
}

.chat-msg {
  display: flex;
  max-width: 88%;
}

.chat-msg--bot {
  align-self: flex-start;
}

.chat-msg--user {
  align-self: flex-end;
}

.chat-msg__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
}

.chat-msg--bot .chat-msg__bubble {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-msg--user .chat-msg__bubble {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  align-self: flex-start;
  max-width: 88%;
}

.chat-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text-faint);
  animation: typing-bounce 1.4s infinite;
}

.chat-typing__dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-panel__input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.chat-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(13, 107, 79, 0.12);
}

.chat-input::placeholder {
  color: var(--color-text-faint);
}

.chat-send {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-primary);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.chat-send:hover {
  background: var(--color-primary-hover);
  transform: scale(1.06);
}

.chat-send svg {
  width: 16px;
  height: 16px;
}

.chat-lead {
  position: absolute;
  inset: 0;
  top: auto;
  bottom: 0;
  background: var(--color-bg);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: 10;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

[data-theme="dark"] .chat-lead {
  background: rgba(17, 20, 16, 0.97);
}

.chat-lead__inner {
  width: 100%;
  text-align: center;
}

.chat-lead__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.chat-lead__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.chat-lead__input {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-interactive);
}

.chat-lead__input:focus {
  border-color: var(--color-primary);
}

.chat-lead__btn {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-interactive);
  margin-bottom: var(--space-2);
}

.chat-lead__btn:hover {
  background: var(--color-primary-hover);
}

.chat-lead__skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: var(--space-2);
  transition: color var(--transition-interactive);
}

.chat-lead__skip:hover {
  color: var(--color-text);
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: var(--space-4);
    right: var(--space-4);
  }

  .chat-panel {
    width: calc(100vw - 2 * var(--space-4));
    max-height: 70vh;
    right: 0;
    bottom: calc(56px + var(--space-3));
  }

  .chat-panel__messages {
    max-height: calc(70vh - 140px);
  }
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
  background: var(--color-bg);
}

.video-section .section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 48rem;
  margin: var(--space-4) auto 0;
  text-align: center;
  line-height: 1.6;
}

.video-container {
  max-width: 56rem;
  margin: var(--space-12) auto 0;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  aspect-ratio: 16 / 9;
}

[data-theme="dark"] .video-wrapper {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: opacity 0.4s ease, background 0.4s ease;
  z-index: 2;
  color: #fff;
}

.video-play-btn svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.35);
}

.video-play-btn:hover svg {
  transform: scale(1.1);
}

.video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .video-container {
    margin-top: var(--space-8);
  }

  .video-wrapper {
    border-radius: var(--radius-lg, 0.75rem);
  }

  .video-play-btn svg {
    width: 60px;
    height: 60px;
  }
}
