/* ===== BovaroRecycle design tokens (from app palette) ===== */
:root {
  --industrial-dark: #1a2332;
  --industrial-steel: #34495e;
  --panel-surface: #243447;
  --eco-green: #2ecc71;
  --eco-green-dark: #1b8a4e;
  --accent-lime: #a8e063;
  --recycle-blue: #3498db;
  --energy-amber: #f39c12;
  --text-primary: #ecf0f1;
  --text-secondary: #95a5a6;
  --line: rgba(46, 204, 113, 0.18);
  --line-soft: rgba(52, 73, 94, 0.8);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  --shadow-green: 0 20px 40px -16px rgba(46, 204, 113, 0.35);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--industrial-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

em { font-style: normal; color: var(--eco-green); }

a { color: inherit; text-decoration: none; }

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

/* subtle industrial grid */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(26, 35, 50, 0.3) 0%, rgba(26, 35, 50, 0.95) 40%, var(--industrial-dark) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(52, 73, 94, 0.12) 39px, rgba(52, 73, 94, 0.12) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(52, 73, 94, 0.08) 39px, rgba(52, 73, 94, 0.08) 40px);
}

.nav, .hero, .materials, .section, .footer { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-lime);
  background: rgba(36, 52, 71, 0.9);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.eyebrow--center { display: block; width: fit-content; margin: 0 auto 22px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(26, 35, 50, 0.88);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.brand__logo { border-radius: 10px; }

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--eco-green); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--eco-green);
  border-radius: 2px;
  transition: 0.25s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--eco-green), var(--eco-green-dark));
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(46, 204, 113, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(46, 204, 113, 0.45);
}

.btn--ghost:hover {
  background: rgba(36, 52, 71, 0.8);
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(46, 204, 113, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  margin: 20px 0 18px;
}

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin: 30px 0 36px;
  flex-wrap: wrap;
}

.stats {
  list-style: none;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.stats li { display: flex; flex-direction: column; }

.stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  color: var(--eco-green);
}

.stats span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__orbit {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.orbit-ring--outer {
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.orbit-ring--inner {
  width: 72%;
  height: 72%;
  border-color: rgba(52, 152, 219, 0.2);
  animation: spin 18s linear infinite reverse;
}

.hero__hero-img--main {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
  animation: float 5s ease-in-out infinite;
}

.hero__float {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.hero__float--truck {
  width: 56px;
  height: 56px;
  top: 12%;
  right: 8%;
  animation: float 4s ease-in-out infinite 0.5s;
}

.hero__float--plastic {
  width: 48px;
  height: 48px;
  bottom: 18%;
  left: 6%;
  animation: float 4.5s ease-in-out infinite 1s;
}

.hero__float--metal {
  width: 44px;
  height: 44px;
  bottom: 10%;
  right: 14%;
  animation: float 3.8s ease-in-out infinite 0.2s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== Materials strip ===== */
.materials {
  padding: 28px 0;
  border-block: 1px solid var(--line-soft);
  background: rgba(36, 52, 71, 0.45);
}

.materials__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.materials__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
}

.materials__item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.2s;
}

.materials__item:hover img { transform: scale(1.12); }

.materials__item span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }

.section--demo {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(46, 204, 113, 0.06) 0%, transparent 60%),
    rgba(36, 52, 71, 0.35);
}

.section--about {
  background: linear-gradient(180deg, var(--industrial-dark) 0%, rgba(36, 52, 71, 0.5) 100%);
}

.section--privacy { background: var(--industrial-dark); }
.section--contact { background: rgba(36, 52, 71, 0.4); }

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}

.section__intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* ===== Feature cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--eco-green), var(--recycle-blue));
  opacity: 0;
  transition: opacity 0.2s;
}

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

.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}

.card__icon--wide {
  width: 64px;
  height: 64px;
}

.card__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-lime);
}

.card h3 {
  font-size: 20px;
  margin: 10px 0 8px;
}

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

/* ===== Demo ===== */
.demo {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.demo__stage {
  background: linear-gradient(180deg, rgba(52, 73, 94, 0.6) 0%, rgba(36, 52, 71, 0.9) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.demo__panel {
  background: var(--panel-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
}

.demo__desc {
  color: var(--text-secondary);
  min-height: 72px;
  font-size: 15px;
}

.demo__params {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.param {
  background: rgba(26, 35, 50, 0.7);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
}

.param span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.param b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: var(--eco-green);
}

.demo__slider {
  width: 100%;
  margin: 6px 0 4px;
  accent-color: var(--eco-green);
  height: 6px;
  cursor: pointer;
}

.demo__track {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

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

.demo__score > span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(26, 35, 50, 0.8);
  border-radius: 999px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--eco-green-dark), var(--eco-green), var(--accent-lime));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.demo__score b {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-lime);
  min-width: 42px;
  text-align: right;
}

.demo__note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-style: italic;
}

.demo__stagelabel {
  text-align: center;
  margin-top: 18px;
}

.demo__stagelabel b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: var(--text-primary);
  display: block;
}

.demo__stagelabel i {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: normal;
}

/* Chain visual */
.chain-visual {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-visual__glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.25) 0%, transparent 70%);
  transition: background 0.5s;
}

.chain-visual__img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.4s;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.chain-visual__badges img {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: contain;
  z-index: 3;
  transition: opacity 0.4s, transform 0.4s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chain-badge--a { top: 0; left: 50%; transform: translateX(-50%); }
.chain-badge--b { bottom: 8%; left: 0; }
.chain-badge--c { bottom: 8%; right: 0; }

.chain-visual[data-stage="0"] .chain-badge--b,
.chain-visual[data-stage="0"] .chain-badge--c { opacity: 0.3; transform: scale(0.8); }

.chain-visual[data-stage="1"] .chain-badge--b { opacity: 1; transform: scale(1); }
.chain-visual[data-stage="1"] .chain-badge--c { opacity: 0.3; }

.chain-visual[data-stage="2"] .chain-badge--b,
.chain-visual[data-stage="2"] .chain-badge--c { opacity: 1; transform: scale(1); }

.chain-visual[data-stage="3"] .chain-visual__glow {
  background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
}

.chain-visual[data-stage="4"] .chain-visual__glow {
  background: radial-gradient(circle, rgba(168, 224, 99, 0.3) 0%, transparent 70%);
}

.chain-visual[data-stage="4"] .chain-visual__img {
  transform: scale(1.08);
}

/* ===== About ===== */
.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about p {
  font-size: 17px;
  color: var(--text-secondary);
}

.about__tagline {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: var(--eco-green);
  margin-top: 36px;
  letter-spacing: 0.02em;
}

/* ===== Privacy ===== */
.privacy__date {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
}

.privacy {
  list-style: none;
  counter-reset: p;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.privacy li {
  counter-increment: p;
  background: var(--panel-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  position: relative;
}

.privacy li::before {
  content: "0" counter(p);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-lime);
}

.privacy h3 {
  font-size: 18px;
  margin: 4px 0 6px;
}

.privacy p {
  font-size: 15px;
  color: var(--text-secondary);
}

.privacy a {
  color: var(--eco-green);
  text-decoration: underline;
}

/* ===== Contact ===== */
.contact__reply {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact__card {
  background: var(--panel-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.contact__card--featured {
  border-color: rgba(46, 204, 113, 0.4);
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.08) 0%, var(--panel-surface) 100%);
}

.contact__card span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact__card b {
  font-size: 14px;
  color: var(--eco-green);
  word-break: break-all;
}

/* ===== Footer ===== */
.footer {
  background: rgba(16, 22, 32, 0.95);
  border-top: 1px solid var(--line-soft);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.brand--footer { color: var(--text-primary); }

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--eco-green); }

.footer__copy {
  font-size: 13px;
  color: rgba(149, 165, 166, 0.75);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy { order: 2; }
  .hero__visual { order: 1; }

  .lead { margin-inline: auto; }
  .hero__cta, .stats { justify-content: center; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 35, 50, 0.98);
    border-bottom: 1px solid var(--line-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav__links.open { max-height: 320px; }

  .nav__links a {
    padding: 14px 24px;
    border-top: 1px solid var(--line-soft);
  }

  .nav__burger { display: flex; }

  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .materials__inner { justify-content: center; }
  .materials__item { min-width: 72px; }
}
