/* EcoPlate AI — Public website (pitch-ready) */
:root {
  --green-950: #004d28;
  --green-dark: #006837;
  --green-mid: #1a8a4a;
  --green-light: #7bc043;
  --green-pale: #eef8e8;
  --green-soft: #f4faf0;
  --slate: #1e293b;
  --slate-mid: #334155;
  --slate-light: #64748b;
  --white: #ffffff;
  --black: #0a0a0a;
  --header-bg: #0a0a0a;
  --bg: #f8faf9;
  --border: #e2ebe4;
  --shadow-sm: 0 4px 16px rgba(0, 104, 55, 0.06);
  --shadow: 0 16px 48px rgba(0, 104, 55, 0.1);
  --shadow-lg: 0 24px 64px rgba(0, 104, 55, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Poppins', system-ui, sans-serif;
  --font-zh: 'Noto Sans TC', 'PingFang TC', sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-mid);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green-mid); }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--slate);
}

.brand:hover { color: var(--slate); }

.brand-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-family: var(--font-zh);
  font-size: 0.72rem;
  color: var(--green-dark);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  color: var(--green-light);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-admin {
  margin-left: 0.5rem;
  padding-left: 0.85rem !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem !important;
}

.nav-portal {
  font-size: 0.82rem !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white) !important;
}

.btn-outline {
  background: var(--white);
  color: var(--green-dark) !important;
  border: 2px solid var(--green-dark);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--green-pale);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

.btn-light {
  background: var(--white);
  color: var(--green-dark) !important;
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ── Hero ── */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(123, 192, 67, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 5% 90%, rgba(0, 104, 55, 0.07), transparent),
    linear-gradient(180deg, var(--white) 0%, var(--green-soft) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  margin: 0.6rem 0 1rem;
  color: var(--slate);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-zh {
  font-family: var(--font-zh);
  font-size: 1.12rem;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-mid);
  margin: 0;
  padding: 0.35rem 0.75rem;
  background: var(--green-pale);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lead {
  font-size: 1.08rem;
  color: var(--slate-light);
  max-width: 48ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-illustration {
  width: 100%;
  max-width: 460px;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
}

.hero-stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.mini-stat {
  flex: 1;
  min-width: 120px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.mini-stat span {
  font-size: 0.75rem;
  color: var(--slate-light);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--slate-light);
  font-weight: 500;
}

.trust-item img {
  width: 28px;
  height: 28px;
}

/* ── Sections ── */
.section { padding: 4.5rem 0; }

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2,
.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  color: var(--slate);
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--slate-light);
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
}

.section-zh,
.text-zh {
  font-family: var(--font-zh);
  color: var(--green-dark);
}

.section-zh { margin: 0; font-weight: 500; }

.page-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--white), var(--bg));
  border-bottom: 1px solid var(--border);
}

.page-hero .lead { max-width: 60ch; }

/* ── Icon cards ── */
.card-grid {
  display: grid;
  gap: 1.35rem;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--slate-light);
  font-size: 0.95rem;
}

.card-highlight {
  background: linear-gradient(145deg, var(--green-pale), var(--white));
  border-color: rgba(0, 104, 55, 0.15);
}

/* ── Split / features ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--green-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.feature-list li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-list.compact li {
  background: transparent;
  border: none;
  padding: 0.35rem 0;
}

.feature-list.compact li::before {
  content: "✓";
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── WhatsApp demo ── */
.message-demo { display: flex; justify-content: center; }

.phone-frame {
  width: min(300px, 100%);
  background: linear-gradient(160deg, #075e54, #128c7e);
  border-radius: 28px;
  padding: 0.65rem;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #ece5dd;
  border-radius: 22px;
  padding: 1rem 0.85rem;
  min-height: 280px;
}

.phone-notch {
  width: 48px;
  height: 5px;
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
  margin: 0 auto 0.75rem;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.75rem;
}

.phone-header img { height: 28px; width: auto; object-fit: contain; }

.phone-header span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

.msg {
  max-width: 88%;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.msg.inbound {
  background: var(--white);
  margin-right: auto;
  border-bottom-left-radius: 2px;
}

.msg.inbound.msg-photo {
  padding: 0.25rem;
  background: var(--white);
  overflow: hidden;
}

.chat-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.msg.outbound {
  background: #dcf8c6;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--slate-light);
  text-align: right;
  margin-top: -0.35rem;
  margin-bottom: 0.5rem;
  padding-right: 0.5rem;
}

/* ── Steps ── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.steps li:hover { border-color: var(--green-light); }

.step-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.step-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--slate);
}

.steps p {
  margin: 0;
  color: var(--slate-light);
  font-size: 0.93rem;
}

code {
  background: var(--green-pale);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--green-950);
}

/* ── Metrics ── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.15rem;
}

.metric {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.metric:hover { transform: translateY(-2px); }

.metric-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.metric span {
  font-size: 0.86rem;
  color: var(--slate-light);
}

/* ── Tech strip ── */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-pill {
  padding: 0.4rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.02em;
}

/* ── Contact ── */
.section-contact { padding-bottom: 5rem; }

.contact-box {
  background: linear-gradient(135deg, var(--green-950), var(--green-dark) 40%, var(--green-mid));
  color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(123, 192, 67, 0.15);
  border-radius: 50%;
}

.contact-box h2 {
  margin-top: 0;
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-box p {
  opacity: 0.92;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.contact-box .section-zh {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.contact-box .btn { position: relative; margin-top: 0.5rem; }

/* ── About page ── */
.info-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.65rem 1.5rem;
}

.info-list dt {
  font-weight: 600;
  color: var(--slate-light);
  font-size: 0.88rem;
}

.info-list dd { margin: 0; }

.founder-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}

.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

.subtitle {
  color: var(--slate-light);
  margin-top: -0.25rem;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--border);
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-done {
  background: var(--green-pale);
  color: var(--green-dark);
}

.badge-progress {
  background: #fef3c7;
  color: #92400e;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-light);
}

.timeline-item.done::before { background: var(--green-dark); box-shadow: 0 0 0 2px var(--green-dark); }

/* ── Prose ── */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; color: var(--green-dark); }

/* ── Footer ── */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }

.footer-logo { height: 64px; width: auto; object-fit: contain; }

.about-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-legal {
  margin: 0.1rem 0;
  font-family: var(--font-zh);
  font-size: 0.92rem;
}

.footer-meta {
  font-size: 0.82rem;
  opacity: 0.65;
  margin-top: 0.5rem;
}

.site-footer h4 {
  color: var(--white);
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.45rem; }

.footer-links a,
.footer-email {
  color: var(--green-light);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-email:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0 1.75rem;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .founder-block,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .nav.is-open { display: flex; }

  .nav a { width: 100%; text-align: center; padding: 0.75rem; }

  .nav-admin { border-left: none; margin-left: 0; }

  .site-header { position: relative; }

  .hero-visual { order: -1; }

  .hero-illustration { max-width: 340px; }

  .header-inner { position: relative; }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 0 3rem; }
  .section { padding: 3rem 0; }
  .contact-box { padding: 2rem 1.5rem; }
}
