/* ===================================================================
   Future Campus Lab — 未來綠色建築師計劃 Junior Green Architect Programme
   Landing page stylesheet
   =================================================================== */

:root {
  --green-900: #0f3d28;
  --green-800: #14492f;
  --green-700: #1b5e3f;
  --green-600: #246a48;
  --green-500: #2e8b57;
  --leaf: #7cb342;
  --leaf-600: #689f38;
  --leaf-light: #aed581;
  --cream: #f4f8f1;
  --cream-2: #eaf2e4;
  --ink: #17241d;
  --muted: #5c6b62;
  --line: #e0e8da;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 61, 40, .06);
  --shadow: 0 10px 30px rgba(15, 61, 40, .10);
  --shadow-lg: 0 24px 60px rgba(15, 61, 40, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-800);
  letter-spacing: -.01em;
}
.section-desc { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

h3 { font-weight: 700; color: var(--green-800); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 179, 66, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(124, 179, 66, .5); background: var(--leaf-600); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf-600); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

.tag {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--cream-2);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ===================================================================
   NAV
   =================================================================== */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
#nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-badge {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--green-700);
  border-radius: 10px;
  font-size: 1.1rem;
}
.brand-name { color: var(--green-800); font-size: 1.02rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: .94rem; font-weight: 600; color: var(--muted);
  padding: 8px 13px; border-radius: 9px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green-700); background: var(--cream); }
.nav-cta {
  background: var(--green-700) !important;
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-800) !important; }
.nav-toggle {
  display: none;
  font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--green-800);
  line-height: 1;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
  background: linear-gradient(165deg, #f3f9ef 0%, #e7f1e0 55%, #dcebd3 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(124, 179, 66, .22), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(27, 94, 63, .14), transparent 46%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-700);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -.02em;
  color: var(--green-900);
}
.hero-sub-en {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600; color: var(--leaf-600); margin-top: 8px; letter-spacing: .01em;
}
.hero-lead { font-size: 1.18rem; color: var(--ink); margin-top: 22px; }
.hero-lead strong { color: var(--green-700); }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.pill {
  font-weight: 700; font-size: .95rem; color: var(--green-800);
  background: #fff; border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-funding {
  margin-top: 26px; font-size: .95rem; font-weight: 600; color: var(--green-700);
  background: rgba(124, 179, 66, .12);
  border-left: 3px solid var(--leaf);
  padding: 12px 18px; border-radius: 10px; display: inline-block;
}
.hero-art { position: relative; }
.hero-art img {
  border-radius: 24px; box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; font-size: 1.8rem; color: var(--green-700);
  width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: var(--shadow-sm);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===================================================================
   CARDS (Why / generic grids)
   =================================================================== */
.card-grid { display: grid; gap: 26px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.quote {
  max-width: 820px; margin: 0 auto 48px; text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; line-height: 1.45;
  color: var(--green-800);
}
.quote cite {
  display: block; margin-top: 14px; font-size: 1rem; font-weight: 500;
  font-style: italic; color: var(--muted);
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; }
.card-en { font-size: .88rem; color: var(--leaf-600); font-weight: 600; margin: 2px 0 16px; }
.card ul li {
  position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--muted); font-size: .96rem;
}
.card ul li::before {
  content: "›"; position: absolute; left: 4px; top: -1px;
  color: var(--leaf); font-weight: 800;
}

/* ===================================================================
   OVERVIEW — pillars + cycle
   =================================================================== */
.pillar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.pillar-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pillar-card:hover .pillar-art img { transform: scale(1.05); }
.pillar-card h3 { font-size: 1.35rem; margin: 22px 0 6px; }
.pillar-card h3 span { display: block; font-size: .9rem; color: var(--leaf-600); font-weight: 600; }
.pillar-card p { color: var(--muted); padding: 0 24px 28px; }

.cycle { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 36px; }
.cycle-box {
  background: var(--green-700); color: #fff; border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow);
}
.cycle-box:last-child { background: var(--green-800); }
.cycle-box h4 { font-size: 1.1rem; margin-bottom: 16px; color: #fff; }
.cycle-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cycle-flow span {
  background: rgba(255, 255, 255, .14); padding: 8px 16px; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
}
.cycle-flow i { color: var(--leaf-light); font-style: normal; font-weight: 800; }
.cycle-box p { color: rgba(255, 255, 255, .9); font-size: 1.02rem; }

/* ===================================================================
   DETAILS
   =================================================================== */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.detail {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.detail.highlight { background: linear-gradient(160deg, var(--green-700), var(--green-600)); border-color: transparent; }
.detail.highlight h3, .detail.highlight p { color: #fff; }
.detail.highlight small { color: rgba(255, 255, 255, .85); }
.d-ico {
  font-size: 1.7rem; flex-shrink: 0; line-height: 1.4;
}
.detail h3 { font-size: 1.08rem; margin-bottom: 4px; }
.detail p { color: var(--muted); font-size: .98rem; }
.detail small { color: var(--muted); font-size: .85rem; }

/* ===================================================================
   3.5 DAYS — tabs
   =================================================================== */
.day-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px;
}
.day-tab {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: all .25s var(--ease); font-family: inherit;
}
.day-tab b { font-size: 1.05rem; color: var(--green-800); }
.day-tab span { font-size: .88rem; color: var(--muted); }
.day-tab:hover { border-color: var(--leaf-light); transform: translateY(-3px); }
.day-tab.active { background: var(--green-700); border-color: var(--green-700); box-shadow: var(--shadow); }
.day-tab.active b, .day-tab.active span { color: #fff; }

.day-panel { display: none; }
.day-panel.active {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
  animation: fade .5s var(--ease);
}
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.day-art img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.day-badge {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  color: var(--leaf-600); background: var(--cream-2); padding: 5px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.day-body h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.day-en { color: var(--leaf-600); font-weight: 600; margin: 4px 0 22px; }
.session {
  border-left: 3px solid var(--leaf-light); padding-left: 20px; margin-bottom: 22px;
}
.session h4 { font-size: 1.05rem; color: var(--green-700); margin-bottom: 8px; }
.session-lead { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.session ul li {
  position: relative; padding-left: 20px; color: var(--muted); margin-bottom: 6px; font-size: .96rem;
}
.session ul li::before { content: "•"; position: absolute; left: 4px; color: var(--leaf); font-weight: 800; }

/* ===================================================================
   PLANS
   =================================================================== */
.plans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; align-items: start; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--leaf); box-shadow: var(--shadow); }
.ribbon {
  position: absolute; top: -14px; right: 28px;
  background: var(--leaf); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 6px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(124, 179, 66, .4);
}
.plan-head h3 { font-size: 1.5rem; }
.plan-en { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.plan-price {
  margin: 22px 0; padding-bottom: 22px; border-bottom: 1px dashed var(--line);
}
.price { font-size: 2.6rem; font-weight: 900; color: var(--green-800); letter-spacing: -.02em; }
.price em { font-size: 1.2rem; font-weight: 700; font-style: normal; color: var(--muted); margin-right: 4px; }
.plan-price small { display: block; color: var(--muted); margin-top: 6px; font-size: .95rem; }
.plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.plan-cols h4 { font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-600); margin-bottom: 14px; }
.cost li, .incl li { font-size: .92rem; color: var(--muted); margin-bottom: 10px; line-height: 1.45; }
.cost li { display: flex; justify-content: space-between; gap: 10px; }
.cost li b { color: var(--green-800); white-space: nowrap; }
.cost li.total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px;
  font-weight: 700; color: var(--ink);
}
.cost li.total b { font-size: 1.1rem; }
.incl li { position: relative; padding-left: 24px; }
.incl li::before { content: "✓"; position: absolute; left: 2px; color: var(--leaf-600); font-weight: 800; }
.plan-note { margin: 6px 0 22px; color: var(--muted); }
.plan-note b { color: var(--green-700); }
.options { display: grid; gap: 18px; }
.option {
  display: flex; gap: 18px; align-items: center;
  background: var(--cream); border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--line);
}
.option img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.opt-tag {
  display: inline-block; font-size: .78rem; font-weight: 700; color: #fff;
  background: var(--leaf-600); padding: 3px 12px; border-radius: 999px; margin-bottom: 8px;
}
.option h4 { font-size: 1.08rem; color: var(--green-800); margin-bottom: 6px; }
.option p { font-size: .92rem; color: var(--muted); }

/* ===================================================================
   BENEFITS
   =================================================================== */
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.b-ico { font-size: 2rem; display: block; margin-bottom: 16px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: .95rem; }

.longterm {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
  margin-top: 48px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.lt-img { height: 100%; }
.lt-img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.lt-body { padding: 40px 40px 40px 8px; }
.lt-tag {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--leaf-600);
  background: var(--cream-2); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.lt-body h3 { font-size: 1.6rem; margin-bottom: 22px; }
.lt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.lt-cols h4 { font-size: 1.05rem; color: var(--green-700); margin-bottom: 8px; }
.lt-cols p { color: var(--muted); font-size: .94rem; }
.lt-quote {
  grid-column: 1 / -1; margin-top: 22px; font-size: 1.1rem; font-weight: 700;
  color: var(--green-800); border-top: 1px solid var(--line); padding-top: 22px;
}

/* ===================================================================
   FUNDING
   =================================================================== */
.funding-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.funding-lead { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.funding-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.fstat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.fstat b { display: block; font-size: 1.5rem; font-weight: 900; color: var(--green-700); }
.fstat span { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.funding-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* ===================================================================
   REGISTRATION STEPS
   =================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px;
  max-width: 920px; margin: 0 auto; counter-reset: step;
}
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.step-no {
  flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-weight: 800; border-radius: 12px; font-size: 1.1rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ===================================================================
   CONTACT / CTA
   =================================================================== */
.contact {
  background: linear-gradient(160deg, var(--green-800), var(--green-700) 60%, var(--green-600));
  color: #fff; padding: 96px 0 0;
}
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; padding-bottom: 80px; }
.contact-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.contact-body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.15; }
.contact-tagline { font-size: 1.2rem; font-weight: 700; margin: 18px 0 30px; color: var(--leaf-light); }
.contact-tagline span { display: block; font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .85); margin-top: 6px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.clink {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; transition: background .25s, transform .25s;
}
.clink:hover { background: rgba(255, 255, 255, .2); transform: translateX(4px); }

.site-footer {
  text-align: center; padding: 32px 24px; border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
}
.site-footer .small { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-top: 6px; }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: var(--leaf); color: #fff; font-weight: 700; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 10px 28px rgba(124, 179, 66, .5);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s;
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--leaf-600); }

/* ===================================================================
   AI 能源實驗室 — live dashboard + game (dark section)
   =================================================================== */
.dash-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(124, 179, 66, .18), transparent 40%),
    linear-gradient(165deg, #0f3d28 0%, #14492f 55%, #0d3322 100%);
  color: #fff;
}
.dash-section .kicker { color: var(--leaf-light); }
.dash-section .section-head h2 { color: #fff; }
.dash-section .section-desc { color: rgba(255, 255, 255, .8); }
.dash-section .section-desc strong { color: var(--leaf-light); }

.dash-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; }

.dash-live, .dash-game {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}

/* ---- live panel ---- */
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-status { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(124, 179, 66, .7); animation: pulse 1.8s infinite; }
.dot.off { background: #e57373; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 179, 66, .6); } 70% { box-shadow: 0 0 0 10px rgba(124, 179, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 179, 66, 0); } }
.dash-pick { font-size: .85rem; color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: 8px; }
.dash-pick select {
  font-family: inherit; font-size: .9rem; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px; padding: 7px 10px; cursor: pointer;
}
.dash-pick select option { color: #17241d; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.tile {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm); padding: 16px 12px; text-align: center;
}
.t-label { display: block; font-size: .78rem; color: rgba(255, 255, 255, .65); margin-bottom: 6px; }
.tile b { font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1; }
.t-unit { display: block; font-size: .72rem; color: var(--leaf-light); margin-top: 5px; }

.ai-derived { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.gauge-ring {
  --p: 0;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--leaf) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
  position: relative; transition: background .6s var(--ease);
}
.gauge-ring::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #103a26;
}
.gauge-ring span { position: relative; font-size: 1.6rem; font-weight: 900; color: #fff; }
.gauge-ring small { position: relative; display: block; font-size: .72rem; color: rgba(255, 255, 255, .7); margin-top: 2px; }
.ai-readout { display: flex; flex-direction: column; gap: 10px; }
.ar-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .75); border-bottom: 1px dashed rgba(255, 255, 255, .14); padding-bottom: 8px; }
.ar-row b { color: var(--leaf-light); font-size: 1.05rem; }
.ai-tip { background: rgba(124, 179, 66, .14); border-radius: 12px; padding: 12px 14px; }
.ai-badge { display: inline-block; font-size: .76rem; font-weight: 700; color: #0f3d28; background: var(--leaf-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 7px; }
.ai-tip p { font-size: .9rem; color: rgba(255, 255, 255, .92); line-height: 1.5; }
.dash-foot { margin-top: 20px; font-size: .76rem; color: rgba(255, 255, 255, .5); }

/* ---- game ---- */
.game-head .game-tag { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--leaf-light); margin-bottom: 8px; }
.game-head h3 { color: #fff; font-size: 1.4rem; }
.game-head p { color: rgba(255, 255, 255, .78); font-size: .92rem; margin: 8px 0 20px; }
.game-head p b { color: var(--leaf-light); }

.game-meters { display: grid; gap: 14px; margin-bottom: 22px; }
.meter { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 12px; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.meter b { text-align: right; color: #fff; font-weight: 700; }
.bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--leaf); transition: width .4s var(--ease), background .3s; }
.bar.comfort i { background: var(--leaf); }
.bar.comfort.warn i { background: #ffb74d; }
.bar.comfort.bad i { background: #e57373; }

.controls { display: grid; gap: 16px; margin-bottom: 20px; }
.ctl span { display: flex; justify-content: space-between; font-size: .9rem; color: rgba(255, 255, 255, .82); margin-bottom: 8px; }
.ctl span b { color: var(--leaf-light); }
.ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .18); outline: none; cursor: pointer; }
.ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); border: 3px solid #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ctl input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--leaf); border: 3px solid #fff; cursor: pointer; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle {
  font-family: inherit; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .2);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease);
}
.toggle:hover { border-color: var(--leaf-light); }
.toggle.on { background: var(--leaf); border-color: var(--leaf); color: #fff; box-shadow: 0 6px 16px rgba(124, 179, 66, .4); }

.game-ai { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; min-height: 78px; }
.game-ai p { font-size: .92rem; color: rgba(255, 255, 255, .92); line-height: 1.5; }
.game-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.game-foot .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); padding: 11px 22px; }
.game-foot .btn-ghost:hover { border-color: var(--leaf-light); color: var(--leaf-light); }
.grade { font-size: .92rem; color: rgba(255, 255, 255, .75); }
.grade.win { color: var(--leaf-light); font-weight: 600; }
.grade b { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; margin-right: 8px; background: var(--leaf); color: #fff; border-radius: 9px; font-weight: 900; vertical-align: middle; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .hero-grid, .day-panel.active, .longterm, .funding-grid, .contact-grid, .cycle, .dash-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 480px; }
  .card-grid.three, .card-grid.four, .detail-grid, .funding-stats { grid-template-columns: repeat(2, 1fr); }
  .plans-grid, .steps, .plan-cols, .lt-cols { grid-template-columns: 1fr; }
  .lt-body { padding: 34px; }
  .section { padding: 72px 0; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s var(--ease); pointer-events: none;
  }
  .nav-links.open { transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 80px; }
  .card-grid.three, .card-grid.four, .detail-grid, .funding-stats, .day-tabs { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .ai-derived { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .day-tabs { gap: 8px; }
  .option { flex-direction: column; text-align: center; }
  .option img { width: 100%; height: 150px; }
  .float-cta { right: 14px; bottom: 14px; }
}
