/* ================================================
   FARM 2 PLATE CONNECT — howitworks.css
   Palette: #1A3B32 | #FFD729 | #FFFFFF
   Style: Technical clarity + warm interactivity
   ================================================ */

:root {
  --g: #1A3B32; --gm: #2a5c4a; --gl: #3d7a63;
  --y: #FFD729; --yd: #e6c000;
  --w: #FFFFFF; --cream: #f8f5ee; --dark: #071210;
  --gray: #6b7280; --lgray: #f1f5f2; --border: #e4e9e6;
  --sh: 0 4px 28px rgba(26,59,50,.10);
  --shd: 0 8px 48px rgba(26,59,50,.18);
  --r: 16px; --rs: 10px;
  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Plus Jakarta Sans', sans-serif;
  --tr: all .3s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --w: #0f1e18; --cream: #142019; --lgray: #1a2d22;
  --border: #263d30; --gray: #8aaa9a;
  --sh: 0 4px 28px rgba(0,0,0,.35);
  --shd: 0 8px 48px rgba(0,0,0,.5);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); background: var(--w); color: var(--g); line-height: 1.6; overflow-x: hidden; transition: background .3s, color .3s; }
[data-theme="dark"] body { color: #d8ede6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--fb); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; }
h1,h2,h3,h4 { font-family: var(--fd); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p { color: var(--gray); line-height: 1.8; font-size: .97rem; }
[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4 { color: #e8f5ef; }
[data-theme="dark"] p { color: #8aaa9a; }
em { font-style: italic; color: var(--y); }
[data-theme="dark"] em { color: var(--y); }

.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,59,50,.09); color: var(--g); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
[data-theme="dark"] .chip { background: rgba(255,215,41,.12); color: var(--y); }
.chip-y { background: var(--y); color: var(--g) !important; }
.chip-outline { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff !important; }

.sec-head { margin-bottom: 52px; }
.sec-head.centered { text-align: center; }
.sec-head.centered .sec-sub, .sec-sub { max-width: 580px; margin: 10px auto 0; font-size: 1rem; line-height: 1.75; }
.sec-head.left .sec-sub { margin-left: 0; }

.btn-primary { background: var(--y); color: var(--g); font-weight: 700; font-size: .95rem; padding: 14px 32px; border-radius: 999px; transition: var(--tr); box-shadow: 0 4px 18px rgba(255,215,41,.35); display: inline-block; }
.btn-primary:hover { background: var(--yd); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--g); border: 2px solid var(--g); font-weight: 700; font-size: .95rem; padding: 13px 30px; border-radius: 999px; transition: var(--tr); display: inline-block; }
.btn-ghost:hover { background: var(--g); color: var(--y); }
[data-theme="dark"] .btn-ghost { border-color: var(--y); color: var(--y); }
[data-theme="dark"] .btn-ghost:hover { background: var(--y); color: var(--g); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--lgray); color: var(--g); display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: var(--tr); }
[data-theme="dark"] .icon-btn { background: var(--lgray); color: var(--y); }
.icon-btn:hover { background: var(--y); color: var(--g); }

/* ---- NAVBAR ---- */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: var(--tr); }
[data-theme="dark"] #navbar { background: rgba(13,26,22,.96); }
#navbar.scrolled { box-shadow: var(--sh); }
.nav-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--fd); font-weight: 700; font-size: 1.25rem; color: var(--g); }
[data-theme="dark"] .nav-logo { color: var(--y); }
.logo-leaf { font-size: 1.4rem; }
.logo-text em { color: var(--y); font-style: normal; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--g); transition: var(--tr); position: relative; padding-bottom: 2px; }
[data-theme="dark"] .nav-links a { color: #d8ede6; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--y); transition: width .25s; }
.nav-links a:hover::after, .nav-links a.nav-current::after { width: 100%; }
.nav-links a.nav-current { color: var(--gl); font-weight: 600; }
[data-theme="dark"] .nav-links a.nav-current { color: var(--y); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-drop { position: relative; }
.lang-trigger { display: flex; align-items: center; gap: 6px; background: var(--lgray); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--g); transition: var(--tr); cursor: pointer; }
[data-theme="dark"] .lang-trigger { background: var(--lgray); color: #d8ede6; }
.lang-trigger:hover { background: var(--y); color: var(--g); }
.lang-arrow { font-size: .65rem; transition: transform .25s; }
.lang-drop.open .lang-arrow { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--w); border: 1px solid var(--border); border-radius: var(--rs); padding: 6px; box-shadow: var(--shd); min-width: 140px; display: none; z-index: 200; }
[data-theme="dark"] .lang-menu { background: var(--lgray); }
.lang-drop.open .lang-menu { display: block; animation: fadeDown .2s ease; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; font-size: .87rem; font-weight: 500; color: var(--g); transition: var(--tr); text-align: left; }
[data-theme="dark"] .lang-opt { color: #d8ede6; }
.lang-opt:hover, .lang-opt.active { background: var(--y); color: var(--g); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-donate { background: var(--g); color: var(--y); font-weight: 700; font-size: .85rem; padding: 9px 20px; border-radius: 999px; transition: var(--tr); }
.nav-donate:hover { background: var(--gm); }
[data-theme="dark"] .nav-donate { background: var(--y); color: var(--g); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--g); border-radius: 2px; transition: var(--tr); }
[data-theme="dark"] .hamburger span { background: var(--y); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- HERO ---- */
#hw-hero { background: var(--g); padding-top: 70px; padding-bottom: 0; overflow: hidden; position: relative; }
.hwh-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hwh-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.hwh-orb { position: absolute; border-radius: 50%; opacity: .07; }
.hwh-orb.o1 { width: 500px; height: 500px; background: #fff; top: -200px; right: -100px; }
.hwh-orb.o2 { width: 250px; height: 250px; background: var(--y); bottom: 0; left: -80px; }
.hwh-inner { padding-top: 48px; padding-bottom: 48px; position: relative; z-index: 1; }
.hwh-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: .83rem; color: rgba(255,255,255,.45); }
.hwh-breadcrumb a { color: rgba(255,255,255,.55); transition: color .2s; }
.hwh-breadcrumb a:hover { color: var(--y); }
.hwh-breadcrumb i { font-size: .65rem; }
.hwh-breadcrumb span { color: var(--y); }
#hw-hero h1 { color: #fff; margin-bottom: 18px; letter-spacing: -.02em; }
.hwh-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.75; max-width: 620px; margin-bottom: 28px; }
.hwh-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hwh-pills span { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); padding: 6px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.15); }

/* Flow Diagram in Hero */
.flow-diagram { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 32px 40px; margin: 32px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.fd-node { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 20px; border-radius: var(--rs); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); transition: var(--tr); cursor: pointer; }
.fd-node:hover, .fd-node.active { background: var(--y); border-color: var(--y); }
.fd-node:hover .fdn-icon, .fd-node.active .fdn-icon { transform: scale(1.2); }
.fdn-icon { font-size: 2rem; transition: transform .3s; }
.fd-node span { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .06em; }
.fd-node.active span { color: var(--g); }
.fd-node:hover span { color: var(--g); }
.fd-pipe { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.fd-pulse { width: 40px; height: 3px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; position: relative; }
.fd-pulse::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--y); animation: pipeFlow 1.5s linear infinite; }
@keyframes pipeFlow { from { left: -100%; } to { left: 100%; } }
.fd-label { font-size: .68rem; color: rgba(255,255,255,.45); white-space: nowrap; }
.fd-branch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fd-branch-line { width: 2px; height: 20px; background: rgba(255,255,255,.2); }

/* ---- MODULE TABS ---- */
.module-tabs { display: flex; gap: 8px; margin-bottom: 0; overflow-x: auto; padding-bottom: 0; border-bottom: 2px solid var(--border); }
.module-tabs::-webkit-scrollbar { height: 0; }
.mt-btn { display: flex; align-items: center; gap: 8px; padding: 14px 22px; font-size: .88rem; font-weight: 600; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--tr); white-space: nowrap; flex-shrink: 0; }
.mt-btn:hover { color: var(--g); }
[data-theme="dark"] .mt-btn:hover { color: #e8f5ef; }
.mt-btn.active { color: var(--g); border-bottom-color: var(--y); background: rgba(255,215,41,.06); border-radius: var(--rs) var(--rs) 0 0; }
[data-theme="dark"] .mt-btn.active { color: var(--y); }
.mt-emoji { font-size: 1.2rem; }

/* Module Panels */
.module-panels { background: var(--cream); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--r) var(--r); }
[data-theme="dark"] .module-panels { background: var(--lgray); border-color: var(--border); }
.mp { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 52px 48px; align-items: start; }
.mp.hidden { display: none; }
.mp-num { font-family: var(--fd); font-size: 5rem; font-weight: 900; color: rgba(26,59,50,.07); line-height: 1; margin-bottom: 4px; }
[data-theme="dark"] .mp-num { color: rgba(255,215,41,.08); }
.mp-left .chip { margin-bottom: 12px; }
.mp-left h2 { margin-bottom: 16px; }
.mp-left p { margin-bottom: 14px; }
.mp-features { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.mpf { display: flex; align-items: flex-start; gap: 14px; }
.mpf > i { width: 38px; height: 38px; background: rgba(26,59,50,.08); color: var(--g); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .mpf > i { background: rgba(255,215,41,.1); color: var(--y); }
.mpf strong { display: block; font-size: .95rem; margin-bottom: 3px; color: var(--g); }
[data-theme="dark"] .mpf strong { color: #e8f5ef; }
.mpf p { font-size: .85rem; margin: 0; line-height: 1.6; }
.mp-stats { display: flex; gap: 24px; background: var(--w); border-radius: var(--rs); padding: 18px 20px; }
[data-theme="dark"] .mp-stats { background: var(--w); }
.mps { text-align: center; flex: 1; }
.mps strong { display: block; font-family: var(--fd); font-size: 1.5rem; font-weight: 900; color: var(--g); }
[data-theme="dark"] .mps strong { color: var(--y); }
.mps span { font-size: .75rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Phone Mockup */
.phone-mockup { background: var(--g); border-radius: 24px; padding: 16px; box-shadow: var(--shd); border: 6px solid #0d1a16; max-width: 320px; margin: 0 auto; }
.pm-screen { background: #fff; border-radius: 14px; overflow: hidden; }
.pm-status { display: flex; justify-content: space-between; background: var(--g); color: rgba(255,255,255,.7); font-size: .7rem; padding: 8px 14px; }
.pm-header { display: flex; align-items: center; gap: 10px; background: var(--g); padding: 10px 14px; }
.pm-avatar { width: 32px; height: 32px; background: var(--y); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.pm-header strong { color: #fff; font-size: .88rem; display: block; }
.pm-header small { color: rgba(255,255,255,.5); font-size: .72rem; }
.pm-messages { padding: 14px; background: #f0f2f5; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.pm-msg { background: #fff; border-radius: 12px; border-bottom-left-radius: 3px; padding: 12px 14px; font-size: .82rem; line-height: 1.6; color: #333; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pm-msg small { display: block; font-size: .7rem; color: #999; margin-top: 6px; }
.pm-input-row { padding: 10px 14px; border-top: 1px solid #eee; background: #fff; }
.pm-input { background: #f0f2f5; border-radius: 999px; padding: 8px 14px; font-size: .75rem; color: #999; }

/* Marketplace Demo */
.marketplace-demo { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
[data-theme="dark"] .marketplace-demo { background: var(--w); }
.md-header { background: var(--g); color: var(--y); padding: 14px 18px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.md-listing { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background .2s; }
.md-listing:hover { background: var(--lgray); }
.md-listing.surplus { background: rgba(34,197,94,.05); }
.mdl-emoji { font-size: 1.8rem; flex-shrink: 0; }
.mdl-info { flex: 1; }
.mdl-info strong { font-size: .88rem; display: block; margin-bottom: 2px; }
.mdl-info small { font-size: .75rem; color: var(--gray); }
.mdl-meta { display: flex; gap: 8px; margin-top: 4px; }
.mdl-qty { background: var(--lgray); color: var(--g); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
[data-theme="dark"] .mdl-qty { background: rgba(255,215,41,.1); color: var(--y); }
.surplus-tag { background: rgba(34,197,94,.12) !important; color: #16a34a !important; }
.mdl-price { font-size: .78rem; font-weight: 700; color: var(--gl); }
.mdl-btn { background: var(--y); color: var(--g); font-weight: 700; font-size: .78rem; padding: 7px 14px; border-radius: 999px; transition: var(--tr); flex-shrink: 0; }
.mdl-btn:hover { background: var(--yd); transform: scale(1.05); }
.mdl-matched { color: #16a34a; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.md-footer { padding: 12px 18px; font-size: .75rem; color: var(--gray); display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); background: var(--lgray); }
[data-theme="dark"] .md-footer { background: var(--lgray); }

/* Logistics Demo */
.logistics-demo { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
[data-theme="dark"] .logistics-demo { background: var(--w); }
.ld-header { background: var(--g); color: var(--y); padding: 14px 18px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.ld-job { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.ldj-route { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .83rem; font-weight: 600; }
.ldj-from, .ldj-to { flex-shrink: 0; font-size: .8rem; }
.ldj-line { flex: 1; height: 4px; background: var(--lgray); border-radius: 999px; position: relative; overflow: visible; }
.ldj-truck { position: absolute; top: -10px; font-size: 1.1rem; animation: truckMove 3s ease-in-out infinite; left: 40%; }
@keyframes truckMove { 0%,100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
.ldj-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ldj-meta span { font-size: .78rem; color: var(--gray); display: flex; align-items: center; gap: 5px; }
.ldj-status { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: auto; }
.in-transit { background: rgba(59,130,246,.12); color: #2563eb; }
.arriving { background: rgba(34,197,94,.12); color: #16a34a; }
.picked-up { background: rgba(255,215,41,.2); color: #92640a; }
.ld-footer { padding: 12px 18px; font-size: .75rem; color: var(--gray); display: flex; align-items: center; gap: 6px; background: var(--lgray); }

/* School Demo */
.school-demo { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
[data-theme="dark"] .school-demo { background: var(--w); }
.sd-header { background: var(--g); color: var(--y); padding: 14px 18px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.sd-school-name { padding: 12px 18px; font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--border); }
.sd-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.sd-day { padding: 12px 10px; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sd-day:last-child { border-right: none; }
.sd-day strong { display: block; font-size: .78rem; margin-bottom: 6px; color: var(--g); }
[data-theme="dark"] .sd-day strong { color: #e8f5ef; }
.sd-day span { display: block; font-size: .75rem; color: var(--gray); margin-bottom: 3px; }
.sd-cal { font-size: .68rem; color: var(--gl); font-weight: 700; display: block; margin-top: 4px; }
[data-theme="dark"] .sd-cal { color: var(--y); }
.active-day { background: rgba(255,215,41,.12); }
.sd-source { padding: 12px 18px; font-size: .78rem; color: var(--gray); display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); }
.sd-source i { color: var(--gl); }
.sd-subsidy { padding: 10px 18px; font-size: .78rem; background: rgba(34,197,94,.08); color: #16a34a; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Finance Demo */
.finance-demo { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
[data-theme="dark"] .finance-demo { background: var(--w); }
.fnd-header { background: var(--g); color: var(--y); padding: 14px 18px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.fnd-balance { background: linear-gradient(135deg, var(--g), var(--gm)); padding: 20px 18px; text-align: center; }
.fnd-balance small { color: rgba(255,255,255,.6); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.fnd-amount { font-family: var(--fd); font-size: 2rem; font-weight: 900; color: var(--y); }
.fnd-network { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: .75rem; }
.fnd-network span { color: rgba(255,255,255,.6); }
.fnd-txns { padding: 0; }
.fnd-txn { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.fnd-txn > span:first-child { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.fnd-txn.credit > span:first-child { background: rgba(34,197,94,.12); color: #16a34a; }
.fnd-txn.debit > span:first-child { background: rgba(239,68,68,.1); color: #dc2626; }
.fnd-txn div { flex: 1; }
.fnd-txn strong { font-size: .85rem; display: block; }
.fnd-txn small { font-size: .75rem; color: var(--gray); }
.txn-amt { font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.credit-amt { color: #16a34a; }
.debit-amt { color: #dc2626; }
.fnd-actions { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--lgray); }
.fnd-btn { flex: 1; background: var(--lgray); color: var(--g); font-size: .78rem; font-weight: 700; padding: 9px 10px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; gap: 5px; transition: var(--tr); border: 1px solid var(--border); }
[data-theme="dark"] .fnd-btn { background: rgba(255,255,255,.08); color: #d8ede6; }
.fnd-btn:hover { background: var(--g); color: var(--y); border-color: var(--g); }
.fnd-loan { background: var(--y) !important; color: var(--g) !important; border-color: var(--y) !important; }

/* Nutrition Demo */
.nutrition-demo { background: var(--w); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
[data-theme="dark"] .nutrition-demo { background: var(--w); }
.nd-header { background: var(--g); color: var(--y); padding: 14px 18px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.nd-tip { display: flex; gap: 14px; padding: 18px; border-bottom: 1px solid var(--border); }
.nd-tip-icon { font-size: 2rem; flex-shrink: 0; }
.nd-tip-body strong { font-size: .88rem; display: block; margin-bottom: 6px; color: var(--g); }
[data-theme="dark"] .nd-tip-body strong { color: #e8f5ef; }
.nd-tip-body p { font-size: .83rem; margin-bottom: 10px; line-height: 1.65; }
.nd-foods { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-foods span { background: var(--lgray); font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--g); }
[data-theme="dark"] .nd-foods span { background: rgba(255,215,41,.1); color: var(--y); }
.nd-footer { padding: 12px 18px; font-size: .78rem; color: var(--gray); border-top: 1px solid var(--border); background: var(--lgray); }
.nd-footer strong { color: var(--g); }
[data-theme="dark"] .nd-footer strong { color: var(--y); }

/* Tech note */
.mp-tech-note { margin-top: 20px; background: rgba(26,59,50,.06); border-radius: var(--rs); padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; border-left: 3px solid var(--y); }
[data-theme="dark"] .mp-tech-note { background: rgba(255,215,41,.06); }
.mp-tech-note i { font-size: 1.4rem; color: var(--y); flex-shrink: 0; margin-top: 2px; }
.mp-tech-note strong { font-size: .88rem; display: block; margin-bottom: 3px; color: var(--g); }
[data-theme="dark"] .mp-tech-note strong { color: #e8f5ef; }
.mp-tech-note p { font-size: .8rem; margin: 0; line-height: 1.6; }

/* ---- TECH STACK ---- */
.dark-sec { background: var(--g); }
.dark-sec .sec-head h2 { color: #fff; }
.dark-sec .sec-head p { color: rgba(255,255,255,.65); }
.dark-sec .chip-y { background: var(--y); color: var(--g) !important; }
.light-sec { background: var(--lgray); }
[data-theme="dark"] .light-sec { background: var(--lgray); }
[data-theme="dark"] .light-sec h2 { color: #e8f5ef; }

.tech-grid { display: flex; align-items: stretch; gap: 0; }
.tech-layer { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 28px 24px; flex: 1; }
.tech-layer.tl-highlight { background: rgba(255,215,41,.1); border-color: rgba(255,215,41,.3); }
.tl-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--y); margin-bottom: 18px; }
.tl-items { display: flex; flex-direction: column; gap: 12px; }
.tl-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.06); border-radius: var(--rs); transition: var(--tr); }
.tl-item:hover { background: rgba(255,255,255,.12); }
.tl-item span { font-size: 1.3rem; flex-shrink: 0; }
.tl-item strong { font-size: .85rem; color: #fff; display: block; line-height: 1.2; }
.tl-item small { font-size: .72rem; color: rgba(255,255,255,.5); }
.tech-arrow { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: rgba(255,255,255,.3); font-size: 1rem; flex-shrink: 0; }

/* ---- SMS SIMULATOR ---- */
.sms-simulator { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sim-phone { background: #1a1a2e; border-radius: 28px; padding: 14px; box-shadow: var(--shd); border: 5px solid #111; max-width: 320px; margin: 0 auto; }
.sim-screen { background: #f5f5f5; border-radius: 16px; overflow: hidden; }
.sim-bar { background: #1a1a2e; color: rgba(255,255,255,.6); font-size: .72rem; padding: 8px 14px; display: flex; justify-content: space-between; }
.sim-messages { padding: 14px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 280px; }
.sim-msg { border-radius: 14px; padding: 10px 14px; font-size: .82rem; line-height: 1.6; max-width: 88%; }
.sim-msg.incoming { background: #fff; color: #333; border-bottom-left-radius: 3px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.sim-msg.outgoing { background: var(--g); color: #fff; border-bottom-right-radius: 3px; align-self: flex-end; }
.sim-msg small { display: block; font-size: .7rem; color: #999; margin-top: 5px; }
.sim-msg.outgoing small { color: rgba(255,255,255,.5); }
.sim-input-row { display: flex; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid #eee; align-items: center; }
#sim-input { flex: 1; background: #f0f2f5; border: none; border-radius: 999px; padding: 9px 14px; font-size: .82rem; outline: none; color: #333; font-family: var(--fb); }
#sim-send { width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: var(--y); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--tr); }
#sim-send:hover { background: var(--gm); }

.sim-commands h4 { font-size: 1rem; margin-bottom: 14px; }
.sim-cmd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.sim-cmd-grid button { background: var(--lgray); color: var(--g); font-size: .82rem; font-weight: 700; padding: 10px 14px; border-radius: var(--rs); transition: var(--tr); text-align: left; border: 1px solid var(--border); font-family: 'Courier New', monospace; }
[data-theme="dark"] .sim-cmd-grid button { background: var(--lgray); color: #d8ede6; border-color: var(--border); }
.sim-cmd-grid button:hover { background: var(--y); color: var(--g); border-color: var(--y); }
.sim-note { background: rgba(26,59,50,.06); border-radius: var(--rs); padding: 14px 16px; font-size: .82rem; color: var(--gray); display: flex; align-items: flex-start; gap: 8px; border-left: 3px solid var(--y); }
[data-theme="dark"] .sim-note { background: rgba(255,215,41,.06); }
.sim-note i { color: var(--y); flex-shrink: 0; margin-top: 2px; }

/* ---- JOURNEY STEPS ---- */
.journey-steps { display: flex; align-items: flex-start; gap: 0; }
.js-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.jss-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--g); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(26,59,50,.2); transition: var(--tr); position: relative; z-index: 1; }
.js-step:hover .jss-circle { background: var(--y); transform: scale(1.1); }
.last-circle { background: var(--y); }
.jss-line { position: absolute; top: 36px; left: calc(50% + 36px); right: calc(-50% + 36px); height: 3px; background: linear-gradient(90deg, var(--g), var(--lgray)); z-index: 0; }
.invisible-line { display: none; }
.js-step h4 { font-size: .95rem; margin-bottom: 6px; }
.js-step p { font-size: .8rem; max-width: 120px; line-height: 1.5; }

/* ---- CTA ---- */
.cta-sec { background: var(--g); }
.hw-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hwc-left .chip-y { background: var(--y); color: var(--g) !important; }
.hwc-left h2 { color: #fff; margin-bottom: 14px; }
.hwc-left p { color: rgba(255,255,255,.7); max-width: 480px; margin-bottom: 32px; font-size: 1rem; }
.hwc-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hwc-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hwcm { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--rs); padding: 16px 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; color: rgba(255,255,255,.85); transition: var(--tr); border-left: 3px solid var(--mc); }
.hwcm:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }

/* ---- FOOTER ---- */
footer { background: var(--dark); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 60px 28px 40px; max-width: 1200px; margin: 0 auto; }
.ft-brand p { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.ft-logo-text { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; color: var(--y); display: flex; align-items: center; gap: 8px; }
.ft-logo-text em { font-style: normal; }
.ft-soc { display: flex; gap: 10px; margin-top: 18px; }
.ft-soc a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; font-size: .88rem; transition: var(--tr); }
.ft-soc a:hover { background: var(--y); color: var(--g); }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col h4 { color: var(--y); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; font-family: var(--fb); }
.ft-col a { color: rgba(255,255,255,.5); font-size: .88rem; transition: color .2s; }
.ft-col a:hover { color: var(--y); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-bottom p i { color: var(--y); margin-right: 4px; }

/* ---- AI WIDGET ---- */
#ai-widget { position: fixed; bottom: 100px; right: 24px; z-index: 1500; }
#ai-fab { width: 58px; height: 58px; border-radius: 50%; background: var(--g); color: var(--y); font-size: 1.3rem; box-shadow: var(--shd); transition: var(--tr); position: relative; }
#ai-fab:hover { transform: scale(1.08); }
.ai-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,215,41,.3); animation: ring 2s ease-in-out infinite; }
@keyframes ring { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 0; } }
#ai-panel { position: absolute; bottom: 68px; right: 0; width: 340px; background: var(--w); border-radius: var(--r); box-shadow: var(--shd); border: 1px solid var(--border); display: none; flex-direction: column; overflow: hidden; max-height: 500px; }
[data-theme="dark"] #ai-panel { background: var(--lgray); }
#ai-panel.open { display: flex; }
.ap-head { background: var(--g); padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.ap-head > span { font-size: 1.7rem; }
.ap-head strong { color: #fff; display: block; font-size: .92rem; }
.ap-head small { color: rgba(255,255,255,.5); font-size: .75rem; }
.ap-head > button { margin-left: auto; color: rgba(255,255,255,.6); font-size: 1rem; transition: color .2s; }
.ap-head > button:hover { color: var(--y); }
.ap-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 240px; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: .87rem; line-height: 1.5; }
.ai-msg.bot { background: var(--lgray); color: var(--g); align-self: flex-start; border-bottom-left-radius: 3px; }
[data-theme="dark"] .ai-msg.bot { color: #d8ede6; }
.ai-msg.user { background: var(--g); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.ai-msg.thinking { background: var(--lgray); color: var(--gray); font-style: italic; font-size: .82rem; align-self: flex-start; }
.ap-quick { padding: 8px 12px; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.ap-quick button { background: rgba(26,59,50,.07); color: var(--g); padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; transition: var(--tr); }
[data-theme="dark"] .ap-quick button { background: rgba(255,215,41,.1); color: var(--y); }
.ap-quick button:hover { background: var(--y); color: var(--g); }
.ap-input { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: center; }
#ap-in { flex: 1; background: var(--lgray); border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-family: var(--fb); font-size: .85rem; color: var(--g); outline: none; transition: var(--tr); }
[data-theme="dark"] #ap-in { color: #d8ede6; }
#ap-in:focus { border-color: var(--y); }
.ap-input button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: var(--tr); }
#mic-btn { background: var(--lgray); color: var(--gray); }
#mic-btn:hover, #mic-btn.on { background: #ef4444; color: #fff; }
.ap-input button:last-child { background: var(--g); color: var(--y); }
.ap-input button:last-child:hover { background: var(--gm); }
.v-bar { padding: 8px 14px; display: flex; align-items: center; gap: 8px; background: rgba(239,68,68,.07); border-top: 1px solid rgba(239,68,68,.12); }
.v-bar.hidden { display: none; }
.v-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: vd 1s infinite; }
@keyframes vd { 0%,100% { transform: scale(1); } 50% { transform: scale(1.6); opacity: .4; } }
.v-bar span { font-size: .82rem; color: #ef4444; font-weight: 600; }
.wa-btn { position: fixed; bottom: 24px; right: 24px; z-index: 1400; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 18px rgba(37,211,102,.4); transition: var(--tr); }
.wa-btn:hover { transform: scale(1.1); }
.donate-btn { position: fixed; top: 85px; right: 24px; z-index: 999; background: var(--y); color: var(--g); font-weight: 800; font-size: .82rem; padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 16px rgba(255,215,41,.4); transition: var(--tr); }
.donate-btn:hover { transform: translateY(-3px); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .mp { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .tech-grid { flex-direction: column; gap: 12px; }
  .tech-arrow { transform: rotate(90deg); padding: 8px 0; }
  .sms-simulator { grid-template-columns: 1fr; }
  .hw-cta-inner { grid-template-columns: 1fr; }
  .hwc-right { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 70px; inset-inline: 0; background: var(--w); flex-direction: column; padding: 20px 28px; gap: 14px; box-shadow: var(--sh); border-top: 1px solid var(--border); }
  [data-theme="dark"] .nav-links { background: var(--lgray); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .flow-diagram { gap: 8px; padding: 20px; }
  .fd-branch { flex-direction: row; }
  .journey-steps { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .jss-line { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .module-tabs { gap: 0; }
  .mt-btn { padding: 12px 14px; font-size: .78rem; }
  .mt-label { display: none; }
  .mt-emoji { font-size: 1.3rem; }
  .mp { padding: 24px 20px; }
  .sim-cmd-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  #ai-panel { width: 300px; right: -10px; }
  .sd-week { grid-template-columns: repeat(3, 1fr); }
  .hwc-btns { flex-direction: column; align-items: flex-start; }
}