/* ---------- Base ---------- */
:root {
  --green-dark: #1f7a2e;
  --green-mid: #2e8b3d;
  --green-bright: #86e29b;
  --green-pale: #e7fbec;
  --amber: #f5a623;
  --amber-dark: #e0940f;
  --ink: #1c1f1e;
  --ink-soft: #4b5257;
  --muted: #6b7280;
  --bg-hero: #eef1fa;
  --card-border: #e7e2da;
  --white: #ffffff;
  --footer-bg: #23262b;
  --page-bg: #ffffff;
  --header-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-soft: #f4f7fb;
  --shadow-soft: rgba(20, 20, 40, 0.04);
}

body.dark-mode {
  --green-dark: #9ae4a4;
  --green-mid: #7ad38c;
  --green-bright: #3c7d52;
  --green-pale: rgba(154, 228, 164, 0.12);
  --amber: #f5b649;
  --amber-dark: #f0a63b;
  --ink: #e9edf3;
  --ink-soft: #c9d3e2;
  --muted: #a2adbf;
  --bg-hero: #121212;
  --card-border: #303030;
  --white: #1b1b1b;
  --footer-bg: #050505;
  --page-bg: #000000;
  --header-bg: #111111;
  --panel-bg: #181818;
  --panel-soft: #111111;
  --shadow-soft: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.btn {
  display: inline-block;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid #ececec;
  background: var(--header-bg);
}

body.dark-mode .site-header {
  border-bottom-color: rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  text-align: center;
}

.lux-word {
  color: var(--amber);
}

.theme-toggle {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.35);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  transition: transform 0.2s ease;
}

body.dark-mode .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-hero);
  padding: 90px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bright);
  color: #0d3d16;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge-icon { width: 14px; height: 14px; }

.hero-title {
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: #8a6d0f;
  background: linear-gradient(180deg, transparent 60%, rgba(245,166,35,0.35) 60%);
  padding: 0 2px;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}

.notify-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.input-wrap {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

#email-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: 8px;
  border: 1px solid #d9dce3;
  font-size: 0.95rem;
  background: var(--white);
  outline: none;
}
#email-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
}

.btn-notify {
  background: var(--amber);
  color: #3a2a00;
  padding: 14px 26px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-notify:hover { background: var(--amber-dark); }
.btn-notify:disabled { opacity: 0.7; cursor: default; transform: none; }

.notify-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}
.notify-note.success {
  color: var(--green-dark);
  font-weight: 600;
}
.notify-note.error {
  color: #c0392b;
  font-weight: 600;
}

/* ---------- Hero visual column ---------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.placeholder-box {
  background: linear-gradient(160deg, #edf2f7 0%, #dfe7f4 100%);
  border: 1px solid #d7dae2;
  border-radius: 16px;
  min-height: 230px;
  overflow: hidden;
  padding: 0;
}

body.dark-mode .placeholder-box {
  background: linear-gradient(160deg, #172234 0%, #101a2a 100%);
  border-color: var(--card-border);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card {
  border-radius: 16px;
  padding: 26px;
}

.card-sustain {
  background: linear-gradient(160deg, #9ff0ae 0%, #7ee596 100%);
  color: #0d3d16;
  position: relative;
  overflow: hidden;
}

.sustain-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: #0d3d16;
}

.card-sustain h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 700;
  color: #144a1e;
}

.card-sustain p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #175226;
  max-width: 180px;
}

.leaf-deco {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 110px;
  height: 110px;
  opacity: 0.25;
}
.leaf-deco svg { width: 100%; height: 100%; color: #144a1e; }

.card-infra {
  background: var(--panel-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px var(--shadow-soft);
}

.infra-head {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.infra-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.infra-icon svg { width: 20px; height: 20px; color: #3a2a00; }

.infra-head h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.infra-head p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: #eceef3;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green-mid);
  border-radius: 999px;
  transition: width 1s ease;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 90px 0;
  background: var(--white);
  text-align: center;
}

.pillars h2 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.pillars-sub {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 auto 50px;
  max-width: 520px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.pillar-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px;
  background: var(--panel-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover {
  box-shadow: 0 12px 24px rgba(20,20,40,0.06);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eceef3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 20px; height: 20px; color: var(--ink-soft); }

.pillar-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.pillar-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #cfd2d8;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.footer-brand {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand .lux-word {
  color: var(--amber);
}

.footer-links {
  display: flex;
  gap: 18px 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  color: #cfd2d8;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.85rem;
  color: #9a9ea6;
  margin: 0;
}

.footer-copy-secondary {
  margin-top: 2px;
}

.footer-copy-year {
  margin-top: 2px;
  color: #c7cbd2;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: #d3d8dc;
  letter-spacing: 0.01em;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.heart {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  color: #ff6b6b;
  transform: translateY(-1px);
  text-shadow: 0 0 0 currentColor;
}

.zyma-brand {
  color: #f6d06d;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.zyma-brand:hover,
.zyma-brand:focus-visible {
  color: #fff1b8;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 960px) {
  .hero { padding: 60px 0 70px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title { font-size: 2.8rem; }

  .hero-desc { max-width: none; }

  .pillars { padding: 70px 0; }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .header-inner {
    padding-top: 18px;
    padding-bottom: 18px;
    justify-content: space-between;
    gap: 12px;
  }

  .logo {
    font-size: 1.15rem;
    line-height: 1.3;
    text-align: left;
    flex: 1;
  }

  .theme-toggle {
    position: static;
    padding: 6px 10px;
    flex-shrink: 0;
  }

  .theme-toggle-label {
    font-size: 0.72rem;
  }

  .theme-toggle-track {
    width: 36px;
    height: 18px;
  }

  .theme-toggle-thumb {
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
  }

  body.dark-mode .theme-toggle-thumb {
    transform: translateX(17px);
  }

  .hero { padding: 44px 0 56px; }

  .badge {
    font-size: 0.78rem;
    padding: 7px 14px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.18;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 26px;
  }

  .notify-form {
    flex-direction: column;
    gap: 10px;
    max-width: none;
  }

  #email-input { padding: 13px 16px 13px 42px; }

  .btn-notify {
    width: 100%;
    padding: 14px 20px;
  }

  .notify-note { text-align: center; }

  /* Stack the visual column: placeholder, sustainability card, infra card */
  .visual-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .placeholder-box { min-height: 160px; }

  .card { padding: 22px; }

  .card-sustain p { max-width: none; }

  .infra-head { gap: 14px; }
  .infra-icon { width: 40px; height: 40px; }

  .pillars { padding: 56px 0; }
  .pillars h2 { font-size: 1.6rem; }
  .pillars-sub {
    font-size: 0.92rem;
    margin-bottom: 34px;
    padding: 0 8px;
  }

  .pillar-card { padding: 24px; }

  .site-footer { padding: 28px 0; text-align: center; }
  .footer-links {
    gap: 14px 22px;
    font-size: 0.88rem;
  }
  .footer-copy { font-size: 0.8rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 1.8rem; }
  .badge { font-size: 0.72rem; }
}
