/* EcoPlate AI — ecoplate.ai one-page site */
:root {
  --green-dark: #006837;
  --green-mid: #1a8a4a;
  --green-light: #7bc043;
  --green-pale: #eef8e8;
  --slate: #2c3e50;
  --slate-light: #5a6c7d;
  --text-muted: #6b7c8a;
  --white: #ffffff;
  --black: #0a0a0a;
  --header-bg: #0a0a0a;
  --bg: #f8faf8;
  --radius: 16px;
  --shadow: 0 16px 48px rgba(0, 104, 55, 0.1);
  --font: 'Poppins', system-ui, sans-serif;
  --font-zh: 'Noto Sans TC', 'PingFang TC', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* ── Header (dark — matches logo background) ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.brand-logo {
  /* Crop to logo mark + wordmark, hide excess black padding */
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover { color: var(--green-light); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white) !important;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,104,55,0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark) !important;
  border: 2px solid var(--green-dark);
}

.btn-ghost:hover { background: var(--green-pale); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--white);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(123,192,67,0.15), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: var(--slate);
  max-width: 16ch;
}

.hero-zh {
  font-family: var(--font-zh);
  font-size: 1.2rem;
  color: var(--green-dark);
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Stats ── */
.stats {
  background: var(--green-dark);
  color: var(--white);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--slate);
  color: rgba(255,255,255,0.9);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-dark a { color: var(--green-light); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: 0.5rem;
}

.section-label.light { color: var(--green-light); }

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 0.35rem;
}

.section-zh {
  font-family: var(--font-zh);
  color: var(--green-dark);
  margin: 0 0 2rem;
}

.section-dark .section-zh { color: var(--green-light); }

.about-zh,
.about-zh-block {
  font-family: var(--font-zh);
}

.about-zh-block {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.section-dark .about-zh-block { color: rgba(255,255,255,0.7); }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid #e5ebe6;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Chat demo ── */
.demo-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid #e5ebe6;
  max-width: 420px;
}

.demo-box h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--slate-light);
}

.chat {
  background: #ece5dd;
  border-radius: 12px;
  padding: 1rem;
}

.bubble {
  max-width: 90%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.bubble.in { background: var(--white); margin-right: auto; }
.bubble.out { background: #dcf8c6; margin-left: auto; }

.platform-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-zh {
  font-family: var(--font-zh);
  font-size: 1.15rem;
  color: var(--green-light);
  margin: -0.25rem 0 1rem;
}

.info-table {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.info-table dt {
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}

.info-table dd { margin: 0; }

.vision-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.vision-box h3 {
  font-size: 1rem;
  margin: 1rem 0 0.35rem;
  color: var(--green-light);
}

.vision-box h3:first-child { margin-top: 0; }

.vision-box p { margin: 0 0 0.5rem; font-size: 0.95rem; }

.founder-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.founder-label {
  font-size: 0.82rem;
  color: var(--green-light);
  margin: 0 0 0.25rem;
  font-family: var(--font-zh);
}

.founder-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.founder-card p {
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  color: rgba(255,255,255,0.85);
}

/* ── Contact ── */
.contact-wrap { text-align: center; }

.contact-intro {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e5ebe6;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-link {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card p { margin: 0; font-weight: 600; }

/* ── Footer ── */
.footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 1rem;
}

.footer-text p { margin: 0.25rem 0; font-size: 0.9rem; }

.footer-text a { color: var(--green-light); }

.copyright {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.82rem; }
  .brand-logo { height: 44px; }
  .hero { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .nav a:nth-child(2) { display: none; }
}
