/* ==========================================================================
   CustomDevelopment.my — Custom software development
   ========================================================================== */
:root {
  --bg: #f5f6f1;
  --paper: #ffffff;
  --ink: #0b1215;
  --ink-2: #3f4a4f;
  --ink-3: #7b868a;
  --line: #e2e5dc;
  --green: #10b981;
  --green-d: #047857;
  --lime: #a3e635;
  --amber: #f59e0b;
  --dark: #0b1215;
  --dark-2: #121c20;
  --dark-line: #22313a;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(11, 18, 21, .35);
  --shadow-sm: 0 10px 24px -14px rgba(11, 18, 21, .25);
  --max: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: #e8efe9; }
.section--dark p { color: #9fb0b3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.section--dark.grid-bg { background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px); }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.12rem; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--green-d); margin-bottom: 16px; }
.tag::before { content: "//"; color: var(--ink-3); }
.section--dark .tag { color: var(--lime); }
.hl { background: linear-gradient(transparent 62%, rgba(163, 230, 53, .65) 62%); padding: 0 .08em; }
.section--dark .hl { background: none; color: var(--lime); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn--accent { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--lime); }
.btn--accent:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }
.section--dark .btn--accent, .cta .btn--accent { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--dark .btn--ghost { border-color: #fff; color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { transform: translateY(-2px); background: #1fbd5a; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(245, 246, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { color: var(--green-d); font-weight: 800; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links .lang-switch { font-family: var(--mono); font-size: .85rem; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 8px; color: var(--ink); }
.nav-links .lang-switch:hover { background: var(--ink); color: #fff; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px 16px 18px; border-bottom: 2px solid var(--ink); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .lang-switch { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 8px; }
}
@media (max-width: 520px) { .nav-cta .btn { display: none; } .logo { font-size: 1rem; } }

/* Hero */
.hero { padding: 150px 0 150px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero .lead { font-size: 1.2rem; max-width: 580px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: .8rem; padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

.visual { position: relative; }
.editor { background: var(--dark); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid #1e2b31; }
.editor-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #101a1e; border-bottom: 1px solid #1e2b31; }
.editor-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.editor-bar i:nth-child(2) { background: #fbbf24; }
.editor-bar i:nth-child(3) { background: #34d399; }
.editor-bar span { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: #7c8e93; }
.code { padding: 18px 18px 20px; font-family: var(--mono); font-size: .8rem; line-height: 1.75; color: #c9d6d8; min-height: 230px; }
.code .ln { display: block; white-space: nowrap; overflow: hidden; width: 0; animation: type 1s steps(40, end) forwards; }
.code .ln:nth-child(1) { animation-delay: .2s; }
.code .ln:nth-child(2) { animation-delay: 1s; }
.code .ln:nth-child(3) { animation-delay: 1.8s; }
.code .ln:nth-child(4) { animation-delay: 2.6s; }
.code .ln:nth-child(5) { animation-delay: 3.4s; }
.code .ln:nth-child(6) { animation-delay: 4.2s; }
.code .ln:nth-child(7) { animation-delay: 5s; }
.code .ln:nth-child(8) { animation-delay: 5.8s; }
@keyframes type { to { width: 100%; } }
.k { color: #c084fc; } .f { color: #60a5fa; } .s { color: var(--lime); } .c { color: #5f7479; } .n { color: #fbbf24; }
.app-win { position: absolute; right: -24px; bottom: -120px; width: 70%; background: var(--paper); border-radius: 14px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lime); overflow: hidden; animation: rise .8s 2.2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: .85rem; }
.app-head small { font-family: var(--mono); font-weight: 600; color: var(--green-d); font-size: .7rem; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 14px 4px; }
.app-kpis div { background: var(--bg); border-radius: 8px; padding: 7px 9px; }
.app-kpis small { display: block; font-size: .62rem; color: var(--ink-3); }
.app-kpis b { font-size: .95rem; }
.app-rows { padding: 6px 14px 12px; display: grid; gap: 5px; }
.app-rows div { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 6px; align-items: center; font-size: .7rem; padding: 6px 8px; border-radius: 6px; background: var(--bg); }
.app-rows span:last-child { justify-self: end; font-family: var(--mono); font-weight: 600; font-size: .62rem; padding: 2px 7px; border-radius: 999px; background: #d1fae5; color: var(--green-d); }
.app-rows span.w { background: #fef3c7; color: #92400e; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .visual { max-width: 560px; margin-bottom: 120px; } }
@media (max-width: 560px) { .hero { padding: 120px 0 60px; } .app-win { right: -8px; width: 92%; } .code { font-size: .7rem; } }

/* Signs */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sign { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); position: relative; }
.sign .num { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.sign h3 { font-size: 1.06rem; margin: 8px 0 6px; }
.sign p { margin: 0; font-size: .94rem; }
@media (max-width: 960px) { .signs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .signs { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.svc { padding: 30px 26px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); transition: background .15s; display: flex; flex-direction: column; }
.svc:hover { background: #f0fbe0; }
.svc .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--lime); margin-bottom: 18px; }
.svc .ic svg { width: 22px; height: 22px; }
.svc h3 { margin-bottom: 8px; }
.svc p { font-size: .95rem; }
.svc .more { margin-top: auto; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--green-d); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Quiz */
.quiz { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.quiz-q, .quiz-out { border-radius: 20px; padding: 32px; }
.quiz-q { background: var(--dark-2); border: 1px solid var(--dark-line); }
.q { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--dark-line); }
.q:last-child { border-bottom: 0; }
.q span { color: #dbe5e6; font-weight: 600; }
.switch { position: relative; flex: none; width: 58px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #2a3b43; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(26px); }
.switch input:focus-visible + i { outline: 3px solid var(--lime); outline-offset: 2px; }
.quiz-out { background: var(--lime); color: var(--ink); display: flex; flex-direction: column; }
.quiz-out .label { font-family: var(--mono); font-size: .8rem; font-weight: 600; }
.quiz-out .verdict { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 10px 0 12px; }
.quiz-out p { color: #1f2a1a; }
.bar { height: 12px; border-radius: 999px; background: rgba(11,18,21,.15); overflow: hidden; margin: 6px 0 18px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .35s; }
.quiz-out .btn { margin-top: auto; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } .quiz-q, .quiz-out { padding: 24px 20px; } }

/* Compare table */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg); }
th.us { background: var(--ink); color: var(--lime); }
td.us { background: #f4fbe8; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper); }
.step { padding: 26px 22px; border-right: 2px solid var(--ink); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--green-d); }
.step h3 { font-size: 1.08rem; margin: 10px 0 6px; }
.step small { display: block; font-family: var(--mono); color: var(--ink-3); font-size: .75rem; margin-bottom: 8px; }
.step p { font-size: .92rem; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .step { border-bottom: 2px solid var(--ink); } .step:nth-child(2n) { border-right: 0; } .step:last-child { border-bottom: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; } }

/* Models */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model { padding: 32px 28px; border-radius: 20px; background: var(--dark-2); border: 1px solid var(--dark-line); display: flex; flex-direction: column; }
.model.featured { border: 2px solid var(--lime); }
.model .k2 { font-family: var(--mono); font-size: .78rem; color: var(--lime); margin-bottom: 12px; }
.model ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.model li { display: flex; gap: 10px; color: #c9d6d8; font-size: .94rem; }
.model li svg { flex: none; width: 18px; height: 18px; color: var(--lime); margin-top: 4px; }
@media (max-width: 960px) { .models { grid-template-columns: 1fr; } }

/* Promise */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise div { padding: 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.promise svg { width: 24px; height: 24px; color: var(--green-d); margin-bottom: 12px; }
.promise h3 { font-size: 1rem; margin-bottom: 4px; }
.promise p { font-size: .9rem; margin: 0; }
@media (max-width: 960px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise { grid-template-columns: 1fr; } }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack span { font-family: var(--mono); font-size: .85rem; padding: 8px 14px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.industries { display: flex; flex-wrap: wrap; gap: 10px; }
.industries span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--paper); border: 2px solid var(--ink); font-weight: 700; font-size: .95rem; }
.industries svg { width: 18px; height: 18px; color: var(--green-d); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 40px; } }

/* Award */
.award { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px; border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lime); }
.award .medal { width: 72px; height: 72px; border-radius: 16px; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.award .medal svg { width: 36px; height: 36px; }
.award h3 { font-size: 1.4rem; margin-bottom: 6px; }
.award p { margin: 0; }
@media (max-width: 860px) { .award { grid-template-columns: 1fr; padding: 28px 22px; } }

/* FAQ */
.faq { max-width: 880px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; }
.faq details p { margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact li { display: flex; gap: 10px; color: #c9d6d8; }
.contact li svg { flex: none; width: 20px; height: 20px; color: var(--lime); margin-top: 3px; }
form.lead { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: 10px 10px 0 var(--lime); }
form.lead .full { grid-column: 1 / -1; }
form.lead label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
form.lead input, form.lead select, form.lead textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; }
form.lead textarea { min-height: 110px; resize: vertical; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: none; border-color: var(--ink); }
form.lead .btn { width: 100%; }
form.lead .note { font-size: .8rem; color: var(--ink-3); margin: 0; text-align: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form.lead { grid-template-columns: 1fr; padding: 24px 18px; } }

/* CTA */
.cta { padding: 60px 40px; border-radius: 24px; background: var(--dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #9fb0b3; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin: 0; }
.cta .btn--ghost { border-color: #fff; color: #fff; }
@media (max-width: 560px) { .cta { padding: 44px 20px; } }

/* Sub pages */
.page-hero { padding: 150px 0 60px; }
.page-hero .lead { font-size: 1.2rem; max-width: 780px; }
.crumbs { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-family: var(--mono); font-size: .8rem; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--ink); background: var(--paper); }
.jump a:hover { background: var(--ink); color: #fff; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0; border-top: 2px solid var(--ink); scroll-margin-top: 80px; }
.detail:first-child { border-top: 0; padding-top: 10px; }
.detail .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--lime); margin-bottom: 18px; }
.detail .ic svg { width: 26px; height: 26px; }
.detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.box { border-radius: 16px; background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.box h4 { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; font-weight: 600; }
.box ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; }
.box ul:last-child { margin-bottom: 0; }
.box li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.box li::before { content: "→"; color: var(--green-d); font-weight: 700; }
.box .p li::before { content: "×"; color: #dc2626; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 24px; } }

.article { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.article > * { min-width: 0; }
.toc { position: sticky; top: 100px; font-size: .9rem; padding: 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.toc h4 { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 7px; }
.toc a:hover { color: var(--green-d); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 54px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { margin: 24px 0; }
.note-box { border-left: 4px solid var(--lime); background: var(--paper); padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.note-box p:last-child { margin: 0; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 30px; } .toc { position: static; } }

/* Footer */
.site-footer { background: var(--dark); color: #c9d6d8; padding: 80px 0 30px; }
.site-footer .logo { color: #fff; margin-bottom: 18px; }
.site-footer .logo b { color: var(--lime); }
.site-footer p { color: #8fa1a5; font-size: .95rem; }
.site-footer p a { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #6f8287; margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c9d6d8; font-size: .95rem; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--dark-line); font-size: .85rem; color: #6f8287; }
.footer-bottom a { color: #c9d6d8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 26px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .code .ln { width: 100%; }
  .reveal { opacity: 1; transform: none; }
}

/* Chinese pages */
html[lang^="zh"] { --font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.28; }
html[lang^="zh"] h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
html[lang^="zh"] body { line-height: 1.8; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
}
.hero-grid > * { min-width: 0; }
@media (max-width: 560px) { .app-win { right: 0; width: 94%; } }
