@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --bg-warm: #f7f6f2;
  --bg-pure: #ffffff;
  --text-dark: #1d1b16;
  --text-body: #3d3a33;
  --text-muted: #6b6760;

  --accent: #1a3c34;
  --accent-hover: #112923;
  --accent-light: #e4ecea;

  --dark-bg: #0b1412;
  --dark-text: #f0efeb;
  --dark-muted: #9da29f;

  --border: rgba(40, 37, 29, 0.09);
  --border-dark: rgba(240, 239, 235, 0.12);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;
  --bg-hover: rgba(0, 0, 0, 0.02);

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1080px;
  --container-sm: 820px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  background: var(--bg-warm);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ==========================================================================
   TYPOGRAPHY — clean, tight, no floating text
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
  text-align: left;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1rem;
}

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

.container-narrow {
  width: 100%;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.alternate-bg { background: var(--bg-pure); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,60,52,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-dark);
  background: rgba(0,0,0,0.02);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--container);
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: all 0.3s var(--ease);
}
.header.scrolled {
  top: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 28px; height: 28px; color: var(--accent); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text-dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(0,0,0,0.04);
  padding: 3px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
}
.lang-btn {
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-btn.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dark);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: left;
  min-height: clamp(600px, 85vh, 800px);
  display: flex;
  align-items: flex-start;
  background: linear-gradient(to right, rgba(11, 20, 18, 0.9) 0%, rgba(11, 20, 18, 0.6) 50%, rgba(11, 20, 18, 0.1) 100%), url('assets/images/hero-bg.webp') right top/cover no-repeat;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  text-align: left;
  margin-bottom: 20px;
  color: var(--dark-text);
}

.hero-subhead {
  font-size: 1.05rem;
  color: var(--dark-text);
  opacity: 0.9;
  text-align: left;
  max-width: 600px;
  margin: 0 0 32px 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--text-dark);
  border-color: #ffffff;
}
.hero .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 40px;
  text-align: left;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
}

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem-map-wrapper {
  background: var(--bg-pure);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.problem-map-wrapper img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.pull-quote-card {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 8px;
}
.quote-source {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SOLUTION
   ========================================================================== */
.device-display {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: #373c3f; /* Seamless match with diagram background */
}
.device-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.solution-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.solution-item-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.solution-item-text p {
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   PROOF (dark section)
   ========================================================================== */
.proof-section {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.proof-section h2 { color: var(--dark-text); }

.proof-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.proof-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.proof-main-img-container {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #080c0a; /* Темний фон під бренд сайту */
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-main-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}
.proof-gallery {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.proof-thumb {
  flex: 1;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  opacity: 0.6;
}
.proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proof-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.3);
}
.proof-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 180, 120, 0.4);
}
.proof-caption {
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--dark-muted);
}

.proof-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
  margin-bottom: 16px;
}

.proof-text {
  color: var(--dark-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}
.proof-stat-item { display: flex; flex-direction: column; }
.proof-stat-val {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--dark-text);
  line-height: 1.15;
}
.proof-stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
  margin-top: 4px;
}

/* ==========================================================================
   EU RECYCLING ANGLE
   ========================================================================== */
.recycling-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}
.comparison-card {
  position: relative;
  aspect-ratio: 4 / 3;
}
.comparison-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-label {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

.reframe-card {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.reframe-card h4 { color: var(--accent); margin-bottom: 6px; }
.reframe-card p { color: var(--accent); margin-bottom: 0; font-size: 0.85rem; opacity: 0.85; }


/* ==========================================================================
   CREDIBILITY
   ========================================================================== */
.credibility-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.015);
}
.credibility-header { text-align: center; margin-bottom: 32px; }
.credibility-header h3 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}
.credibility-sub {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.partners-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.logo-item {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.55;
  transition: all 0.3s;
}
.logo-item:hover { filter: none; opacity: 1; }
.logo-item img { max-height: 100%; max-width: 150px; object-fit: contain; }

/* Premium Partner Tooltips */
.logo-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(26, 60, 52, 0.98);
  color: #f0efeb;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 500;
  width: max-content;
  max-width: 200px;
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.logo-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(26, 60, 52, 0.98) transparent transparent transparent;
}

.logo-item:hover .logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.logo-item:focus-within .logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PARTNERSHIP TIERS
   ========================================================================== */
.tiers-intro { margin-bottom: 40px; }

.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tier-card {
  background: var(--bg-pure);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tier-card-content { margin-bottom: 20px; }

.tier-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tier-icon { width: 28px; height: 28px; color: var(--accent); flex-shrink: 0; }
.tier-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.tier-card p { font-size: 0.85rem; line-height: 1.55; margin-bottom: 0; color: var(--text-muted); }

.tier-img-preview {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-hover);
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.tier-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.tier-card:hover .tier-img-preview img {
  transform: scale(1.04);
}
.tier-card .btn { align-self: flex-start; }

/* Education tier card */
.tier-card--edu {
  background: linear-gradient(135deg, var(--bg-pure) 0%, rgba(26,60,52,0.04) 100%);
  border: 1px solid rgba(26,60,52,0.12);
}
.tier-img-preview--edu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26,60,52,0.04);
}
.edu-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.edu-regions span {
  background: rgba(26,60,52,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(26,60,52,0.18);
}

/* External partner logo items (DCA, CUF) */
.logo-item--external a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo-item--external a:hover { opacity: 0.75; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  height: 220px;
}
.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--text-dark);
  color: #b8bab8;
  padding: 56px 0 28px;
  font-size: 0.85rem;
}
.footer p { color: #919491; }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-icon { color: #fff; }
.footer-brand p { font-size: 0.82rem; margin-bottom: 0; }

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #919491;
  transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 120, 0.3);
}

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h4 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer-nav-link { color: #919491; font-size: 0.85rem; }
.footer-nav-link:hover { color: #fff; }

.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contacts h4 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-item { display: flex; align-items: center; gap: 8px; color: #919491; }
.contact-icon { width: 16px; height: 16px; color: #ccc; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.75rem;
  color: #6b6e6b;
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,20,18,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  padding: 16px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-card {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.6s var(--ease);
}
.modal-overlay.active .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.05); }
.modal-close svg { width: 18px; height: 18px; }

.modal-card h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.8rem);
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,60,52,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa8a3; }

.modal-form .btn { margin-top: 8px; width: 100%; }

.form-success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.form-success-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 16px; }

/* ==========================================================================
   MOBILE RESPONSIVE — full overhaul
   ========================================================================== */

/* ---- Tablet (<=900px) ---- */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }

  /* Mobile nav overlay */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 88px;
    left: 12px;
    width: calc(100% - 24px);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 20px 24px 28px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .nav-menu.open li {
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open li:last-child { border-bottom: none; }
  .nav-menu.open .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proof-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Mobile (<=768px) ---- */
@media (max-width: 768px) {
  body { font-size: 14px; }

  /* Floating header — smaller margins on mobile */
  .header {
    top: 10px;
    width: calc(100% - 20px);
    left: 50%;
    transform: translateX(-50%);
  }
  .header.scrolled {
    top: 6px;
  }

  section { padding: 48px 0; }

  .container, .container-narrow { padding: 0 20px; }

  /* ===== MOBILE HERO — Glassmorphic Card ===== */
  .hero {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-end;
    background:
      linear-gradient(
        to bottom,
        rgba(11, 20, 18, 0.1) 0%,
        rgba(11, 20, 18, 0.15) 40%,
        rgba(11, 20, 18, 0.5) 100%
      ),
      url('assets/images/hero-bg.webp') center top / cover no-repeat;
  }

  /* The glass card */
  .hero-content.container {
    max-width: 100%;
    padding: 28px 20px 32px;
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  /* Dark text on light card */
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-align: left;
    color: var(--text-dark);
  }
  .hero-subhead {
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-body);
    opacity: 1;
  }

  /* Buttons inside card — green primary, outline secondary */
  .hero .btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .hero .btn-primary:hover {
    background: var(--accent-hover);
  }
  .hero .btn-secondary,
  .hero .btn-ghost {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 24px;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Stats row inside card */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(26, 60, 52, 0.12);
  }
  .stat-number {
    font-size: 1.6rem;
    color: var(--accent);
  }
  .stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
  }

  /* ===== Rest of mobile overrides ===== */
  h2 { font-size: 1.5rem; }

  .pull-quote { font-size: 1.1rem; }

  .device-display { aspect-ratio: 1 / 1; }

  .recycling-comparison { grid-template-columns: 1fr; }

  .tiers-grid { grid-template-columns: 1fr; }
  .tier-card { padding: 24px; }

  .partners-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    justify-items: center;
  }
  .logo-item { height: 44px; }

  .about-banner { height: 160px; }
  .about-quote { font-size: 1.2rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ---- Small phones (<=480px) ---- */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }

  section { padding: 36px 0; }

  .hero h1 { font-size: 1.4rem; }

  .hero-content.container {
    padding: 24px 16px 28px;
    margin: 0 8px 8px;
    width: calc(100% - 16px);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    text-align: center;
  }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.5rem; }

  .proof-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proof-stat-val { font-size: 1.35rem; }

  .tier-card { padding: 20px; }
  .tier-img-preview { height: auto; }

  .about-banner { height: 140px; }

  .modal-card { padding: 24px 20px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
