/* styles.css — ecocore.App landing */
:root {
  /* Match the app's new slate + blue theme */
  --bg: #0f172a;             /* slate-900 */
  --bg-2: #131c2f;
  --panel: #1e293b;          /* slate-800 */
  --panel-2: #1e293b;
  --card: #1e293b;
  --border: #334155;         /* slate-700 */
  --border-hi: #475569;      /* slate-600 */
  --text: #f1f5f9;           /* slate-100 */
  --text-dim: #94a3b8;       /* slate-400 */
  --text-mute: #64748b;      /* slate-500 */
  --accent: #3b82f6;         /* blue-500 */
  --accent-2: rgba(59, 130, 246, 0.14);
  --accent-border: rgba(59, 130, 246, 0.35);
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 10px;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}
img, video, svg { max-width: 100%; height: auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grainy gradient background accent */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1000px 600px at 80% -10%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(900px 500px at 0% 10%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 0; opacity: 0.5; mix-blend-mode: overlay;
}
main, header, footer { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.1px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: transparent; color: var(--text);
}
.btn-primary {
  background: var(--accent); color: #0a1008;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 rgba(255,255,255,0.15) inset, 0 6px 24px -8px color-mix(in oklab, var(--accent) 60%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary {
  background: var(--panel); color: var(--text); border-color: var(--border-hi);
}
.btn-secondary:hover { background: #181b18; border-color: #353a35; }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--panel);
}
.pill.pill-accent {
  color: var(--accent); border-color: var(--accent-border);
  background: var(--accent-2);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 6px;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.nav-brand .mark-img {
  width: 26px; height: 26px; border-radius: 6px;
  object-fit: contain;
  display: block;
}
.nav-brand .dot-tld { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel);
  font-size: 11.5px; font-family: 'JetBrains Mono', monospace;
}
.lang-switch button {
  padding: 3px 8px; border: none; background: transparent; color: var(--text-dim);
  border-radius: 5px; font-family: inherit; font-size: inherit;
}
.lang-switch button.active { background: var(--card); color: var(--text); }

/* Sections */
section { padding: 90px 0; position: relative; }
section.tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 500; }
h1 { font-size: clamp(38px, 5.8vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; font-weight: 500; }
h3 { font-size: 18px; line-height: 1.25; }
p { color: var(--text-dim); }

.section-head { margin-bottom: 56px; max-width: 680px; }
.section-head p { font-size: 17px; line-height: 1.5; margin-top: 14px; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 40px; }
.hero h1 strong { color: var(--accent); font-weight: 500; font-style: normal; }
.hero h1 .slash { color: var(--text-mute); }
.hero-sub { font-size: 19px; line-height: 1.5; color: var(--text-dim); max-width: 580px; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px;
  font-size: 12.5px; color: var(--text-mute);
}
.hero-trust .stars { color: var(--accent); letter-spacing: 1.5px; }
.hero-stage { margin-top: 56px; position: relative; }

/* Dashboard mock (hero) */
.mock-window {
  background: linear-gradient(180deg, #0f120f 0%, #0b0d0b 100%);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.6),
    0 30px 60px -20px color-mix(in oklab, var(--accent) 22%, transparent),
    0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #0c0e0c;
}
.mock-bar .tl { width: 11px; height: 11px; border-radius: 50%; background: #2a2d2a; }
.mock-bar .tl.r { background: #3a2f2f; }
.mock-bar .tl.y { background: #3a3a2f; }
.mock-bar .tl.g { background: #2a3a2f; }
.mock-bar .url {
  flex: 1; margin-left: 10px;
  height: 22px; border-radius: 5px;
  background: #101210; border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 10px;
  color: var(--text-mute); font-size: 11px; font-family: 'JetBrains Mono', monospace;
}
.mock-bar .url b { color: var(--accent); font-weight: 400; }

/* Logo strip */
.logo-strip {
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-mute); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 22px;
}
.logo-row {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 28px;
  opacity: 0.75;
}
.logo-row .logo {
  font-weight: 600; font-size: 17px; color: var(--text-dim);
  letter-spacing: -0.3px; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}

/* Results / Stats band */
.stats-band {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, transparent) 0%, transparent 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-grid > div {
  padding: 12px 24px;
  border-left: 1px solid var(--border);
}
.stats-grid > div:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500; letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-num .unit { color: var(--accent); font-size: 0.55em; font-weight: 400; margin-left: 2px; }
.stat-num .plus { color: var(--accent); }
.stat-label {
  margin-top: 12px;
  font-size: 13px; color: var(--text-dim); line-height: 1.4;
  max-width: 220px;
}

/* Features grid */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.feature-card {
  background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 14px;
  min-height: 250px; position: relative; overflow: hidden;
  transition: background 0.2s;
}
.feature-card:hover { background: #141713; }
.feature-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-2); border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.feature-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; margin: 0; }
.feature-card .viz {
  margin-top: auto; padding-top: 12px;
  height: 80px; display: flex; align-items: flex-end;
}

/* Product tour */
.tour-wrap {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 28px; align-items: start;
}
.tour-list { display: flex; flex-direction: column; gap: 6px; }
.tour-item {
  padding: 16px 18px; border: 1px solid transparent;
  border-radius: 10px; cursor: pointer;
  transition: all 0.15s;
}
.tour-item:hover { background: color-mix(in oklab, var(--panel) 60%, transparent); }
.tour-item.active { background: var(--card); border-color: var(--border-hi); }
.tour-item .num {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--text-mute);
  letter-spacing: 1px;
}
.tour-item .active-indicator {
  display: none; width: 2px; height: 20px; background: var(--accent); border-radius: 2px;
}
.tour-item.active .num { color: var(--accent); }
.tour-item h3 { font-size: 15.5px; font-weight: 600; margin-top: 6px; letter-spacing: -0.2px; }
.tour-item p { font-size: 13px; margin: 6px 0 0; }
.tour-stage {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; min-height: 420px;
  position: relative;
}

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 24px; left: 40px; right: 40px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border) 0 6px, transparent 6px 12px);
}
.step { padding: 0 16px; position: relative; }
.step .step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  color: var(--accent); position: relative; z-index: 1;
  margin-bottom: 18px;
}
.step h3 { font-size: 15.5px; font-weight: 600; }
.step p { font-size: 13.5px; margin-top: 6px; }

/* Testimonials */
.testimonial-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px;
}
.testimonial {
  background: var(--card); border: 1px solid var(--border);
  padding: 26px; border-radius: 14px; display: flex; flex-direction: column; gap: 18px;
}
.testimonial.featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--card)), var(--card));
  border-color: var(--accent-border);
}
.testimonial .quote { font-size: 17px; line-height: 1.45; color: var(--text); font-weight: 400; letter-spacing: -0.1px; }
.testimonial.featured .quote { font-size: 22px; line-height: 1.35; }
.testimonial .quote::before { content: '“'; color: var(--accent); font-size: 40px; line-height: 0; vertical-align: -8px; margin-right: 2px; font-family: Georgia, serif; }
.testimonial .author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.testimonial .author-info { display: flex; flex-direction: column; }
.testimonial .author-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.testimonial .author-role { font-size: 11.5px; color: var(--text-mute); }
.testimonial .metric {
  padding: 8px 12px; background: var(--accent-2); border: 1px solid var(--accent-border);
  border-radius: 8px; font-family: 'JetBrains Mono', monospace;
  color: var(--accent); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
}

/* Integrations */
.integrations-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.integ-card {
  aspect-ratio: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 14px; transition: all 0.2s;
}
.integ-card:hover { border-color: var(--border-hi); background: #151814; transform: translateY(-2px); }
.integ-card .integ-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.integ-card .integ-name { font-size: 11.5px; color: var(--text-dim); text-align: center; font-weight: 500; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.plan.popular {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 10%, var(--card)), var(--card));
  border-color: var(--accent-border);
}
.plan .plan-badge {
  position: absolute; top: -11px; left: 28px;
  padding: 3px 10px; background: var(--accent); color: #0a0a0a;
  font-size: 10.5px; font-weight: 600; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
}
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: -0.1px; color: var(--text); }
.plan-desc { font-size: 13px; color: var(--text-dim); }
.plan-price { font-size: 44px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { font-size: 14px; font-weight: 400; color: var(--text-mute); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); }
.plan li .chk { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.plan .btn { justify-content: center; }

/* FAQ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-size: 16px; font-weight: 500; color: var(--text);
  letter-spacing: -0.1px;
}
.faq-q .chev { color: var(--text-mute); transition: transform 0.2s; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin 0.3s;
  font-size: 14px; line-height: 1.55; color: var(--text-dim);
}
.faq-item.open .faq-a { max-height: 200px; margin-top: 12px; }

/* Final CTA */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(500px 300px at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta h2 { max-width: 700px; margin: 0 auto 18px; }
.final-cta p { font-size: 17px; max-width: 560px; margin: 0 auto 32px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 44px;
}
.footer-col h4 {
  font-size: 11.5px; text-transform: uppercase; color: var(--text-mute);
  letter-spacing: 1.2px; font-weight: 600; margin: 0 0 14px;
  font-family: 'JetBrains Mono', monospace;
}
.footer-col a {
  display: block; padding: 6px 0; color: var(--text-dim); font-size: 13.5px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-mute);
}
.footer-brand p { margin-top: 14px; font-size: 13px; max-width: 320px; line-height: 1.55; }

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  background: var(--panel); border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
  display: none; flex-direction: column; gap: 12px;
  font-size: 12.5px;
}
.tweaks.visible { display: flex; }
.tweaks h4 { font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.tweaks-row { display: flex; flex-direction: column; gap: 6px; }
.tweaks-row label { color: var(--text-dim); font-size: 11.5px; font-weight: 500; }
.tweaks-row select, .tweaks-row input[type="color"] {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; font-size: 12px; font-family: inherit;
  width: 100%;
}
.tweaks-hues { display: flex; gap: 6px; }
.tweaks-hues button {
  flex: 1; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--border); background: none;
}
.tweaks-hues button.active { outline: 2px solid var(--text); outline-offset: 1px; }

/* Responsive */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { padding: 18px 0 !important; border-left: none; border-top: 1px solid var(--border); }
  .stats-grid > div:first-child { border-top: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .tour-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title, h1 { font-size: clamp(28px, 8vw, 44px) !important; }
  .hero-sub { font-size: 16px; }
  .hero-cta { flex-wrap: wrap; }
  .btn { padding: 10px 14px; font-size: 13px; }
  .nav-brand { font-size: 14px; }
  /* anything that might be too wide on small screens */
  table, pre, code { max-width: 100%; overflow-x: auto; display: block; }
}
