/* embeddedTR — component styles */

/* ============ NAV ============ */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.nav--scrolled { background: color-mix(in oklab, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.nav__in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 9px; box-shadow: var(--shadow-sm); }
.brandmark { border-radius: 12px; box-shadow: 0 4px 14px -6px color-mix(in oklab, var(--accent) 50%, transparent), var(--shadow-sm); flex-shrink: 0; transition: transform .2s ease; }
.brand:hover .brandmark { transform: rotate(-4deg) scale(1.04); }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand__word b { color: var(--accent); font-weight: 700; }
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in oklab, #22c55e 22%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { font-size: 14.5px; color: var(--ink-2); padding: 8px 13px; border-radius: 8px; font-weight: 500; transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: color .15s, background .15s, border-color .15s; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.nav__burger { display: none; }

/* mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10,9,8,.5); backdrop-filter: blur(4px); }
.sheet__panel { position: absolute; top: 0; right: 0; width: min(86vw, 340px); height: 100%; background: var(--paper); border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 4px; animation: slideIn .28s cubic-bezier(.2,.7,.2,1); }
.sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet__link { padding: 13px 12px; border-radius: 10px; font-weight: 500; font-size: 16px; color: var(--ink); }
.sheet__link:hover { background: var(--surface-2); }
@keyframes slideIn { from { transform: translateX(24px); } }

/* ============ HERO ============ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__glow { position: absolute; top: -30%; right: -10%; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 24%, transparent), transparent 64%); filter: blur(20px); pointer-events: none; opacity: .8; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--centered .hero__in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero--centered .kicker { justify-content: center; }
.hero--centered .hero__cta, .hero--centered .hero__trust { justify-content: center; }
.hero--centered .hero__sub { margin-inline: auto; }

.hero__copy { max-width: 620px; }
.hero__title { font-size: clamp(34px, 5.4vw, 64px); margin-top: 20px; font-weight: 700; }
.hero__title .hl { color: var(--accent); position: relative; }
.hero__sub { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.hero__trust b { color: var(--ink); }
.avatars { display: flex; }
.av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -9px; background: var(--accent); }
.av:first-child { margin-left: 0; }
.av--xs { width: 20px; height: 20px; margin: 0; border-width: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.hero__visual { width: 100%; }
.hero__visual--wide { max-width: 760px; margin: 48px auto 0; }

/* code card */
.codecard { overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(.4deg); transition: transform .3s ease; }
.hero__visual:hover .codecard { transform: rotate(0deg) translateY(-3px); }
.codecard__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: color-mix(in oklab, var(--code-bg) 88%, #fff 12%); border-bottom: 1px solid rgba(255,255,255,.07); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.codecard__file { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: #b9b1a4; }
.codecard__code { margin: 0; padding: 20px 22px; background: var(--code-bg); color: var(--code-ink); font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
.codecard__code code { font-family: inherit; }
.c-com { color: #6f7a6a; font-style: italic; } .c-pp { color: #d98a6a; } .c-str { color: #9ece6a; }
.c-kw { color: #f7768e; } .c-fn { color: #7aa2f7; } .c-ty { color: #bb9af7; } .c-num { color: #ff9e64; }
.cursor { color: var(--accent); animation: blink 1.05s steps(1) infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }
.codecard__scope { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: color-mix(in oklab, var(--code-bg) 92%, #fff 8%); border-top: 1px solid rgba(255,255,255,.07); }
.scope-label { font-family: var(--font-mono); font-size: 11px; color: #8a8276; white-space: nowrap; }
.scope-led { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 1px var(--accent); flex-shrink: 0; animation: ledblink 1s steps(1) infinite; }
@keyframes ledblink { 50% { opacity: .18; box-shadow: none; } }

/* ============ STATS ============ */
.stats-sec { border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); margin-top: 10px; letter-spacing: .02em; }

/* ============ SECTION VARIANTS ============ */
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }

/* ============ PILLARS ============ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { padding: 26px 24px 28px; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.pillar__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent); }
.pillar__key { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.pillar h3 { font-size: 19px; margin-bottom: 9px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); }

/* ============ PROJECTS ============ */
.projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); transition: all .15s; }
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter--on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter__count { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: color-mix(in oklab, currentColor 14%, transparent); }

.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proj { overflow: hidden; display: flex; flex-direction: column; }
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.proj__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-3); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj:hover .proj__img img { transform: scale(1.05); }
.proj__img--fallback { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); }
.proj__imglabel { font-family: var(--font-mono); font-size: 12px; }
.proj__badge { position: absolute; top: 12px; left: 12px; background: color-mix(in oklab, var(--code-bg) 80%, transparent); color: #fff; border: none; backdrop-filter: blur(4px); }
.proj__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.proj__sub { font-size: 11px !important; }
.proj__title { font-size: 17px; line-height: 1.2; }
.proj__desc { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.proj__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.proj__author { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.proj__foot { display: flex; align-items: center; gap: 16px; padding-top: 13px; margin-top: 4px; border-top: 1px solid var(--line); }
.metric { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.metric--mut { color: var(--ink-3); }
.proj__link { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 500; }
.proj__link:hover { gap: 8px; }

/* ============ ARTICLES ============ */
.blog-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.post { display: block; overflow: hidden; }
.post--feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__feat-img { position: relative; aspect-ratio: 16/8; background: var(--surface-3); display: grid; align-items: center; padding: 20px; overflow: hidden; border-bottom: 1px solid var(--line); }
.post__cat { position: absolute; top: 16px; left: 16px; }
.post--feat .post__body { padding: 22px 24px 26px; }
.post__title { font-size: 17px; line-height: 1.25; transition: color .15s; }
.post__title--lg { font-size: clamp(20px, 2vw, 25px); }
.post:hover .post__title { color: var(--accent); }
.post__excerpt { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post--row { display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.post--row:hover { transform: translateX(3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.post__thumb { position: relative; flex-shrink: 0; width: 108px; background: var(--surface-2); border-right: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.post__thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 70%); opacity: .6; }
.post__thumb-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--surface); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.post--row:hover .post__thumb-ic { transform: scale(1.08) rotate(-5deg); }
.post--row .post__cat { position: absolute; z-index: 1; bottom: 8px; left: 8px; }
.post--row .post__body { flex: 1; min-width: 0; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; }
.post--row .post__title { font-size: 16px; }
.post__excerpt-sm { font-size: 13px; color: var(--ink-2); margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__tags { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-3px); transition: max-height .35s cubic-bezier(.2,.7,.2,1), opacity .28s ease, transform .35s ease, margin-top .35s ease; }
.post--row:hover .post__tags { max-height: 40px; opacity: 1; transform: none; margin-top: 9px; }
.post__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; color: color-mix(in oklab, var(--accent) 55%, var(--ink-3)); background: none; border: none; padding: 0; white-space: nowrap; }
.post__meta--row { margin-top: 10px; }
.post__arrow { color: var(--ink-3); flex-shrink: 0; }
.post--row .post__arrow { align-self: center; margin-right: 16px; }
.post--row:hover .post__arrow { color: var(--accent); }

/* ============ Q&A ============ */
.qa { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.qa__aside { position: sticky; top: 96px; }
.qa__aside h2 { font-size: clamp(26px, 3vw, 38px); margin: 16px 0 14px; }
.qa__aside > p { color: var(--ink-2); font-size: 16px; }
.qa__stats { display: flex; gap: 26px; margin: 26px 0; flex-wrap: wrap; }
.qa__stats div { display: flex; flex-direction: column; }
.qa__stats b { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.qa__stats span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.qa__list { display: flex; flex-direction: column; gap: 14px; }
.qrow { display: flex; align-items: stretch; gap: 16px; padding: 18px; }
.qrow:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.qvote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); transition: all .15s; }
.qvote b { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.qvote:hover { border-color: var(--accent); color: var(--accent); }
.qvote--on { background: var(--accent); border-color: var(--accent); color: #fff; }
.qvote--on b { color: #fff; }
.qans { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--ink-2); }
.qans b { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.qans span { font-size: 10.5px; font-family: var(--font-mono); }
.qans--solved { background: color-mix(in oklab, #22c55e 12%, var(--surface)); border: 1px solid color-mix(in oklab, #22c55e 40%, transparent); color: #16a34a; position: relative; }
.qans--solved b { color: #16a34a; }
.qans__tick { position: absolute; top: 6px; right: 6px; }
.qbody { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.qtitle { font-size: 16px; line-height: 1.3; }
.qmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qtags { display: flex; gap: 6px; flex-wrap: wrap; }
.qmeta__by { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

/* ============ LIBRARIES ============ */
.libs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lib { display: block; padding: 22px 20px 20px; }
.lib:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.lib__top { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.lib__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.lib__top .metric { margin-left: auto; }
.lib__name { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.lib__desc { font-size: 13.5px; color: var(--ink-2); margin-top: 9px; min-height: 58px; }
.lib__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.lib__lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.lib__lang i { width: 10px; height: 10px; border-radius: 50%; }
.lib__inst { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

/* ============ ROADMAP / VISION ============ */
.section--vision { background: var(--surface-2); border-block: 1px solid var(--line); }
.vision { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.vision__copy { position: sticky; top: 96px; }
.vision__copy h2 { font-size: clamp(26px, 3.2vw, 42px); margin: 16px 0 16px; }
.vision__copy > p { color: var(--ink-2); font-size: 16.5px; }
.vision__cta { margin-top: 24px; }
.roadmap { list-style: none; margin: 0; padding: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.rm { position: relative; padding: 0 0 26px 42px; }
.rm:last-child { padding-bottom: 0; }
.rm__node { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; }
.rm--live .rm__node { background: #22c55e; border-color: #22c55e; box-shadow: 0 0 0 4px color-mix(in oklab, #22c55e 22%, transparent); }
.rm--progress .rm__node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }
.rm__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rm__head h3 { font-size: 17.5px; }
.rm__body p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.rm__badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-3); }
.rm__badge--live { color: #16a34a; border-color: color-mix(in oklab, #22c55e 45%, transparent); background: color-mix(in oklab, #22c55e 12%, transparent); }
.rm__badge--progress { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: var(--accent-soft); }

/* ============ CTA ============ */
.cta { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 76px); text-align: center; background: var(--ink); color: var(--paper); border: none; }
[data-theme="dark"] .cta { background: linear-gradient(160deg, #1c1814, #100e0b); border: 1px solid var(--line); }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 0%, color-mix(in oklab, var(--accent) 40%, transparent), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta .kicker::before { background: var(--accent-ink); }
.cta__title { font-size: clamp(26px, 3.6vw, 46px); margin: 16px auto 0; max-width: 16ch; color: #fff; }
.cta__sub { margin: 18px auto 0; max-width: 52ch; color: color-mix(in oklab, var(--paper) 75%, transparent); font-size: 16.5px; }
.cta__btns { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.cta__primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent); }
.cta__primary:hover { transform: translateY(-2px); }
.cta__ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.cta__ghost:hover { background: rgba(255,255,255,.08); }

/* ============ FOOTER ============ */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand { max-width: 320px; }
.footer__brand p { color: var(--ink-2); font-size: 14px; margin-top: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer__col a { display: block; font-size: 14px; color: var(--ink-2); padding: 6px 0; transition: color .15s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer__mono { font-family: var(--font-mono); font-size: 12px; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 22px; background: rgba(10,9,8,.55); backdrop-filter: blur(6px); }
.modal__card { position: relative; width: min(440px, 100%); padding: 34px 32px 30px; box-shadow: var(--shadow-lg); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { transform: translateY(12px) scale(.97); } }
.modal__x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: none; background: transparent; }
.modal__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); margin-bottom: 18px; }
.modal__ic--ok { background: color-mix(in oklab, #22c55e 14%, var(--surface)); color: #16a34a; border-color: color-mix(in oklab, #22c55e 40%, transparent); }
.modal__title { font-size: 23px; }
.modal__sub { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }
.modal__form { display: flex; gap: 10px; margin-top: 20px; }
.modal__form input { flex: 1; min-width: 0; padding: 12px 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font-family: var(--font-mono); font-size: 14px; }
.modal__form input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.modal__form .btn { flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.modal__alt { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.modal__gh { width: 100%; justify-content: center; }
.modal__done { text-align: center; }
.modal__done .modal__ic { margin-inline: auto; }

/* ============ YOUTUBE ============ */
.section--tube { background: var(--surface-2); border-block: 1px solid var(--line); }
.tube { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.tube__intro h2 { font-size: clamp(26px, 3vw, 40px); margin: 16px 0 14px; }
.tube__intro > p { color: var(--ink-2); font-size: 16.5px; }
.kicker--yt { color: #FF0000; }
.kicker--yt::before { background: #FF0000; }
.tube__channel { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.tube__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FF0000; color: #fff; flex-shrink: 0; }
.tube__cmeta { display: flex; flex-direction: column; min-width: 0; }
.tube__cmeta b { font-size: 15px; }
.tube__cmeta span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.tube__sub { margin-left: auto; background: #FF0000; color: #fff; box-shadow: 0 6px 18px -8px #FF0000; flex-shrink: 0; }
.tube__sub:hover { background: #e00; transform: translateY(-1px); box-shadow: 0 10px 24px -10px #FF0000; }

.tube__videos { display: flex; flex-direction: column; gap: 13px; }
.vid { display: flex; align-items: stretch; overflow: hidden; }
.vid:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.vid__thumb { position: relative; width: 176px; flex-shrink: 0; aspect-ratio: 16 / 9; background-color: var(--surface-3); display: grid; place-items: center; border-right: 1px solid var(--line); overflow: hidden; }
.vid__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid__thumb--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.28) 100%); }
.vid:hover .vid__img { transform: scale(1.05); }
.vid__img { transition: transform .3s ease; }
.vid__ic { position: absolute; top: 7px; left: 8px; color: var(--ink-3); opacity: .55; }
.vid__play { position: absolute; inset: 0; z-index: 2; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: #FF0000; color: #fff; display: grid; place-items: center; padding-left: 3px; box-shadow: 0 8px 18px -5px rgba(255,0,0,.55); transition: transform .2s ease; }
.vid:hover .vid__play { transform: scale(1.12); }
.vid__dur { position: absolute; z-index: 2; bottom: 7px; right: 7px; font-family: var(--font-mono); font-size: 11px; color: #fff; background: rgba(0,0,0,.78); padding: 2px 6px; border-radius: 5px; }
.vid__body { flex: 1; min-width: 0; padding: 13px 16px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.vid__title { font-size: 15.5px; line-height: 1.3; transition: color .15s; }
.vid:hover .vid__title { color: #FF0000; }
@media (max-width: 1080px) { .tube { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .vid { flex-direction: column; }
  .vid__thumb { width: 100%; border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .proj-grid, .libs { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .qa, .vision { grid-template-columns: 1fr; }
  .qa__aside, .vision__copy { position: static; }
}
@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: inline-grid; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
  .proj-grid, .libs, .pillars { grid-template-columns: 1fr; }
  .modal__form { flex-direction: column; }
  .qrow { flex-wrap: wrap; }
  .qbody { flex-basis: 100%; order: 3; }
}
