/* EcoGrid's public site: the app's tokens (ecogrid web/src/styles/tokens.css), light and dark by system setting. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #fafbfc; --text: #16191d; --muted: #5d6672; --faint: #8a929d;
  --border: #e3e6ea; --border-strong: #cfd4da; --brand: #0f766e; --brand-text: #0f766e; --brand-soft: #e7f5f3;
  --leaf: #22c58b; --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04); --pop: 0 12px 32px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --surface: #151a21; --surface-2: #11161c; --text: #e8ecf1; --muted: #9aa5b2; --faint: #6f7a87;
    --border: #252c36; --border-strong: #343d49; --brand: #2dd4bf; --brand-text: #5eead4; --brand-soft: #11302f;
    --on-brand: #06231f; --shadow: none; --pop: 0 12px 32px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand b { font-weight: 450; opacity: .8; }
.brand.small { font-size: 15px; }
.nav { display: flex; align-items: center; gap: 10px; }
.lang { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--border-strong); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: transform .15s var(--ease), background-color .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }

.hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.kicker { color: var(--brand-text); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.lead { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--pop); background: var(--surface); }
.shot figcaption { color: var(--faint); font-size: 13px; margin-top: 10px; text-align: right; }

.band { padding: 72px 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--surface-2); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; font-weight: 700; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; align-content: start; gap: 6px; padding-top: 16px; border-top: 2px solid var(--brand); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--brand-text); font-weight: 700; font-size: 13px; }
.steps strong { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }

.foot { border-top: 1px solid var(--border); padding: 8px 0; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise .5s var(--ease) both; }
  .rise > *:nth-child(2) { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 48px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .grid, .steps ol { grid-template-columns: 1fr; }
  .band { padding: 48px 0; }
  .nav .btn { padding: 8px 12px; }
  .cta .btn { flex: 1 1 auto; }
}
