/* ============================================
   ECOSTACKAI — PROFESSIONAL WEBSITE STYLES
   ============================================ */

:root {
  --bg: #0a0c0f;
  --bg2: #0f1318;
  --bg3: #141920;
  --surface: #1a2030;
  --surface2: #1f2840;
  --border: rgba(255,255,255,0.07);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --green-glow: rgba(34,197,94,0.25);
  --red: #ef4444;
  --amber: #f59e0b;
  --white: #f8fafc;
  --white-dim: rgba(248,250,252,0.65);
  --white-faint: rgba(248,250,252,0.2);
  --accent: #4ade80;
  --accent2: #86efac;
  --grad: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #4ade80 100%);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- UTILITY ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--green); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.green-text { color: var(--green); }
.red-text { color: var(--red); font-weight: 600; }
.section { padding: 100px 0; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* SECTION LABEL */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--white);
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(10,12,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 32px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { color: var(--green); font-size: 1.2rem; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
  overflow: visible;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: pulse 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: #16a34a; top: -100px; left: -100px; }
.orb2 { width: 400px; height: 400px; background: #065f46; top: 40%; right: -100px; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: #14532d; bottom: 0; left: 40%; animation-delay: -5s; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--accent2);
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--white-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 36px var(--green-glow); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.full-width { width: 100%; }

.hero-stats { display: flex; align-items: center; gap: 28px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--white-dim); letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* HERO VISUAL */
.hero-visual { flex-shrink: 0; }
.phone-card {
  width: 280px;
  background: var(--surface);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 60px rgba(34,197,94,0.15), var(--shadow);
  position: relative;
  overflow: hidden;
}
.phone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
}
.phone-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem; color: var(--white-dim);
}
.phone-dot { width: 8px; height: 8px; border-radius: 50%; }
.phone-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.qr-box { display: flex; justify-content: center; margin-bottom: 16px; }
.qr-inner {
  width: 120px; height: 120px;
  border: 2px solid rgba(34,197,94,0.4);
  border-radius: 10px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.04);
}
.qr-pattern {
  position: absolute;
  inset: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(34,197,94,0.3) 0px, rgba(34,197,94,0.3) 2px, transparent 2px, transparent 8px),
    repeating-linear-gradient(90deg, rgba(34,197,94,0.3) 0px, rgba(34,197,94,0.3) 2px, transparent 2px, transparent 8px);
}
.qr-center {
  position: relative;
  font-size: 1.8rem;
  color: var(--green);
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 6px;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.status-badge { font-size: 0.72rem; font-weight: 600; color: var(--green); }
.status-badge.active { animation: blink 2s ease-in-out infinite; }
.status-date { font-size: 0.68rem; color: var(--white-dim); }
.phone-bar { background: var(--bg); border-radius: 100px; height: 5px; overflow: hidden; margin-bottom: 10px; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 100px; animation: fillup 2s ease forwards; }
@keyframes fillup { from{width:0} }
.phone-footer { font-size: 0.68rem; color: var(--white-dim); text-align: center; }

/* ============================================
   PROBLEM
   ============================================ */
.problem-section { background: var(--bg2); }
.problem-section .section-label,
.problem-section .section-title { text-align: center; margin-left: auto; margin-right: auto; display: block; }
.problem-section .section-title { margin-bottom: 48px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.problem-card:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-4px); }
.problem-icon { font-size: 2.2rem; margin-bottom: 14px; }
.problem-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.problem-card p { color: var(--white-dim); font-size: 0.95rem; line-height: 1.65; }

/* ============================================
   SOLUTION
   ============================================ */
.solution-section { background: var(--bg); }
.sol-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sol-desc { color: var(--white-dim); font-size: 1rem; margin-bottom: 36px; line-height: 1.7; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: border-color 0.3s;
}
.feature:hover { border-color: rgba(34,197,94,0.3); }
.feat-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.feature h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.55; }

/* Stamp Card */
.stamp-card {
  background: var(--surface2);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(34,197,94,0.1);
  position: relative;
}
.stamp-header {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stamp-verified { font-size: 0.72rem; }
.stamp-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.stamp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.stamp-row:last-child { border-bottom: none; }
.stamp-row span:first-child { color: var(--white-dim); }
.stamp-row span:last-child { font-weight: 500; }
.stamp-seal {
  display: flex; justify-content: center;
  padding: 20px;
}
.seal-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  text-align: center;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section { background: var(--bg2); }
.how-section .section-label,
.how-section .section-title { text-align: center; display: block; }
.how-section .section-title { margin-bottom: 56px; }

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pipe-step {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 50%;
  width: 140px; height: 140px;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}
.pipe-step:hover {
  border-color: var(--green);
  box-shadow: 0 0 24px var(--green-glow);
}
.pipe-icon { font-size: 1.8rem; }
.pipe-label { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 1.2; padding: 0 10px; }
.pipe-sub { font-size: 0.62rem; color: var(--white-dim); text-align: center; padding: 0 8px; }
.pipe-arrow {
  font-size: 1.4rem;
  color: var(--green);
  padding: 0 12px;
  flex-shrink: 0;
}
.pipeline-caption { text-align: center; color: var(--white-dim); font-size: 0.9rem; margin-bottom: 60px; font-style: italic; }

.steps-detail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.3s;
}
.step-card:hover { border-color: rgba(34,197,94,0.3); }
.step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(34,197,94,0.2);
  line-height: 1;
  margin-bottom: 10px;
}
.step-card h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green);
}
.step-card p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.6; }

/* ============================================
   VISION
   ============================================ */
.vision-section { background: var(--bg); }
.vision-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.vision-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.vision-desc { color: var(--white-dim); font-size: 1rem; margin-bottom: 28px; line-height: 1.7; }
.vision-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.8rem;
  color: var(--white-dim);
  transition: border-color 0.3s, color 0.3s;
}
.tag:hover { border-color: var(--green); color: var(--green); }
.vision-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color 0.3s;
}
.metric-card:hover { border-color: rgba(34,197,94,0.35); }
.metric-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}
.metric-label { font-size: 0.78rem; color: var(--white-dim); line-height: 1.4; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--bg2); }
.cta-box {
  background: var(--surface);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 24px;
  padding: 64px 48px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 80px rgba(34,197,94,0.1);
}
.cta-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.15), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-sub { color: var(--white-dim); font-size: 0.95rem; margin-bottom: 32px; }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.cta-form input,
.cta-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.3); }
.cta-form select option { background: var(--bg2); color: var(--white); }
.cta-form input:focus,
.cta-form select:focus { border-color: var(--green); }
.form-note { margin-top: 12px; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.footer-tagline { color: var(--white-dim); font-size: 0.88rem; margin-bottom: 10px; }
.footer-legal { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(34,197,94,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .sol-layout,
  .vision-layout { grid-template-columns: 1fr; gap: 40px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-detail { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .pipeline { gap: 0; }
  .pipe-step { width: 100px; height: 100px; }
  .pipe-label { font-size: 0.65rem; }
  .steps-detail { grid-template-columns: 1fr; }
  .vision-metrics { grid-template-columns: 1fr; }
}
