/* ============================================================
   STASIS CARBON — Global Stylesheet
   Design System: Institutional climate-tech. Bloomberg meets forest.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1A1F2E;
  --primary-light: #2C3347;
  --accent: #A8E63D;
  --accent-warm: #FF6B35;
  --bg-primary: #F7F8FA;
  --bg-secondary: #FFFFFF;
  --bg-dark: #0D1017;
  --text-primary: #12151F;
  --text-secondary: #424B5C;
  --text-muted: #7B85A0;
  --border: #E2E5ED;
  --border-dark: #1E2438;
  --success: #4CAF50;
  --warning: #FF6B35;
  --error: #E03E3E;
}

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

html { scroll-behavior: smooth; }

body {
  font: 400 16px/1.75 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

h1 { font: 300 56px/1.1 'Inter', sans-serif; letter-spacing: -0.01em; }
h2 { font: 300 40px/1.2 'Inter', sans-serif; letter-spacing: -0.01em; }
h3 { font: 400 26px/1.35 'Inter', sans-serif; letter-spacing: 0; }
h4 { font: 600 20px/1.4 'Inter', sans-serif; letter-spacing: 0; }

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

img { max-width: 100%; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--bg-dark); color: #E8ECF4; }
.section-tinted { background: #F0F2F7; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  /* Default: always-visible dark gradient — logo is always white */
  background: linear-gradient(180deg, rgba(13,16,23,0.96) 0%, rgba(13,16,23,0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Logo + links: always white — works on both dark hero and dark nav */
.nav-logo { color: #FFFFFF !important; }
.nav-logo svg path { fill: #FFFFFF !important; }
.nav-links a { color: rgba(255,255,255,0.72) !important; }
.nav-links a:hover,
.nav-links a.active { color: #FFFFFF !important; }
.hamburger span { background: #FFFFFF !important; }

/* Transparent state (at top of hero) — pure gradient, no solid fill */
.nav.transparent {
  background: linear-gradient(180deg, rgba(13,16,23,0.75) 0%, rgba(13,16,23,0.0) 100%) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Scrolled state — solid dark glass bar */
.nav.scrolled {
  background: linear-gradient(180deg, rgba(18,21,31,0.98) 0%, rgba(18,21,31,0.95) 100%) !important;
  border-bottom: 1px solid rgba(168,230,61,0.15) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important;
}

/* CTA button — lime accent always visible on dark nav */
.btn-primary.nav-cta,
.nav .btn-primary {
  background: var(--accent) !important;
  color: #12151F !important;
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font: 500 18px/1 'Inter', sans-serif;
  color: var(--primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.nav-logo svg { flex-shrink: 0; }
.nav-logo svg path { transition: fill 0.3s ease; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta { margin-left: 12px; }

/* Mobile menu */
.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 24px; height: 18px; cursor: pointer; background: none; border: none; padding: 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--primary);
  transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--bg-dark);
  z-index: 200; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font: 500 28px/1 'Inter', sans-serif; color: #E8F0EB;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; font-size: 32px; color: #E8F0EB; cursor: pointer;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #12151F; font-weight: 600;
  border: none; border-radius: 8px;
  padding: 12px 22px; font-size: 14px; font-weight: 500; height: 44px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: #8CC72A; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary); border-radius: 8px;
  padding: 11px 22px; font-size: 14px; font-weight: 500; height: 44px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #E8ECF4;
  border: 1.5px solid rgba(232,236,244,0.45); border-radius: 8px;
  padding: 11px 24px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s; height: 44px; white-space: nowrap;
}
.btn-outline-light:hover { background: rgba(232,236,244,0.1); border-color: rgba(232,236,244,0.8); color: #fff; }
.btn-outline.light { color: #E8F0EB; border-color: rgba(232,240,235,0.5); }
.btn-outline.light:hover { background: rgba(232,240,235,0.1); border-color: #E8F0EB; }

/* ── Cards ── */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,31,46,0.08); }

/* ── Tags ── */
.tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.tag-removal { background: #FFF0E8; color: #C4410A; }
.tag-reduction { background: #EDFAD0; color: #3A6010; }
.tag-avoidance { background: #E8ECF8; color: #2A3A6A; }
.tag-cdr { background: #FEF3CD; color: #92681A; }

/* ── Trust badges ── */
.trust-badges {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(168,230,61,0.12); color: var(--accent);
  border: 1px solid rgba(168,230,61,0.25);
  border-radius: 6px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.badge::before { content: '✓'; font-size: 10px; }

/* ── Stats ── */
.stat-number {
  font-family: 'Inter', sans-serif; font-size: 48px; font-weight: 300;
  color: var(--accent); line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }
.section-dark .stat-label { color: rgba(232,240,235,0.6); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 500;
  margin-bottom: 6px; color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-secondary); color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  appearance: none;
}
.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(76,175,125,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success {
  display: none; text-align: center; padding: 40px 24px;
  background: var(--bg-secondary); border-radius: 12px; border: 1px solid var(--border);
}
.form-success.show { display: block; }
.form-success h3 { color: var(--primary); margin-bottom: 12px; }
.form-success p { color: var(--text-secondary); }
.form-success .check { font-size: 48px; margin-bottom: 16px; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead tr { background: var(--primary); color: #fff; }
thead th { padding: 12px 16px; text-align: left; font-weight: 500; font-family: 'Inter', sans-serif; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody td { padding: 12px 16px; color: var(--text-secondary); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(28,43,26,0.02); }
.table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }

/* ── Section headers ── */
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-secondary); max-width: 640px; }

/* ── Grid layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── Hero ── */
.hero {
  min-height: 620px; display: flex; align-items: center;
  background: var(--bg-dark); position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { color: #E8F0EB; font-size: 64px; margin-bottom: 20px; }
.hero p { font-size: 20px; color: rgba(232,240,235,0.75); margin-bottom: 32px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Particle grid bg */
.particle-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle, rgba(76,175,125,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: bgDrift 40s linear infinite;
}
@keyframes bgDrift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(32px) translateY(32px); }
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 70% 50%, rgba(28,43,26,0.0) 0%, rgba(17,26,20,0.6) 100%);
}

/* ── Page hero (smaller, non-homepage) ── */
.page-hero {
  padding: 72px 0 56px; background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(76,175,125,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #E8F0EB; font-size: 44px; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(232,240,235,0.7); max-width: 640px; }
.page-hero .tag { margin-bottom: 20px; }

/* ── Logo strip ── */
.logo-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap; padding: 32px 0;
}
.logo-badge {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 16px; letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s;
}
.logo-badge:hover { color: var(--primary); border-color: var(--primary); }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  display: flex; gap: 24px; padding-bottom: 32px; position: relative;
}
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
  position: relative; z-index: 1;
}
.timeline-body { padding-top: 8px; }
.timeline-body h4 { margin-bottom: 4px; color: var(--primary); }
.timeline-body p { font-size: 14px; color: var(--text-secondary); }

/* ── Step flow ── */
.step-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.step-flow::before {
  content: ''; position: absolute; top: 28px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 2px; background: var(--border);
}
.step-item { text-align: center; padding: 0 20px; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 22px;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step-item h4 { margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--text-secondary); }

/* ── Disclosure box ── */
.disclosure-box {
  background: #FFFBEB; border: 1px solid #F6E05E;
  border-radius: 8px; padding: 16px 20px;
  font-size: 14px; color: var(--warning);
  margin: 24px 0;
}
.disclosure-box strong { display: block; margin-bottom: 4px; }

/* ── Comparison table ── */
.comparison-table tbody tr:first-child td { font-weight: 600; }
.check-cell { color: var(--success); font-size: 16px; }
.cross-cell { color: var(--text-muted); }

/* ── CTA section ── */
.cta-section {
  text-align: center; padding: 80px 24px;
  background: var(--bg-dark); color: #E8F0EB;
}
.cta-section h2 { color: #E8F0EB; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(232,240,235,0.7); max-width: 560px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--bg-dark); color: rgba(232,240,235,0.6);
  padding: 56px 0 32px; border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand .nav-logo { color: #E8F0EB; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232,240,235,0.4); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px; color: rgba(232,240,235,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-dark); padding-top: 24px;
  font-size: 13px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(232,240,235,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Contact tabs ── */
.contact-tabs { display: flex; gap: 4px; margin-bottom: 32px; flex-wrap: wrap; }
.contact-tab {
  padding: 10px 20px; border: 1px solid var(--border);
  background: var(--bg-secondary); border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.contact-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.contact-panel { display: none; }
.contact-panel.active { display: block; }

/* ── Blog ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card .blog-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.blog-card h3 { font-size: 22px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.blog-card .read-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--accent); margin-top: 16px; }

/* ── Article ── */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 28px; margin: 40px 0 16px; }
.article-body h3 { font-size: 22px; margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; color: var(--text-secondary); line-height: 1.8; }
.article-body ul { margin: 0 0 18px 24px; color: var(--text-secondary); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text-primary); }

/* ── Impact metrics ── */
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sdg-item {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px;
}
.sdg-number { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.sdg-item h4 { font-size: 15px; margin-bottom: 6px; }
.sdg-item p { font-size: 13px; color: var(--text-muted); }

/* ── Pricing disclaimer ── */
.pricing-disclaimer {
  font-size: 12px; color: var(--text-muted); margin-top: 16px;
  padding: 12px; border-left: 3px solid var(--border);
}

/* ── AOS overrides ── */
[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-up"] { transform: translateY(24px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .hero h1 { font-size: 38px; }
  .section { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .step-flow::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .trust-badges { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
