/*
Theme Name: CTRL ALT AI
Theme URI: https://ctrlaltai.cloud
Author: CTRL ALT AI
Description: International AI studio theme: 10 languages, AI services, free tools, minigame demos, guides.
Version: 1.0.3
Requires PHP: 8.1
Text Domain: ctrlaltai
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/manrope-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/manrope-800-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/manrope-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-var-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Tokens ---------- */
:root {
	--bg: #07070d;
	--bg2: #0c0c16;
	--card: rgba(255, 255, 255, .045);
	--card-solid: #12121f;
	--card-hi: rgba(255, 255, 255, .075);
	--line: rgba(255, 255, 255, .1);
	--line-hi: rgba(255, 255, 255, .2);
	--ink: #f2f3fa;
	--muted: #a4a8c2;
	--dim: #7d819b;
	--c1: #22d3ee;
	--c2: #8b5cf6;
	--c3: #f43f8e;
	--ok: #34d399;
	--warn: #fbbf24;
	--bad: #fb7185;
	--grad: linear-gradient(110deg, #22d3ee 0%, #8b5cf6 48%, #f43f8e 100%);
	--grad-btn: linear-gradient(110deg, #0e7490 0%, #6d28d9 48%, #be185d 100%); /* same hues, dark enough for white text (WCAG AA >= 4.5:1 on every stop) */
	--grad-soft: linear-gradient(110deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16) 50%, rgba(244, 63, 142, .16));
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
	--font-cjk: "PingFang SC", "PingFang TC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", "Microsoft JhengHei", "Yu Gothic UI", "Meiryo", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", sans-serif;
	--font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, var(--font-cjk);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--font-cjk);
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--wrap: 1200px;
	--head-h: 72px;
}
html.l-zh-cn { --font-cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
html.l-zh-tw { --font-cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", sans-serif; }
html.l-ja { --font-cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", sans-serif; }
html.l-ko { --font-cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.is-cjk body { line-height: 1.8; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--c1); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #67e8f9; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
html.is-cjk h1, html.is-cjk h2, html.is-cjk h3, html.is-cjk h4 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code, pre, kbd { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 32px; }
.pt0 { padding-top: 0 !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { body { font-size: 16px; } .wrap { padding: 0 16px; } }

/* ---------- Components ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--c1); font: 700 .78rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
html.is-cjk .eyebrow { letter-spacing: .06em; font-size: .85rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow-glow { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.eyebrow-glow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 62ch; }
html.is-cjk .lead { line-height: 1.85; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { --b: var(--card-hi); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid var(--line-hi); border-radius: 999px; background: var(--b); color: #fff; font: 700 .97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-1px); border-color: rgba(255, 255, 255, .35); }
.btn-primary { position: relative; border: 0; background: var(--grad-btn); background-size: 160% 100%; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(244, 63, 142, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: rgba(255, 255, 255, .03); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }

.card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); backdrop-filter: blur(10px); }
a.card { display: block; color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s, background .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--line-hi); background: var(--card-hi); color: var(--ink); }
a.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
a.card:hover::after { opacity: .9; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.chip-demo { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .92rem; }
.note .ico { margin-top: 3px; color: var(--c1); }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1em; padding: .1em .45em .16em; border: 1px solid rgba(255, 255, 255, .22); border-bottom-width: 3px; border-radius: .38em; background: linear-gradient(180deg, #1f2033, #14141f); box-shadow: 0 2px 0 rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); color: #fff; font: 700 .78em/1.2 var(--font-mono); letter-spacing: 0; }
.kbd-ai { border-color: transparent; background: var(--grad) padding-box, var(--grad) border-box; box-shadow: 0 0 22px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.kbd-xl { font-size: .62em; padding: .14em .5em .2em; vertical-align: .12em; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } .grid { gap: 14px; } }

.section { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 56px 0; } }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head-hero { margin-bottom: 0; }
.sec-head-hero h1 { margin-bottom: .35em; }
.band-soft { background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .035)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 16px; } }
.step-n { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--line); color: #fff; font: 700 .85rem var(--font-mono); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.site-head.is-scrolled, .r-x .site-head { background: rgba(7, 7, 13, .78); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; text-decoration: none; }
.logo { display: inline-flex; gap: 5px; align-items: center; font-size: 1.05rem; }
.logo .kbd { font-size: .78rem; min-width: 0; padding: .28em .6em .34em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-cta-m { display: none; }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; place-items: center; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--ink); font: 700 .85rem var(--font-body); cursor: pointer; }
.lang-btn .ico { width: 18px; height: 18px; color: var(--c1); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: none; min-width: 220px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line-hi); border-radius: 14px; background: #10101b; box-shadow: var(--shadow); }
.lang.is-open .lang-list { display: block; }
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang-list a:hover { background: rgba(255, 255, 255, .07); }
.lang-list a[aria-current] { background: var(--grad-soft); color: #fff; font-weight: 700; }
@media (max-width: 1080px) {
	.nav { position: fixed; inset: var(--head-h) 0 auto 0; display: none; flex-direction: column; gap: 2px; margin: 0; padding: 16px; max-height: calc(100vh - var(--head-h)); overflow: auto; background: rgba(9, 9, 16, .97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav a { padding: 14px 12px; font-size: 1.05rem; }
	.nav-cta-m { display: block; margin-top: 8px; background: var(--grad-btn) !important; color: #fff !important; text-align: center; }
	.nav-toggle { display: grid; }
	.head-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--head-h)); padding: calc(var(--head-h) + 70px) 0 56px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: .6; animation: float 18s ease-in-out infinite alternate; will-change: transform; }
.o1 { width: 520px; height: 520px; left: -140px; top: -120px; background: radial-gradient(circle closest-side, rgba(34, 211, 238, .5), rgba(34, 211, 238, .18) 45%, transparent); }
.o2 { width: 620px; height: 620px; right: -200px; top: 40px; background: radial-gradient(circle closest-side, rgba(139, 92, 246, .55), rgba(139, 92, 246, .2) 45%, transparent); animation-delay: -6s; }
.o3 { width: 460px; height: 460px; left: 35%; bottom: -260px; background: radial-gradient(circle closest-side, rgba(244, 63, 142, .42), rgba(244, 63, 142, .15) 45%, transparent); animation-delay: -12s; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
@keyframes float { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.08; }
html.is-cjk .hero-h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.3; }
.hero-h1 .keys { display: inline-flex; align-items: center; gap: .18em; white-space: nowrap; }
.hero-h1 .plus { color: var(--dim); font-weight: 600; font-size: .6em; }
.hero-h1 > span { display: inline; }
.hero-h1 .grad-text { display: block; }
.hero-lead { margin: 20px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 420px; }
.hv-card { position: absolute; border: 1px solid var(--line-hi); border-radius: 18px; background: rgba(16, 16, 28, .72); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.hv-video { left: 0; right: 8%; top: 20px; padding: 14px; animation: bob 7s ease-in-out infinite; }
.hv-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--dim); font: 500 .75rem var(--font-mono); }
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b2c40; }
.hv-bar i:first-child { background: var(--c3); } .hv-bar i:nth-child(2) { background: var(--warn); } .hv-bar i:nth-child(3) { background: var(--ok); }
.hv-bar span { margin-left: 8px; }
.hv-frames { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 190px; }
.hv-frames span { border-radius: 10px; background: linear-gradient(135deg, #1b1c33, #23173d); position: relative; overflow: hidden; }
.hv-frames span:first-child { grid-row: span 2; background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, .55), transparent 55%), radial-gradient(circle at 70% 70%, rgba(244, 63, 142, .5), transparent 55%), #19132e; }
.hv-frames span:nth-child(2) { background: radial-gradient(circle at 60% 40%, rgba(139, 92, 246, .7), transparent 60%), #15152a; }
.hv-frames span:nth-child(3) { background: radial-gradient(circle at 40% 60%, rgba(34, 211, 238, .5), transparent 60%), #121a2a; }
.hv-frames span:nth-child(4) { grid-column: 2 / span 2; background: linear-gradient(110deg, rgba(34, 211, 238, .35), rgba(139, 92, 246, .35), rgba(244, 63, 142, .35)); }
.hv-frames span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.hv-timeline { height: 6px; margin: 14px 0 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hv-timeline span { display: block; height: 100%; background: var(--grad); animation: render 6s ease-in-out infinite; }
@keyframes render { from { width: 8%; } to { width: 100%; } }
.hv-row { color: var(--muted); font: 500 .78rem var(--font-mono); }
.hv-row b { color: var(--ok); }
.hv-flow { right: 0; top: 285px; display: flex; align-items: center; gap: 8px; padding: 14px 16px; animation: bob 8s ease-in-out -3s infinite; }
.hv-node { padding: 6px 12px; border: 1px solid var(--line-hi); border-radius: 10px; font: 600 .78rem var(--font-mono); color: var(--muted); }
.hv-node-ai { border: 0; background: var(--grad); color: #fff; box-shadow: 0 0 20px rgba(139, 92, 246, .6); }
.hv-line { width: 26px; height: 2px; background: linear-gradient(90deg, var(--line-hi), var(--c1)); }
.hv-safe { left: 4%; top: 340px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; animation: bob 9s ease-in-out -5s infinite; }
.hv-safe .ico { color: var(--ok); }
.hv-safe b { display: block; font: 700 .85rem var(--font-mono); }
.hv-safe small { color: var(--dim); font-size: .75rem; }
.hv-ok { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(52, 211, 153, .15); color: var(--ok); font: 700 .72rem var(--font-mono); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; }
.proof li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.proof b { font: 800 2.2rem/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { margin-left: 6px; color: #fff; font-weight: 700; }
.proof small { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { min-height: 400px; max-width: 520px; } .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hero { padding-top: calc(var(--head-h) + 36px); } .hero-visual { display: none; } .proof { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; } .proof li { padding: 14px; } .proof b { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .orb, .hv-card, .hv-timeline span, .hv-frames span::after { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 420px; background: radial-gradient(ellipse at 20% 50%, rgba(34, 211, 238, .18), transparent 60%), radial-gradient(ellipse at 80% 30%, rgba(139, 92, 246, .22), transparent 60%); pointer-events: none; }
.page-hero > .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--dim); font-size: .88rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Cards ---------- */
.svc-card { display: flex !important; flex-direction: column; gap: 12px; min-height: 280px; }
.svc-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.svc-card p { flex: 1; margin: 0; color: var(--muted); }
.svc-card .chip { align-self: flex-start; }
.svc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-hi); color: #fff; }
.svc-ic .ico { width: 26px; height: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--c1); font-weight: 700; font-size: .92rem; }
.tool-card { display: flex !important; gap: 14px; align-items: flex-start; padding: 20px; }
.tool-card b { display: block; margin-bottom: 4px; color: #fff; font-size: 1.02rem; }
.tool-card small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tool-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); color: var(--c1); }
.g-security .tool-ic { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); color: var(--ok); }
.g-creative .tool-ic { background: rgba(244, 63, 142, .1); border-color: rgba(244, 63, 142, .25); color: var(--c3); }
.tool-ic svg { width: 24px; height: 24px; }
.tool-ic-lg { width: 72px; height: 72px; border-radius: 18px; }
.tool-ic-lg svg { width: 36px; height: 36px; }
.game-card { text-align: center; padding: 22px 18px; }
.game-card .game-art { display: grid; place-items: center; height: 110px; margin-bottom: 10px; }
.game-card .game-art svg { max-height: 104px; width: auto; }
.game-card h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.game-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.post-card { display: flex !important; flex-direction: column; gap: 10px; }
.post-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.post-card p { flex: 1; margin: 0; color: var(--muted); font-size: .95rem; }
.post-card-lg { grid-column: span 2; background: linear-gradient(140deg, rgba(34, 211, 238, .08), rgba(139, 92, 246, .1) 55%, rgba(244, 63, 142, .08)); }
.post-card-lg h3 { font-size: 1.6rem; }
@media (max-width: 600px) { .post-card-lg { grid-column: auto; } .post-card-lg h3 { font-size: 1.25rem; } }
.post-cat { align-self: flex-start; display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(34, 211, 238, .12); color: var(--c1); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html.is-cjk .post-cat { text-transform: none; letter-spacing: 0; }
.c-security { background: rgba(52, 211, 153, .12); color: var(--ok); }
.c-case-study { background: rgba(244, 63, 142, .12); color: #fb7cb4; }
.c-minigames { background: rgba(251, 191, 36, .12); color: var(--warn); }
.c-automation { background: rgba(139, 92, 246, .16); color: #b69cff; }
.post-meta { color: var(--dim); font-size: .85rem; }

/* ---------- Home bands ---------- */
.case-band { background: radial-gradient(ellipse at 90% 20%, rgba(244, 63, 142, .14), transparent 55%), radial-gradient(ellipse at 10% 80%, rgba(34, 211, 238, .12), transparent 55%), var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.case-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.case-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); font-weight: 600; }
.case-steps li:nth-child(odd) { margin-left: 24px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; gap: 28px; } .case-steps li:nth-child(odd) { margin-left: 0; } }
.games-band { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .07), transparent); }
.games-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.games-copy .sec-head { margin-bottom: 24px; }
.game-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.game-links a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s, background .2s; }
.game-links a:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .06); color: #fff; }
.game-links .ico { margin-left: auto; color: var(--c1); }
.gl-art { display: grid; place-items: center; width: 54px; height: 40px; }
.gl-art svg { max-height: 40px; width: auto; }
.games-stage { min-width: 0; }
.stage-label { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
@media (max-width: 960px) { .games-grid { grid-template-columns: 1fr; } }
.sec-security { background: radial-gradient(ellipse at 15% 30%, rgba(52, 211, 153, .1), transparent 55%); }
.sec-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sec-list { grid-template-columns: 1fr; } }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.process li { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.process b { display: block; margin: 14px 0 6px; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.process p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 24px; }
.faq-item { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq-item summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--c1); font: 400 1.5rem var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 24px 0 96px; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, .3), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(244, 63, 142, .32), transparent 55%), linear-gradient(120deg, #151530, #1d1238); border: 1px solid var(--line-hi); }
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { margin: 0; color: #cfd0e6; max-width: 56ch; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; padding: 32px 24px; } }

/* ---------- Service page ---------- */
.svc-hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.svc-hero h1 { margin-top: 16px; }
.check-list { display: grid; gap: 14px; margin: 0; padding: 26px; list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { margin-top: 4px; padding: 2px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok); width: 20px; height: 20px; }
@media (max-width: 900px) { .svc-hero-grid { grid-template-columns: 1fr; } }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fit-list li { padding: 16px 18px 16px 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); position: relative; }
.fit-list li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 12px; height: 12px; border-radius: 4px; background: var(--grad); }
@media (max-width: 640px) { .fit-list { grid-template-columns: 1fr; } }
.get-card h3 { margin-top: 14px; }
.get-card p, .fmt-card p { margin: 0; color: var(--muted); }

/* ---------- Tools / games pages ---------- */
.grp-h { font-size: 1.3rem; color: var(--muted); }
.tool-head, .game-head { display: flex; gap: 22px; align-items: center; }
.tool-head h1, .game-head h1 { margin-bottom: .25em; }
@media (max-width: 600px) { .tool-head, .game-head { flex-direction: column; align-items: flex-start; gap: 14px; } }
.tool-body { padding: 32px; }
@media (max-width: 600px) { .tool-body { padding: 18px 14px; } }
.game-art-lg { display: grid; place-items: center; width: 140px; height: 110px; flex: none; border: 1px solid var(--line-hi); border-radius: 20px; background: rgba(255, 255, 255, .04); }
.game-art-lg svg { max-height: 92px; width: auto; }
.game-info h2 { font-size: 1.15rem; }
.game-info ol, .game-info ul { margin: 0; color: var(--muted); }
.game-info li { margin-bottom: 6px; }
.legal-box { display: flex; gap: 16px; align-items: flex-start; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .05); }
.legal-box > .ico { color: var(--warn); width: 28px; height: 28px; }
.legal-box h2 { font-size: 1.1rem; }
.legal-box p { margin: 0; color: var(--muted); }
.demo-note { display: inline-flex; gap: 8px; align-items: center; margin: 20px 0 0; padding: 8px 14px; border: 1px solid rgba(251, 191, 36, .3); border-radius: 999px; background: rgba(251, 191, 36, .08); color: var(--warn); font-size: .9rem; font-weight: 600; }
.stack-card h3 { display: flex; gap: 8px; align-items: center; }
.stack-card p { color: var(--ink); }
.aff { color: var(--warn); }
.about-grid h3 { font-size: 1.1rem; }
.about-grid p { margin: 0; color: var(--muted); }

/* ---------- Blog ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-filter a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.cat-filter a:hover { color: #fff; border-color: var(--line-hi); }
.cat-filter a[aria-current] { background: var(--grad-btn); border-color: transparent; color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; color: var(--muted); }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 14px; }
.post-hero .post-meta { margin: 0; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-bottom: 40px; }
.toc { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; max-height: calc(100vh - var(--head-h) - 48px); overflow: auto; font-size: .9rem; }
.toc-h { color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover, .toc a.is-on { color: #fff; border-left-color: var(--c1); }
@media (max-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { position: static; max-height: none; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; } }
.prose { min-width: 0; font-size: 1.06rem; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.2rem; }
.prose p, .prose li { color: #d8dae8; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--c1); }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 3px solid var(--c2); border-radius: 0 12px 12px 0; background: rgba(139, 92, 246, .08); color: #e4e2f5; }
.prose blockquote p:last-child { margin: 0; }
.prose pre { margin: 1.4em 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #0b0b14; overflow-x: auto; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.prose code { padding: .12em .4em; border-radius: 6px; background: rgba(255, 255, 255, .08); font-size: .9em; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: #fff; background: rgba(255, 255, 255, .04); }
.prose h2#summary-what-to-do + ul, .prose h2:first-child + ul { padding: 20px 20px 20px 40px; border: 1px solid var(--line); border-radius: 14px; background: var(--grad-soft); }
.prose .src-h { font-size: 1.1rem; color: var(--muted); }
.prose .src-list { font-size: .92rem; }
.ai-note { margin-top: 32px; color: var(--dim) !important; font-size: .88rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side h2 { font-size: 1.15rem; }
.next-list { margin: 0; color: var(--muted); }
.next-list li { margin-bottom: 8px; }
.mail-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; word-break: break-all; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: 32px; }
@media (max-width: 600px) { .form-card { padding: 20px 16px; } }
.lead-form p { margin: 0 0 16px; }
.lead-form label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr; gap: 0; } }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=search], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-hi); border-radius: 12px; background: rgba(0, 0, 0, .35); color: var(--ink); font: 400 1rem/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: #12121f; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
::placeholder { color: var(--dim); }
.consent label { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 400; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--c2); }
.form-err { padding: 12px 16px; border: 1px solid rgba(251, 113, 133, .4); border-radius: 12px; background: rgba(251, 113, 133, .1); color: var(--bad); }
.form-ok { text-align: center; padding: 24px 0; }
.form-ok > .ico { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: rgba(52, 211, 153, .15); color: var(--ok); }
.form-ok h2 { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: #05050a; padding: 64px 0 28px; color: var(--muted); font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { max-width: 38ch; margin-top: 16px; }
.foot-demo { font-size: .85rem; color: var(--dim); }
.foot-h { margin: 0 0 12px; color: #fff; font-weight: 700; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-bottom p { margin: 0; }
.foot-langs { display: flex !important; flex-wrap: wrap; gap: 6px 14px; }
.foot-langs li { margin: 0 !important; }
.foot-langs a { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } /* language names in their own scripts: no extra webfont download */
@media (max-width: 700px) { .orb { animation: none; } }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.e404-keys { display: flex; justify-content: center; gap: 10px; font-size: 4rem; margin-bottom: 24px; }

/* ---------- Language hint ---------- */
.lang-hint { position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; border: 1px solid var(--line-hi); border-radius: 16px; background: rgba(16, 16, 28, .95); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: .95rem; }
.lang-hint p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.prose :not(pre) > code { overflow-wrap: anywhere; } /* long inline paths (no spaces in CJK sentences) must wrap on phones */
