/* ===========================================================
   Inerday — shared site styles
   Design language pulled from the app (lib/theme/app_theme.dart):
   warm cream "day" world + deep-navy Momo "night" world.
   =========================================================== */

:root {
  /* Day world */
  --bg:           #FFFFFF;
  --nav-bg:       rgba(255,255,255,0.82);
  --cream:        #F4F2EC;
  --cream-deep:   #F1EEE6;
  --card:         #FFFFFF;
  --ink:          #1E1E1E;
  --ink-soft:     #85857F;
  --border:       #E8E6E0;

  /* Forest green (primary accent) */
  --green:        #88B665;
  --green-deep:   #6B9E4A;
  --green-light:  #CBE6B0;

  /* Momo / night world */
  --navy:         #0F172A;
  --navy-deep:    #0A0E1A;
  --momo:         #E8A44A;
  --momo-glow:    #F4A968;
  --gold:         #FFE4A8;
  --ink-white:    #F5F2EA;

  /* Energy colors (from app) */
  --boost:        #7FAE8A;
  --neutral:      #AFC6DD;
  --drain:        #C97272;

  --radius:       24px;
  --radius-sm:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:    0 18px 50px rgba(30,30,30,0.10);
  --maxw:         1080px;
}

/* ---------- Dark theme (开灯/关灯) ---------- */
[data-theme="dark"] {
  --bg:           #0A0E1A;
  --nav-bg:       rgba(10,14,26,0.82);
  --cream:        #141B2E;
  --cream-deep:   #10172A;
  --card:         #141B2E;
  --ink:          #F5F2EA;
  --ink-soft:     rgba(245,242,234,0.62);
  --border:       rgba(245,242,234,0.12);
  --green-deep:   #9BCB7A;
  --shadow:       0 1px 3px rgba(0,0,0,0.40);
  --shadow-lg:    0 18px 50px rgba(0,0,0,0.55);
}
html { transition: background .3s ease; }
body { transition: background .3s ease, color .3s ease; }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
}
/* nav: horizontal lockup = sprout icon + wordmark in site font */
.logo-mark { height: 30px; width: auto; display: block; }
.logo-word { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; color: #6F9A3E; line-height: 1; }
/* footer: the full original art logo */
.logo-img { height: 58px; width: auto; display: block; }
@media (max-width: 640px) {
  .logo-mark { height: 26px; } .logo-word { font-size: 19px; }
  .logo-img { height: 48px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .2s;
}
.nav-links a.nav-link:hover { color: var(--ink); }

/* ---------- Nav controls (lang + theme) ---------- */
.nav-ctrls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 11px;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn [data-theme-icon] { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(136,182,101,0.35); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-deep);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
}
h1 .accent  { color: var(--green); }
h1 .accent-o { color: var(--momo); }
h2 {
  font-size: clamp(30px, 4.5vw, 46px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.2px;
}
h2 .accent { color: var(--green); }
h2 .accent-o { color: var(--momo); }
.lead {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft);
  line-height: 1.6; font-weight: 400;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); padding: 56px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
  margin-bottom: 40px;
}
.footer .logo { font-size: 24px; }
.footer-tag { color: var(--ink-soft); font-size: 14px; margin-top: 10px; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--ink); text-decoration: none;
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

@media (max-width: 640px) {
  .section-pad { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a.nav-link { display: none; }
  .nav-links a.nav-link.always { display: inline; }
}
