/**
 * Python for WordPress Development page (page-python-for-wordpress-development template).
 * Colours and type from python.org: #3776ab, #2b5b84 → #1e415e, #ffd343, Source Sans.
 * Python logo © Python Software Foundation, used to refer to the language.
 */
@font-face { font-family: "PY Sans"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/sourcesans3-latin.woff2) format("woff2"); }
@font-face { font-family: "PY Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/jetbrainsmono-latin.woff2) format("woff2"); }

.py-page, .py-hero {
	--py-blue: #3776ab;
	--py-blue2: #2b5b84;
	--py-deep: #1e415e;
	--py-ink: #13293d;
	--py-yel: #ffd343;
	--py-yel2: #ffdf76;
	--py-text: #ffffff;
	--py-text2: #c9d7e6;
	--py-muted: #8fa9c4;
	--py-line: rgba(255, 255, 255, .14);
	--py-card: rgba(255, 255, 255, .06);
	--py-sans: "PY Sans", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--py-mono: "PY Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.py-page { background: var(--py-deep); color: var(--py-text); font-family: var(--py-sans); }
.py-page *, .py-hero * { box-sizing: border-box; }

/* ---------- hero (scene built by python.js) ---------- */
.py-hero { position: relative; width: 100%; height: calc(100svh - var(--py-top, 0px)); min-height: 560px; overflow: hidden;
	background: linear-gradient(160deg, var(--py-blue2) 0%, var(--py-deep) 72%); color: var(--py-text); font-family: var(--py-sans); }
.py-scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.py-scene > * { position: absolute; margin: 0; }

.py-head { left: 0; width: 1920px; top: 70px; text-align: center; }
.py-kicker { font: 700 22px/1 var(--py-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--py-yel); margin: 0; }
.py-title { font: 900 76px/1.02 var(--py-sans); letter-spacing: -.015em; margin: 18px 0 0; color: var(--py-text); }
.py-title em { font-style: normal; color: var(--py-yel); }
.py-lead { font-size: 27px; line-height: 1.4; color: var(--py-text2); margin: 14px 0 0; }

.py-orbits { left: 0; top: 0; width: 1920px; height: 1080px; overflow: visible; pointer-events: none; }
.py-orbits ellipse { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 9; }
.py-orbits ellipse.is-ai { stroke: rgba(255, 211, 67, .28); }

.py-logo { width: 220px; height: 220px; z-index: 5; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .35)); }
.py-logo::before { content: ""; position: absolute; inset: -60px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 211, 67, .22), transparent); z-index: -1; }
.py-logo img { width: 100%; height: 100%; display: block; }

.py-sat { transform-origin: 50% 50%; white-space: nowrap; will-change: transform, opacity; }
.py-term { background: #0f2236; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; overflow: hidden;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .35); font: 500 20px/1 var(--py-mono); color: #dbe6f5; }
.py-term i { display: flex; gap: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .25); }
.py-term i b { width: 9px; height: 9px; border-radius: 50%; background: var(--py-blue); }
.py-term i b:nth-child(2) { background: var(--py-yel); }
.py-term span { display: block; padding: 12px 16px 14px; }
.py-term span::before { content: "$ "; color: var(--py-yel); }
.py-ai { padding: 14px 20px; border-radius: 999px; background: var(--py-yel); color: var(--py-ink);
	font: 800 21px/1 var(--py-sans); box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 0 26px -4px rgba(255, 211, 67, .6); }
.py-ai::before { content: "AI · "; font: 700 15px/1 var(--py-mono); opacity: .65; }

.py-btns { left: 120px; top: 930px; display: flex; gap: 14px; z-index: 6; }
.py-btn { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35);
	background: rgba(19, 41, 61, .75); color: var(--py-text); text-decoration: none; font: 700 21px/1.1 var(--py-sans); transition: border-color .2s, box-shadow .2s; }
.py-btn small { display: block; font: 400 13px/1 var(--py-mono); color: var(--py-muted); margin-top: 5px; }
.py-btn svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--py-yel); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.py-btn:hover, .py-btn:focus-visible { border-color: var(--py-yel); color: var(--py-text); box-shadow: 0 0 24px -4px rgba(255, 211, 67, .5); }

.py-go { right: 120px; top: 900px; display: flex; align-items: center; gap: 22px; height: 124px; padding: 0 24px 0 44px; border-radius: 999px; z-index: 6;
	background: var(--py-yel); color: var(--py-ink); text-decoration: none; font: 900 44px/1 var(--py-sans); --bob: 0px;
	box-shadow: 0 0 60px -10px rgba(255, 211, 67, .7), inset 0 -4px 0 rgba(0, 0, 0, .1); }
.py-go small { display: block; font: 500 15px/1 var(--py-mono); color: #6b5300; margin-top: 8px; }
.py-go__arr { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--py-deep); }
.py-go__arr svg { width: 42px; height: 42px; fill: none; stroke: var(--py-yel); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform: translateY(var(--bob)); }
.py-go:hover, .py-go:focus-visible { color: var(--py-ink); filter: brightness(1.05); }

/* portrait scene 1080x1920 */
.is-sh .py-head { width: 1080px; top: 110px; padding: 0 60px; }
.is-sh .py-title { font-size: 84px; }
.is-sh .py-lead { font-size: 32px; }
.is-sh .py-orbits { width: 1080px; height: 1920px; }
.is-sh .py-btns { left: 60px; right: 60px; top: 1560px; justify-content: space-between; flex-wrap: wrap; }
.is-sh .py-term { font-size: 27px; }
.is-sh .py-ai { font-size: 28px; padding: 16px 24px; }
.is-sh .py-go { left: 60px; right: 60px; top: 1680px; height: 140px; justify-content: space-between; }

/* ---------- sub-navigation ---------- */
.py-subnav { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; display: flex; align-items: center; gap: 6px;
	padding: 14px max(24px, calc((100% - 1200px) / 2)); background: rgba(30, 65, 94, .95); backdrop-filter: blur(10px);
	border-top: 1px solid var(--py-line); border-bottom: 1px solid var(--py-line); overflow-x: auto; scrollbar-width: none; }
.py-subnav::-webkit-scrollbar { display: none; }
.py-subnav__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--py-text); margin-right: 18px; white-space: nowrap; }
.py-subnav__brand img { width: 28px; height: 28px; }
.py-subnav a { font-size: 17px; font-weight: 600; color: var(--py-text2); padding: 9px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.py-subnav a:hover { color: var(--py-text); background: rgba(255, 255, 255, .08); }
.py-subnav a.is-on { color: var(--py-ink); background: var(--py-yel); }

/* ---------- sections ---------- */
.py-sec { max-width: 1200px; margin: 0 auto; padding: 110px 24px 40px; scroll-margin-top: 70px; }
.py-sec__num { font: 700 15px var(--py-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--py-yel); margin: 0; }
.py-sec h2 { font: 900 clamp(34px, 5vw, 60px)/1.05 var(--py-sans); letter-spacing: -.015em; margin: 14px 0 0; color: var(--py-text); }
.py-sec__lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--py-text2); max-width: 820px; margin: 18px 0 0; }
.py-sec h3 { font: 800 22px/1.25 var(--py-sans); margin: 0 0 8px; color: var(--py-text); }
.py-sec p { color: var(--py-text2); line-height: 1.6; }
.py-sec code { font-family: var(--py-mono); font-size: .88em; color: var(--py-yel2); background: rgba(0, 0, 0, .22); padding: 1px 6px; border-radius: 5px; }
.py-sec a { color: var(--py-yel); }

.py-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 40px; }
.py-card { padding: 24px; border-radius: 14px; background: var(--py-card); border: 1px solid var(--py-line); }
.py-card p { margin: 0; font-size: 17px; }
.py-card__ic { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; margin-bottom: 14px;
	background: rgba(255, 211, 67, .14); color: var(--py-yel); font: 700 15px var(--py-mono); }

/* year switcher */
.py-tabs { display: inline-flex; gap: 6px; padding: 6px; margin-top: 34px; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid var(--py-line); }
.py-tabs button { font: 800 18px/1 var(--py-sans); color: var(--py-text2); background: none; border: 0; padding: 11px 22px; border-radius: 999px; cursor: pointer; }
.py-tabs button[aria-selected="true"] { background: var(--py-yel); color: var(--py-ink); }
.py-year { display: none; margin-top: 26px; }
.py-year.is-on { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.py-stat { padding: 26px; border-radius: 14px; background: var(--py-card); border: 1px solid var(--py-line); }
.py-stat b { display: block; font: 900 52px/1 var(--py-sans); color: var(--py-yel); letter-spacing: -.01em; }
.py-stat span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--py-text2); }
.py-src { margin-top: 16px; font: 400 13px/1.5 var(--py-mono); color: var(--py-muted); }
.py-src a { color: var(--py-text2); }

/* PHP / Python switch */
.py-switch { margin-top: 34px; border-radius: 16px; overflow: hidden; border: 1px solid var(--py-line); background: #10263a; }
.py-switch__bar { display: flex; align-items: center; gap: 6px; padding: 10px; background: rgba(0, 0, 0, .25); border-bottom: 1px solid var(--py-line); }
.py-switch__bar button { font: 700 15px/1 var(--py-mono); color: var(--py-text2); background: none; border: 0; padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.py-switch__bar button[aria-selected="true"] { background: var(--py-blue); color: #fff; }
.py-switch__bar span { margin-left: auto; font: 500 14px var(--py-mono); color: var(--py-muted); padding-right: 8px; }
.py-switch pre { display: none; margin: 0; padding: 22px 24px; overflow-x: auto; font: 400 15.5px/1.6 var(--py-mono); color: #dbe6f5; background: none; border: 0; }
.py-switch pre.is-on { display: block; }
.py-switch .k { color: var(--py-yel); } .py-switch .s { color: #9be7b5; } .py-switch .c { color: #7f9bb8; } .py-switch .f { color: #8cc8ff; }

/* pipeline */
.py-flow { display: flex; align-items: stretch; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.py-flow__node { flex: 1 1 200px; padding: 20px 22px; border-radius: 14px; background: var(--py-card); border: 1px solid var(--py-line); font: 700 19px/1.2 var(--py-mono); color: var(--py-text); }
.py-flow__node small { display: block; font: 400 15px/1.45 var(--py-sans); color: var(--py-text2); margin-top: 8px; }
.py-flow__node.is-hot { border-color: var(--py-yel); box-shadow: 0 0 30px -8px rgba(255, 211, 67, .5); }
.py-flow__arr { align-self: center; color: var(--py-yel); font: 700 22px var(--py-mono); }

.py-check { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.py-check li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--py-card); border: 1px solid var(--py-line); color: var(--py-text2); line-height: 1.5; font-size: 17px; }
.py-check li::before { content: "!"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255, 211, 67, .16); color: var(--py-yel); font: 700 14px var(--py-mono); }
.py-check b { color: var(--py-text); }

.py-faq { margin-top: 32px; border-top: 1px solid var(--py-line); }
.py-faq details { border-bottom: 1px solid var(--py-line); }
.py-faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 800 20px/1.35 var(--py-sans); color: var(--py-text); }
.py-faq summary::-webkit-details-marker { display: none; }
.py-faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font: 700 24px var(--py-mono); color: var(--py-yel); transition: transform .2s; }
.py-faq details[open] summary::after { transform: rotate(45deg); }
.py-faq details p { margin: 0 0 22px; max-width: 860px; }

.py-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 34px 36px; border-radius: 18px;
	background: var(--py-yel); color: var(--py-ink); }
.py-cta h3 { color: var(--py-ink); font-size: 30px; margin: 0; }
.py-cta p { color: #4a3d00; margin: 6px 0 0; }
.py-cta a { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; background: var(--py-deep); color: #fff; font: 800 19px var(--py-sans); text-decoration: none; }
.py-cta a:hover { color: var(--py-yel); }

.py-credit { max-width: 1200px; margin: 70px auto 0; padding: 26px 24px 90px; border-top: 1px solid var(--py-line); font: 400 13px/1.6 var(--py-mono); color: var(--py-muted); }
.py-credit a { color: var(--py-text2); }

.py-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.py-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .py-reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 640px) {
	.py-sec { padding-top: 80px; }
	.py-flow__arr { transform: rotate(90deg); flex-basis: 100%; text-align: center; }
	.py-subnav__brand span { display: none; }
	.py-cta { padding: 26px 22px; }
}
