/* ==========================================================================
   ARChatok — Design System
   Every design token lives here. Edit tokens to tune; never fight the rules.
   ========================================================================== */

:root {
    --bg: #06060b;
    --bg-2: #0a0a14;
    --surface: rgba(255, 255, 255, 0.028);
    --surface-2: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);
    --text: #eceaf6;
    --muted: #a2a0b8;
    --dim: #6d6b84;
    --accent: #8b5cf6;
    --accent-2: #c084fc;
    --accent-ink: #a78bfa;
    --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 35%, transparent);
    --grad-btn: linear-gradient(135deg, #7c3aed, #a855f7);
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1160px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    --glow: 0 0 40px -8px var(--accent-glow);
    color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--text); }
a { color: var(--accent-ink); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .sr-only {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 300;
    background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 812px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 64px 0; }
.gap-24 { height: 24px; } .gap-40 { height: 40px; }
.grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, #e9d5ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon { width: 20px; height: 20px; flex: none; }
.empty-note { color: var(--dim); text-align: center; padding: 60px 0; }

/* ---------- Ambient layers & cursor glow ---------- */
.ambient { position: fixed; pointer-events: none; z-index: 0; }
.ambient-top {
    top: -240px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 520px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
}
.ambient-bottom {
    bottom: -260px; right: -180px;
    width: 760px; height: 520px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
}
.cursor-glow {
    position: fixed; top: 0; left: 0; width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
    pointer-events: none; z-index: 0; transform: translate(-999px, -999px);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.08s; } .d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; } .d-4 { transition-delay: 0.32s; } .d-5 { transition-delay: 0.4s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; line-height: 1;
    padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 28px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--accent-glow); color: #fff; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn .icon + .icon, .btn.is-loading .icon { display: none; }
.btn.is-loading .btn-label { opacity: 0.55; }
.btn.is-loading::after {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease; }
.site-header.is-scrolled { background: rgba(6, 6, 11, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand img { display: block; max-height: 44px; width: auto; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad-btn); color: #fff; font-size: 1.05rem; box-shadow: var(--glow);
}
.brand-dot { color: var(--accent-2); }
.primary-nav { margin: 0 auto; }
.nav-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { position: relative; display: block; padding: 10px 14px; color: var(--muted); font-size: 0.92rem; font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.nav-menu a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); cursor: pointer; place-items: center;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center;
    background: rgba(6, 6, 11, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .nav-menu { flex-direction: column; align-items: center; gap: 6px; transform: translateY(18px); transition: transform 0.35s ease; }
.mobile-menu.open .nav-menu { transform: none; }
.mobile-menu .nav-menu a { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); padding: 8px 20px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 150px 0 90px; position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; margin-bottom: 22px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
    font-size: 0.82rem; color: var(--muted);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero-hello { color: var(--muted); font-family: var(--font-head); margin: 0 0 6px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; font-weight: 800; margin: 0 0 12px; }
.hero-role { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--accent-ink); font-weight: 600; font-family: var(--font-head); margin: 0 0 18px; }
.hero-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 54ch; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-frame {
    position: relative; border-radius: 28px; padding: 14px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 25%, transparent), rgba(255, 255, 255, 0.04) 40%);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-frame img, .hero-frame .hero-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.hero-placeholder {
    aspect-ratio: 4 / 5; border-radius: 20px; display: grid; place-items: center;
    background: linear-gradient(160deg, #15102a, var(--bg-2));
    color: var(--accent); font-family: var(--font-head); font-size: 5rem; font-weight: 800;
}
.float-chip {
    position: absolute; display: flex; align-items: center; gap: 10px; max-width: 260px;
    padding: 12px 18px; border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
    background: rgba(12, 12, 22, 0.85); backdrop-filter: blur(10px); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-chip .icon { color: var(--accent-2); width: 18px; height: 18px; }
.float-chip strong { color: var(--accent-2); }
.chip-1 { top: 8%; left: -34px; }
.chip-2 { bottom: 16%; right: -30px; animation-delay: -3s; }
.chip-3 { bottom: -20px; left: 10%; animation-delay: -1.5s; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-12px); } }
.scroll-hint {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    color: var(--dim); text-decoration: none; font-size: 1.2rem; animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translate(-50%, 8px); } }

/* ---------- Marquee ---------- */
.marquee {
    padding: 32px 0; overflow: hidden; z-index: 1; position: relative;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 10px; margin-right: 56px; white-space: nowrap;
    font-family: var(--font-head); font-weight: 600; color: var(--dim); font-size: 1.05rem;
}
.marquee-item .icon { width: 18px; height: 18px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headings ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
    color: var(--accent-2); font-family: var(--font-head); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.sec-head-center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.sec-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.sec-desc { color: var(--muted); line-height: 1.7; margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.view-all {
    display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); text-decoration: none;
    font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 56px; white-space: nowrap;
    transition: gap 0.2s ease, color 0.2s ease;
}
.view-all:hover { color: var(--accent-2); gap: 12px; }
.view-all .icon { width: 16px; height: 16px; }

/* ---------- Grids & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; z-index: 1;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 30px -10px var(--accent-glow);
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.15rem; font-weight: 600; line-height: 1.35; margin: 6px 0 10px; }
.card-title a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.card-title a:hover { color: var(--accent-2); }
.card-excerpt { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
    font-size: 0.74rem; font-weight: 500; line-height: 1.5;
}
.chip-accent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.chip a { color: inherit; text-decoration: none; }
.card-meta, .chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tech-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.card-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.card-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    color: var(--accent-ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: color 0.2s ease;
}
.card-links .card-link { margin-top: 0; }
.card-link .icon { width: 15px; height: 15px; }
.card-link:hover { color: var(--accent-2); }
.media-placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(160deg, #16112b, var(--bg-2)); color: var(--accent);
}
.media-placeholder .icon { width: 44px; height: 44px; opacity: 0.5; }

/* ---------- Project cards ---------- */
.project-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #16112b, var(--bg-2)); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-overlay {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(6, 6, 11, 0.55); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.btn-view {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px;
    background: var(--grad-btn); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
    transform: translateY(10px); transition: transform 0.3s ease;
}
.project-card:hover .btn-view { transform: none; }
.btn-view .icon { width: 15px; height: 15px; }

/* ---------- Plugin cards ---------- */
.plugin-head { display: flex; gap: 16px; align-items: flex-start; padding: 24px 24px 0; }
.plugin-head-text { min-width: 0; }
.plugin-icon {
    width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-strong); background: var(--accent-soft);
    display: grid; place-items: center; color: var(--accent-2);
}
.plugin-icon img { width: 100%; height: 100%; object-fit: cover; }
.plugin-icon .icon { width: 28px; height: 28px; }
.plugin-icon-sm { width: 44px; height: 44px; border-radius: 12px; }
.plugin-icon-sm .icon { width: 20px; height: 20px; }
.plugin-icon-lg { width: 96px; height: 96px; border-radius: 22px; }
.plugin-icon-lg .icon { width: 40px; height: 40px; }
.plugin-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
    display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
    border: 1px solid var(--border); color: var(--muted); background: var(--surface-2);
}
.badge-premium { background: var(--grad-btn); color: #fff; border-color: transparent; }
.plugin-card .card-body { padding-top: 14px; }
.plugin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 24px 24px; margin-top: auto; padding-top: 16px; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    display: inline-grid; place-items: center; color: var(--muted); background: var(--surface);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.icon-btn .icon { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--accent-2); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.icon-btn-row { display: inline-flex; gap: 8px; }
.mini-card {
    display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px;
    text-decoration: none; transition: background 0.2s ease;
}
.mini-card:hover { background: var(--surface-2); }
.mini-card strong { display: block; color: var(--text); font-size: 0.9rem; line-height: 1.3; }
.mini-card em { color: var(--dim); font-size: 0.78rem; font-style: normal; }

/* ---------- Services ---------- */
.service-card { padding: 28px 24px; align-items: flex-start; }
.service-icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--accent-soft); color: var(--accent-2); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-4deg); box-shadow: var(--glow); }
.service-icon .icon { width: 26px; height: 26px; }

/* ---------- Stats ---------- */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 56px 0; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 15%; bottom: 15%; width: 1px; background: var(--border); }
.stat-icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); }
.stat-num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
.stat-suffix { color: var(--accent-2); font-weight: 800; font-size: 1.6rem; margin-left: 2px; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); line-height: 1.8; margin: 0 0 18px; }
.skills-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.about-card { position: relative; overflow: hidden; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.about-card::before { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); pointer-events: none; }
.fact { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact:last-of-type { border-bottom: none; }
.fact-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.fact-icon .icon { width: 18px; height: 18px; }
.fact-label { display: block; font-size: 0.72rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.fact-value { color: var(--text); font-weight: 500; text-decoration: none; font-size: 0.95rem; }
a.fact-value:hover { color: var(--accent-2); }
.cv-btn { margin-top: 18px; }

/* ---------- Testimonials ---------- */
.t-slider { max-width: 820px; margin: 0 auto; outline-offset: 6px; }
.t-viewport { overflow: hidden; border-radius: var(--radius); }
.t-track { display: flex; transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
.t-slide {
    flex: 0 0 100%; margin: 0; padding: 44px 48px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.t-quote-icon { width: 38px; height: 38px; color: var(--accent); opacity: 0.9; margin-bottom: 18px; }
.t-slide blockquote { margin: 0 0 22px; font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.t-slide blockquote p { margin: 0 0 1em; } .t-slide blockquote p:last-child { margin: 0; }
.t-stars { display: flex; gap: 4px; margin-bottom: 22px; }
.t-stars .icon { width: 16px; height: 16px; }
.star-on { color: #fbbf24; } .star-off { color: #33334a; }
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
    width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft);
    color: var(--accent-2); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.t-avatar img, .t-avatar .t-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.t-name { display: block; font-family: var(--font-head); font-weight: 600; }
.t-role { display: block; color: var(--dim); font-size: 0.85rem; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.t-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.t-btn:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.t-dots { display: flex; gap: 8px; }
.t-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.t-dot.active { width: 24px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- Blog cards ---------- */
.post-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, #16112b, var(--bg-2)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-cat { position: absolute; top: 14px; left: 14px; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 0.8rem; }
.post-meta .icon { width: 14px; height: 14px; color: var(--accent); }
.dot-sep { color: var(--dim); }
.read-more { margin-top: auto; }

/* ---------- CTA & contact form ---------- */
.cta-panel {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px;
    border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255, 255, 255, 0.02) 45%);
}
.cta-panel::before {
    content: ""; position: absolute; top: -40%; right: -20%; width: 520px; height: 520px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); pointer-events: none;
}
.cta-copy { position: relative; }
.cta-info { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.cta-info li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.cta-info .icon { color: var(--accent-2); width: 18px; height: 18px; }
.cta-info a { color: var(--text); text-decoration: none; }
.cta-info a:hover { color: var(--accent-2); }
.contact-form { position: relative; display: grid; gap: 18px; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.04em; }
.field input, .field select, .field textarea, .search-form input[type="search"] {
    width: 100%; padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input[type="search"]:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 0.9rem; border-radius: 12px; }
.form-status:empty { min-height: 0; }
.form-status.is-success { padding: 14px 16px; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.form-status.is-error { padding: 14px 16px; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.012); padding-top: 72px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin: 16px 0 22px; max-width: 34ch; }
.footer-col h3 { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a, .footer-contact a, .footer-contact span { color: var(--muted); text-decoration: none; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 9px; transition: color 0.2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-2); }
.footer-contact .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
    display: grid; place-items: center; color: var(--muted); background: var(--surface);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.social-btn .icon { width: 17px; height: 17px; }
.social-btn:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 18px -8px var(--accent-glow); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 24px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-2); }
.to-top { text-decoration: none; }

/* ---------- Single templates ---------- */
.single-hero { padding: 160px 0 40px; }
.back-link { display: inline-block; color: var(--dim); text-decoration: none; font-size: 0.88rem; margin-bottom: 20px; transition: color 0.2s ease; }
.back-link:hover { color: var(--accent-2); }
.single-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; margin: 14px 0 18px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--dim); font-size: 0.88rem; }
.single-meta .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--accent); }
.single-thumb { margin: 24px 0 0; }
.single-thumb img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; }
.tags-row a { text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-nav .card-link { margin-top: 0; max-width: 48%; }

/* Prose (post/project/plugin content) */
.prose { font-size: 1.02rem; line-height: 1.85; color: #cfcdde; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.8em 0 0.6em; line-height: 1.3; }
.prose p { margin: 0 0 1.3em; }
.prose a { color: var(--accent-2); }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin: 1.6em 0; color: var(--muted); font-style: italic; }
.prose pre { background: #0c0c16; border: 1px solid var(--border); border-radius: 12px; padding: 20px; overflow: auto; font-size: 0.9rem; }
.prose code { background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; color: var(--accent-2); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose figure { margin: 1.6em 0; }
.alignwide { width: min(1000px, 100%); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* Author box & comments */
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 56px 0 0; }
.author-box p { margin: 0 0 6px; }
.comments-area { margin-top: 56px; }
.comments-title { font-size: 1.3rem; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment-body { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; }
.comment-list .children { list-style: none; margin: 16px 0 0; padding-left: 24px; }
.comment-form p { margin: 0 0 18px; }
.comment-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 16px; color: var(--text); font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px;
}
.comment-form .submit { border: none; }
.no-comments { color: var(--dim); }

/* ---------- Project single layout ---------- */
.project-layout, .plugin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.project-side, .plugin-side { position: sticky; top: 100px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.side-title { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
.specs { margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.spec-row:last-of-type { border-bottom: none; }
.spec-row dt { color: var(--dim); margin: 0; }
.spec-row dd { color: var(--text); font-weight: 500; margin: 0; text-align: right; }
.side-actions { display: grid; gap: 10px; margin-top: 16px; }
.side-actions .btn { justify-content: center; }

/* ---------- Plugin single ---------- */
.plugin-hero { display: flex; gap: 26px; align-items: flex-start; text-align: left; }
.plugin-hero .chip-row { justify-content: flex-start; }
.plugin-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.plugin-section { margin-bottom: 56px; }
.plugin-section h2 {
    font-size: 1.4rem; padding-left: 16px; position: relative; margin: 0 0 20px;
}
.plugin-section h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.feature-list .icon { color: #34d399; width: 18px; height: 18px; margin-top: 4px; flex: none; }
.shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.shot img { display: block; width: 100%; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.03); }
.changelog {
    background: #0c0c16; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 22px; white-space: pre-wrap; font-size: 0.88rem; color: var(--muted); overflow: auto; margin: 0;
}

/* ---------- Pagination / search / filters ---------- */
.navigation.pagination { margin-top: 56px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
    border-radius: 12px; border: 1px solid var(--border); color: var(--muted);
    text-decoration: none; font-weight: 500; transition: color 0.2s ease, border-color 0.2s ease;
}
.page-numbers.current { background: var(--grad-btn); color: #fff; border-color: transparent; }
.page-numbers:hover:not(.current) { color: var(--accent-2); border-color: var(--accent); }
.search-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-chip {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
    color: var(--muted); font-size: 0.85rem; text-decoration: none; transition: all 0.2s ease;
}
.filter-chip:hover, .filter-chip.is-active { color: var(--accent-2); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- 404 & page hero ---------- */
.error-404 { text-align: center; padding: 180px 24px 120px; }
.code-404 {
    font-family: var(--font-head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; margin: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero { padding: 170px 0 40px; text-align: center; position: relative; z-index: 1; }
.page-hero .sec-title { margin-bottom: 0; }
.page-hero .sec-desc { margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { gap: 44px; }
    .float-chip { font-size: 0.8rem; }
    .chip-1 { left: -10px; } .chip-2 { right: -8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-panel { grid-template-columns: 1fr; padding: 44px; gap: 40px; }
    .project-layout, .plugin-layout { grid-template-columns: 1fr; }
    .project-side, .plugin-side { position: static; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
    .primary-nav, .header-cta { display: none; }
    .nav-toggle { display: grid; }
    .hero { padding: 130px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .stat + .stat::before { display: none; }
    .section { padding: 80px 0; }
    .sec-head { margin-bottom: 40px; }
    .view-all { margin-bottom: 40px; }
}

@media (max-width: 640px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .t-slide { padding: 30px 24px; }
    .cta-panel { padding: 32px 22px; }
    .chip-1, .chip-2 { display: none; }
    .chip-3 { left: 12px; bottom: -14px; }
    .plugin-hero { flex-direction: column; }
    .post-nav .card-link { max-width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .cursor-glow { display: none; }
    .marquee-track { animation: none; flex-wrap: wrap; }
}