:root {
  --bg: #0A0C0B;
  --bg2: #0F1211;
  --card: #141816;
  --card2: #1A1F1C;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #F2F5F3;
  --muted: #9AA5A0;
  --mint: #00DC92;
  --mint-ink: #04241A;
  --gold: #D3AB46;
  --sky: #2AABEE;
  --navy: #0E2140;
  --head: 'Lexend', 'Kantumruy Pro', system-ui, sans-serif;
  --font: 'Inter', 'Kantumruy Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px;
  /* theme tokens (dark) */
  --fill: rgba(255, 255, 255, .04);
  --fill2: rgba(255, 255, 255, .08);
  --fill3: rgba(255, 255, 255, .11);
  --header: rgba(10, 12, 11, .72);
  --chip-bg: rgba(20, 24, 22, .92);
  --core-bg: linear-gradient(160deg, #1B211E, #0E1210);
  --stats-bg: rgba(20, 24, 22, .6);
  --shadow: #000;
  --copy: #6B7571;
  --mint-txt: var(--mint);
  --em: linear-gradient(90deg, var(--mint), #7CF5C8 60%, var(--mint));
  --tint: 22%;
  --tag: 100%;
  --logo-filter: invert(1);
  --flag-filter: drop-shadow(0 20px 50px rgba(0, 220, 146, .35));
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F7F6;
  --bg2: #ECF0EE;
  --card: #FFFFFF;
  --card2: #F3F6F4;
  --line: rgba(12, 24, 18, .09);
  --line2: rgba(12, 24, 18, .15);
  --text: #0E1411;
  --muted: #56615C;
  --fill: rgba(12, 24, 18, .035);
  --fill2: rgba(12, 24, 18, .06);
  --fill3: rgba(12, 24, 18, .09);
  --header: rgba(245, 247, 246, .8);
  --chip-bg: rgba(255, 255, 255, .96);
  --core-bg: linear-gradient(160deg, #FFFFFF, #E9F4EF);
  --stats-bg: #FFFFFF;
  --shadow: rgba(20, 45, 32, .2);
  --copy: #7D8883;
  --mint-txt: #00805A;
  --em: linear-gradient(90deg, #00A46D, #00C98A 60%, #00A46D);
  --tint: 13%;
  --tag: 72%;
  --logo-filter: none;
  --flag-filter: invert(1) drop-shadow(0 18px 30px rgba(0, 120, 80, .25));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); overflow-x: hidden; }
html:lang(km) body { font-family: 'Kantumruy Pro', 'Inter', system-ui, sans-serif; line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
html:lang(km) h1, html:lang(km) h2, html:lang(km) h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
.inv { filter: invert(1); }
.inv-t { filter: var(--logo-filter); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.pri { background: var(--mint); color: var(--mint-ink); box-shadow: 0 6px 24px -8px rgba(0, 220, 146, .55); }
.btn.pri:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(0, 220, 146, .7); }
.btn.ghost { background: var(--fill); border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { background: var(--fill3); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo b { color: var(--mint-txt); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav > a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav .lang { display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 9px; font-size: 13px; line-height: 1; font-weight: 600; color: var(--text) !important; }
.nav .lang[lang="km"] { font-size: 15px; font-weight: 500; }
.nav .lang:lang(km) { font-family: 'Kantumruy Pro', sans-serif; }

/* theme toggle */
.theme-btn { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line2); background: var(--fill); color: var(--text); cursor: pointer; padding: 0; transition: background .2s; }
.theme-btn:hover { background: var(--fill3); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon, :root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
.theme-swap, .theme-swap *, .theme-swap *::before { transition: background-color .35s, border-color .35s, color .35s !important; }

/* light-mode extras */
:root[data-theme="light"] .btn.pri { box-shadow: 0 6px 20px -8px rgba(0, 160, 105, .55); }
:root[data-theme="light"] .bcard, :root[data-theme="light"] .steps li, :root[data-theme="light"] .pcard, :root[data-theme="light"] .stats { box-shadow: 0 1px 2px rgba(12, 24, 18, .04), 0 12px 32px -18px rgba(12, 24, 18, .18); }
:root[data-theme="light"] .hero::before { opacity: .8; }
:root[data-theme="light"] .orbit .glow { background: radial-gradient(circle, rgba(0, 220, 146, .22), transparent 65%); }
:root[data-theme="light"] .core { box-shadow: 0 0 0 10px rgba(0, 220, 146, .07), 0 20px 50px -14px rgba(0, 150, 100, .35); }
:root[data-theme="light"] .flag-art { opacity: .92; }
:root[data-theme="light"] .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: .55; animation: drift 30s linear infinite; pointer-events: none; }
@keyframes drift { to { background-position: 56px 56px; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-txt); }
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(0, 220, 146, .18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(0, 220, 146, 0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); margin: 18px 0 20px; }
html:lang(km) .hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.35; }
.hero h1 em { font-style: normal; background: var(--em); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; }
@keyframes shine { 50% { background-position: 100% 0; } }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* orbit motion graphic */
.hero-art { display: grid; place-items: center; }
.orbit { --s: 520px; position: relative; width: var(--s); height: var(--s); max-width: 100%; }
.orbit .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 220, 146, .28), transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line2); animation: spin var(--t) linear infinite; }
.ring.r1 { --t: 46s; --rad: calc(var(--s) * .31); inset: calc(50% - var(--rad)); }
.ring.r2 { --t: 70s; --rad: calc(var(--s) * .47); inset: calc(50% - var(--rad)); animation-direction: reverse; border-style: solid; border-color: var(--line); }
@keyframes spin { to { transform: rotate(360deg); } }
.sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--rad))) rotate(calc(-1 * var(--a))); }
.chip { position: absolute; left: 0; top: 0; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 7px; border-radius: 999px; background: var(--chip-bg); border: 1px solid var(--line2); box-shadow: 0 10px 30px -10px var(--shadow); font-size: 13px; white-space: nowrap; animation: spin var(--t) linear infinite reverse; }
.ring.r2 .chip { animation-direction: normal; padding: 6px 12px; }
.chip b { font-weight: 600; }
.chip .cm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0A0C0B; overflow: hidden; }
.chip .cm img { width: 18px; height: 18px; object-fit: contain; }
.chip .cm.ic { background: var(--sky); color: #fff; }
.chip .cm.ic svg { width: 15px; height: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dot.exchange { background: #5B8CFF; box-shadow: 0 0 10px #5B8CFF; }
.core { position: absolute; inset: calc(50% - 64px); width: 128px; height: 128px; border-radius: 34px; display: grid; place-items: center; align-content: center; gap: 6px; background: var(--core-bg); border: 1px solid rgba(0, 220, 146, .4); box-shadow: 0 0 0 10px rgba(0, 220, 146, .05), 0 20px 60px -10px rgba(0, 220, 146, .45); }
.core img { width: 56px; height: 56px; }
.core span { font-family: 'Lexend', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--stats-bg); }
.stats div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { font-family: 'Lexend', sans-serif; font-size: 34px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }

/* sections */
.sec { padding: 84px 0 0; }
.sec-head { margin-bottom: 34px; max-width: 640px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 10px; }
.sub { color: var(--muted); font-size: 17px; }

/* brand cards */
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bcard { --acc: var(--mint); position: relative; display: flex; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); min-height: 300px; transition: transform .25s, border-color .25s; isolation: isolate; }
.bcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--acc) var(--tint), transparent), transparent 60%); }
.bcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.bcard.wide { grid-column: span 2; }
.bcard.full { grid-column: 1 / -1; min-height: 340px; }
.t-mint { --acc: var(--mint); }
.t-sky { --acc: var(--sky); }
.t-gold { --acc: var(--gold); }
.t-navy { --acc: #3D6BC4; }
.t-ink { --acc: #8B9792; }
.t-yellow { --acc: #F5C518; }
.bc-body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 26px; flex: 1; }
.bcard.full .bc-body, .bcard.flagship .bc-body, .bcard.school .bc-body { max-width: 56%; }
.bc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.bmark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #0A0C0B; border: 1px solid var(--line2); }
.bmark img { width: 36px; height: 36px; object-fit: contain; }
.bmark.ic { background: var(--sky); border-color: transparent; color: #fff; }
.bmark.ic svg { width: 28px; height: 28px; }
.t-navy .bmark { background: var(--navy); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--mint-txt); background: rgba(0, 220, 146, .1); border: 1px solid rgba(0, 220, 146, .25); padding: 3px 10px; border-radius: 999px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: blink 2s infinite; }
.bc-tag { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--acc) var(--tag), var(--text)); text-transform: uppercase; letter-spacing: .05em; }
html:lang(km) .bc-tag { text-transform: none; letter-spacing: 0; }
.bcard h3 { font-size: 24px; margin: 6px 0 8px; }
.bcard.full h3, .bcard.flagship h3, .bcard.school h3 { font-size: 34px; }
.bc-desc { color: var(--muted); font-size: 15px; }
.bc-act { margin-top: auto; padding-top: 22px; }
.soon { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--line2); color: var(--muted); font-size: 14px; }
.collage { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; }
.collage img { position: absolute; width: 74%; height: auto; border-radius: 14px; border: 1px solid var(--line2); box-shadow: 0 24px 50px -12px var(--shadow); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.collage img:nth-child(1) { top: 9%; left: 2%; transform: rotate(-4deg); }
.collage img:nth-child(2) { top: 40%; left: 30%; transform: rotate(3deg); z-index: 1; }
.collage img:nth-child(3) { display: none; }
.bcard.school:hover .collage img:nth-child(1) { transform: rotate(-6deg) translate(-6px, -8px); }
.bcard.school:hover .collage img:nth-child(2) { transform: rotate(5deg) translate(6px, 6px); }

/* social buttons + follower badge */
.socs { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { --c: var(--text); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px 0 10px; border-radius: 11px; background: var(--fill); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, transform .15s; }
.soc svg { width: 19px; height: 19px; color: var(--c); flex: none; }
.soc b { font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 13px; padding: 1px 7px; border-radius: 999px; background: var(--fill2); color: var(--text); }
.soc:hover { transform: translateY(-1px); background: var(--fill3); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.s-facebook { --c: #3B82F6; }
.s-tiktok { --c: #FF2D6F; }
.s-youtube { --c: #FF3B30; }
.s-telegram, .s-chat { --c: var(--sky); }
.flagship .soc { height: 46px; padding: 0 15px 0 12px; font-size: 15px; }
.fcount { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); background: rgba(0, 220, 146, .08); border: 1px solid rgba(0, 220, 146, .22); padding: 4px 12px; border-radius: 999px; }
.fcount b { font-family: 'Lexend', sans-serif; font-size: 16px; color: var(--mint-txt); }
.bmark.txt { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 20px; color: #fff; background: linear-gradient(135deg, #FF7A45, #FF3D7F); border-color: transparent; }
.chip .cm.txt { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 10px; color: #fff; background: linear-gradient(135deg, #FF7A45, #FF3D7F); }
.flag-art { position: absolute; right: 4%; top: 50%; translate: 0 -50%; width: min(38%, 300px); opacity: .9; filter: var(--flag-filter); animation: floaty 6s ease-in-out infinite; pointer-events: none; }
.flag-art img { width: 100%; height: auto; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-2deg); } }

.bmark.fill, .chip .cm.fill { padding: 0; overflow: hidden; background: #000; }
.bmark.fill img, .chip .cm.fill img { width: 100%; height: 100%; object-fit: cover; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--mint), transparent); }
.steps .n { font-family: 'Lexend', sans-serif; font-size: 14px; font-weight: 700; color: var(--mint-txt); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 220, 146, .1); border: 1px solid rgba(0, 220, 146, .25); }
.steps h3 { font-size: 22px; margin: 16px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* partner slider */
.cs-nav { display: flex; gap: 8px; flex: none; }
.cs-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--line2); color: var(--text); cursor: pointer; transition: background .2s, opacity .2s; }
.cs-btn:hover { background: var(--fill3); }
.cs-btn:disabled { opacity: .35; cursor: default; }
.cs-btn svg { width: 20px; height: 20px; }
.cslider { margin-inline: -20px; }
.ctrack { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 4px 20px 18px; scrollbar-width: none; }
.ctrack::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(211, 171, 70, .4); }
.p-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .p-img img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #241A03; }
.badge.exchange { background: #5B8CFF; color: #fff; }
.p-body { padding: 18px 20px 20px; }
.p-body h3 { font-size: 20px; margin-bottom: 14px; }
.p-act { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-hint { display: none; color: var(--muted); font-size: 13px; margin-top: 2px; }
.disclosure { color: var(--muted); font-size: 13px; margin-top: 14px; opacity: .8; }

/* cta */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 26px; background: linear-gradient(120deg, rgba(0, 220, 146, .16), rgba(42, 171, 238, .1)), var(--card); border: 1px solid rgba(0, 220, 146, .25); }
.cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.cta p { color: var(--muted); font-size: 17px; }

/* footer */
.foot { position: relative; margin-top: 96px; padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); overflow: hidden; isolation: isolate; }
.foot::before { content: ''; position: absolute; z-index: -1; left: 50%; top: -1px; width: min(900px, 90%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--mint), transparent); opacity: .7; }
.foot::after { content: ''; position: absolute; z-index: -1; left: 50%; top: -260px; width: 720px; height: 420px; translate: -50% 0; background: radial-gradient(closest-side, rgba(0, 220, 146, .12), transparent); pointer-events: none; }
.foot-main { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 48px; }
.foot-brand .logo { font-size: 22px; }
.foot-tag { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 320px; }
.foot-soc { display: flex; gap: 10px; margin-top: 22px; }
.foot-soc a { --c: var(--text); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--fill); border: 1px solid var(--line2); color: var(--muted); transition: color .2s, background .2s, border-color .2s, transform .2s; }
.foot-soc a svg { width: 19px; height: 19px; }
.foot-soc a:hover { color: var(--c); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); transform: translateY(-2px); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fcol summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.fcol summary::-webkit-details-marker { display: none; }
.fcol .chev { display: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.foot-cols h4 { margin: 0 0 14px; font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
html:lang(km) .foot-cols h4 { letter-spacing: 0; font-size: 15px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { position: relative; color: var(--muted); font-size: 15px; transition: color .2s; }
.foot-cols a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.foot-cols a:hover { color: var(--text); }
.foot-cols a:hover::after { transform: scaleX(1); }
.foot-risk { display: flex; gap: 12px; align-items: flex-start; margin-top: 48px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--fill); }
.fr-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #E8A23A; background: rgba(232, 162, 58, .12); }
.fr-ic svg { width: 17px; height: 17px; }
.foot-risk p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.foot-risk b { color: var(--text); font-weight: 600; }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.copy { color: var(--copy); font-size: 13.5px; }
.foot-bar-r { display: flex; align-items: center; gap: 10px; }
.foot-lang, .to-top { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--fill); color: var(--text); font-size: 13.5px; font-weight: 600; transition: background .2s, border-color .2s; }
.foot-lang svg, .to-top svg { width: 16px; height: 16px; }
.foot-lang:hover, .to-top:hover { background: var(--fill3); }
.to-top:hover { border-color: rgba(0, 220, 146, .5); }
.to-top:hover svg { animation: nudge-up .6s ease; }
@keyframes nudge-up { 50% { transform: translateY(-3px); } }
:root[data-theme="light"] .foot { background: var(--card); }
:root[data-theme="light"] 
/* reveal on scroll (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* tablet */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-txt { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-act { justify-content: center; }
  .orbit { --s: 460px; }
  .bgrid { grid-template-columns: 1fr 1fr; }
  .bcard.tw { grid-column: span 2; }
  .pcard { flex-basis: calc((100% - 18px) / 2); }
  .foot-main { grid-template-columns: 1fr; gap: 36px; }
}

/* phone */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .nav { gap: 10px; }
  .top-in { height: 60px; }
  .logo { font-size: 18px; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { margin: 14px 0 14px; }
  .kicker .k2 { display: none; }
  .lead { font-size: 16px; }
  .hero-act { margin-top: 22px; }
  .hero-act .btn { flex: 1 1 100%; }
  .orbit { --s: min(360px, calc(100vw - 32px)); }
  .chip { font-size: 11.5px; padding: 5px 10px 5px 5px; gap: 6px; }
  .ring.r1 { --rad: calc(var(--s) * .22); }
  .ring.r2 { --rad: calc(var(--s) * .39); }
  .ring.r2 .chip { font-size: 10.5px; padding: 4px 9px; gap: 5px; }
  .ring.r2 .dot { width: 6px; height: 6px; }
  .ring.r1 .chip { padding: 4px; }
  .ring.r1 .chip b { display: none; }
  .chip .cm { width: 30px; height: 30px; }
  .chip .cm img { width: 20px; height: 20px; }
  .core { inset: calc(50% - 46px); width: 92px; height: 92px; border-radius: 26px; }
  .core img { width: 40px; height: 40px; }
  .core span { font-size: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .stats div { padding: 16px 18px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats dt { font-size: 28px; }
  .sec { padding-top: 60px; }
  .sec-head { margin-bottom: 24px; }
  .sec-head .cs-nav { display: none; }
  .sub { font-size: 15.5px; }
  .bgrid { grid-template-columns: 1fr; gap: 14px; }
  .bcard { min-height: 0; }
  .bcard.wide, .bcard.full, .bcard.tw { grid-column: auto; flex-direction: column; }
  .bcard.full .bc-body, .bcard.flagship .bc-body, .bcard.school .bc-body { max-width: none; }
  .bcard.full h3, .bcard.flagship h3, .bcard.school h3 { font-size: 28px; }
  .flag-art { display: none; }
  .collage { position: relative; right: auto; top: auto; translate: none; width: auto; height: auto; margin: -4px 22px 22px; }
  .collage img { position: static; width: 100%; transform: none !important; }
  .collage img + img { display: none; }
  .bc-body { padding: 22px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .steps li::after { display: none; }
  .steps h3 { margin: 4px 0 2px; font-size: 19px; }
  .steps p { grid-column: 2; }
  .cslider { margin-inline: -16px; }
  .ctrack { padding-inline: 16px; scroll-padding-inline: 16px; gap: 12px; }
  .pcard { flex-basis: 84%; }
  .cs-hint { display: block; }
  .cta { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 22px; }
  .cta .btn { width: 100%; }
  .foot { margin-top: 56px; padding-top: 32px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .foot-main { grid-template-columns: 1fr; gap: 18px; }
  .foot-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .foot-brand .logo { font-size: 19px; }
  .foot-brand .logo img { width: 26px; height: 26px; }
  .foot-tag { display: none; }
  .foot-soc { margin-top: 0; gap: 6px; }
  .foot-soc a { width: 34px; height: 34px; border-radius: 10px; }
  .foot-soc a svg { width: 16px; height: 16px; }
  .foot-cols { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .fcol { border-bottom: 1px solid var(--line); }
  .fcol summary { cursor: pointer; padding: 13px 2px; -webkit-tap-highlight-color: transparent; }
  .fcol summary h4 { margin: 0; font-size: 14px; }
  .fcol .chev { display: block; }
  .fcol[open] .chev { transform: rotate(180deg); }
  .fcol ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; }
  .fcol ul a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
  .fcol ul a::after { display: none; }
  .foot-risk { margin-top: 18px; padding: 12px 14px; gap: 10px; }
  .fr-ic { width: 26px; height: 26px; border-radius: 8px; }
  .fr-ic svg { width: 15px; height: 15px; }
  .foot-risk p { font-size: 12.5px; line-height: 1.55; }
  .foot-bar { margin-top: 14px; padding-top: 14px; flex-wrap: nowrap; gap: 10px; }
  .copy { font-size: 12px; }
  .foot-bar-r { gap: 6px; flex: none; }
  .foot-lang, .to-top { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .to-top span { display: none; }
  .to-top { width: 34px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
