/* ==========================================================================
   MyBlog — design system
   Aurora backdrop · gradient glass · light/dark themes
   Loaded after style.css; extends and recolours the base frontend styles.
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/plus-jakarta-sans-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;
}

:root {
    color-scheme: light;

    /* Surfaces */
    --bg: #f6f7fb;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --glass: rgba(255, 255, 255, .72);
    --glass-strong: rgba(255, 255, 255, .9);

    /* Ink (names used by the base stylesheet) */
    --text: #0b1020;
    --ink: #0b1020;
    --ink-soft: #4a5568;
    --muted: #8a95a8;
    --faint: #8a95a8;
    --line: rgba(15, 23, 42, .09);
    --line-strong: rgba(15, 23, 42, .16);
    --border: var(--line);

    /* Brand */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-soft: rgba(99, 102, 241, .12);
    --brand: #10b981;
    --brand-2: #0ea5e9;
    --brand-ink: #059669;
    --brand-soft: rgba(16, 185, 129, .12);
    --accent: #6366f1;
    --accent-2: #22d3ee;
    --accent-soft: rgba(99, 102, 241, .12);
    --amber: #f59e0b;
    --amber-ink: #d97706;
    --amber-soft: rgba(245, 158, 11, .14);

    --grad: linear-gradient(115deg, #10b981 0%, #0ea5e9 42%, #6366f1 100%);
    --grad-warm: linear-gradient(115deg, #f59e0b, #f43f5e 60%, #a855f7);
    --aurora-1: rgba(16, 185, 129, .28);
    --aurora-2: rgba(99, 102, 241, .26);
    --aurora-3: rgba(14, 165, 233, .22);

    --radius: 16px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 2px 8px rgba(11, 16, 32, .04);
    --shadow-md: 0 18px 40px -18px rgba(11, 16, 32, .22), 0 8px 16px -12px rgba(11, 16, 32, .16);
    --shadow-glow: 0 24px 60px -24px rgba(16, 185, 129, .45);

    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --display: 'Plus Jakarta Sans', 'Space Grotesk', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --danger: #e11d48;
    --success: #16a34a;
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #05070e;
    --bg-elev: #0c1120;
    --surface: #0e1424;
    --surface-2: #121a2e;
    --glass: rgba(14, 20, 36, .62);
    --glass-strong: rgba(10, 14, 26, .82);

    --text: #eef2fb;
    --ink: #eef2fb;
    --ink-soft: #a7b2c9;
    --muted: #6b7690;
    --faint: #6b7690;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    --primary: #818cf8;
    --primary-dark: #a5b4fc;
    --primary-soft: rgba(129, 140, 248, .16);
    --brand: #2ee6a6;
    --brand-2: #38bdf8;
    --brand-ink: #34d399;
    --brand-soft: rgba(46, 230, 166, .14);
    --accent: #818cf8;
    --accent-2: #22d3ee;
    --accent-ink: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, .16);
    --amber: #fbbf24;
    --amber-ink: #fcd34d;
    --amber-soft: rgba(251, 191, 36, .16);

    --grad: linear-gradient(115deg, #2ee6a6 0%, #38bdf8 45%, #818cf8 100%);
    --grad-warm: linear-gradient(115deg, #fbbf24, #fb7185 60%, #c084fc);
    --aurora-1: rgba(46, 230, 166, .22);
    --aurora-2: rgba(129, 140, 248, .26);
    --aurora-3: rgba(56, 189, 248, .20);

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 24px 50px -20px rgba(0, 0, 0, .7), 0 8px 20px -12px rgba(0, 0, 0, .55);
    --shadow-glow: 0 24px 70px -26px rgba(46, 230, 166, .5);
    --danger: #fb7185;
    --success: #34d399;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: #05070e; --bg-elev: #0c1120; --surface: #0e1424; --surface-2: #121a2e;
        --glass: rgba(14, 20, 36, .62); --glass-strong: rgba(10, 14, 26, .82);
        --text: #eef2fb; --ink: #eef2fb; --ink-soft: #a7b2c9; --muted: #6b7690; --faint: #6b7690;
        --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
        --primary: #818cf8; --primary-dark: #a5b4fc; --primary-soft: rgba(129, 140, 248, .16);
        --brand: #2ee6a6; --brand-2: #38bdf8; --brand-ink: #34d399; --brand-soft: rgba(46, 230, 166, .14);
        --accent: #818cf8; --accent-2: #22d3ee; --accent-soft: rgba(129, 140, 248, .16);
        --grad: linear-gradient(115deg, #2ee6a6 0%, #38bdf8 45%, #818cf8 100%);
        --aurora-1: rgba(46, 230, 166, .22); --aurora-2: rgba(129, 140, 248, .26); --aurora-3: rgba(56, 189, 248, .20);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .35);
        --shadow-md: 0 24px 50px -20px rgba(0, 0, 0, .7);
    }
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    letter-spacing: -.005em;
    overflow-x: hidden;
    transition: background .4s var(--ease), color .3s var(--ease);
}

h1,
h2,
h3 {
    font-family: var(--display);
}

h1,
h2 {
    font-weight: 750;
    letter-spacing: -.035em;
}

h3 {
    font-weight: 700;
    letter-spacing: -.02em;
}

/* Aurora + grid backdrop */
body::before {
    content: "";
    position: fixed;
    inset: -20vh -10vw;
    z-index: -2;
    background:
        radial-gradient(38vw 34vw at 12% -4%, var(--aurora-1), transparent 62%),
        radial-gradient(34vw 30vw at 92% 6%, var(--aurora-2), transparent 60%),
        radial-gradient(40vw 40vw at 70% 108%, var(--aurora-3), transparent 60%);
    filter: saturate(120%);
    animation: aurora-drift 26s ease-in-out infinite alternate;
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000 10%, transparent 72%);
    mask-image: radial-gradient(100% 80% at 50% 0%, #000 10%, transparent 72%);
    opacity: .5;
    pointer-events: none;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
}

a { color: var(--primary); text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft); color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(11, 16, 32, .5);
}
.header-inner { height: 72px; }

.brand { gap: 11px; }
.site-header .brand-mark { display: none; }
.site-header .brand::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 0 4px var(--brand-soft);
    flex: none;
}
.site-header .brand.has-logo::before { display: none; }
.brand-text {
    font-family: var(--display);
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav { gap: 8px; }
.main-nav-title { display: none; }
.main-nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover,
.main-nav a.active { color: var(--ink); background: var(--line); }

.header-search {
    background: var(--surface);
    border-color: var(--line);
    width: 210px;
    color: var(--muted);
    border-radius: var(--radius-pill);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.header-search input { color: var(--ink); }
.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.header-search-btn:hover { color: var(--ink); }
.header-search-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.header-search-btn .icon { width: 16px; height: 16px; }

.nav-toggle {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: var(--radius-pill);
    transition: color .2s var(--ease), background .2s var(--ease),
        border-color .2s var(--ease), transform .2s var(--ease);
}
.nav-toggle:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.nav-toggle.open {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 10px 24px -14px var(--primary);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-1px); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--ink);
    color: var(--bg);
    border-color: transparent;
    box-shadow: var(--shadow);
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--grad);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); color: #fff; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary .icon { width: 16px; height: 16px; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
}
.btn-lg { padding: 15px 30px; font-size: 15.5px; }

.btn-link {
    padding: 10px 6px;
    color: var(--brand-ink);
    font-weight: 600;
}
.btn-link::after {
    content: "";
    position: absolute;
    left: 6px; right: 6px; bottom: 4px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.btn-link:hover::after { transform: scaleX(1); }

/* ---------- Hero (home) ---------- */

.hero { padding: clamp(80px, 12vw, 130px) 0 80px; position: relative; }
.hero-inner { position: relative; max-width: 860px; text-align: center; margin: 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-ink);
    background: var(--brand-soft);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    margin-bottom: 26px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.hero h1,
.about h2,
.section-head h2,
.cta-inner h2 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
}
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 0 0 20px; }
.accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: clamp(16.5px, 2.2vw, 20px);
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 34px;
}
.lead p { margin: 0; }
.lead a, .about-copy a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.about-copy p { margin: 0 0 14px; }
.about-copy p:last-child { margin-bottom: 0; }
.cta-copy p { margin: 0 auto 30px; max-width: 520px; }
.cta-copy a { color: #fff; text-decoration: underline; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section heads + article cards (home) ---------- */

.section-head { text-align: center; max-width: 600px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 16.5px; }
.section-head .category-note {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}
.section-head .category-note a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.products { padding: 70px 0 80px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% -20%, var(--brand-soft), transparent 60%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    border-color: transparent;
}
.product-card:hover::before { opacity: 1; }
.product-card .card-media { border-radius: 10px; }

.product-icon {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px -10px var(--brand);
    transition: transform .35s var(--ease);
}
.product-card:hover .product-icon { transform: scale(1.06) rotate(-3deg); }
.product-icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }

.product-body { position: relative; }
.tag {
    display: inline-flex;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin-bottom: 6px;
}
.product-card h3 {
    font-family: var(--display);
    font-size: 22px;
    margin: 0 0 10px;
    letter-spacing: -.02em;
    line-height: 1.2;
    font-weight: 700;
}
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--brand-ink); }
.product-card p { color: var(--ink-soft); margin: 0 0 18px; font-size: 15px; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.feature-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    color: var(--ink-soft);
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--brand-soft);
}
.feature-list li::after {
    content: "";
    position: absolute;
    left: 6px; top: 7px;
    width: 6px; height: 3px;
    border-left: 1.6px solid var(--brand);
    border-bottom: 1.6px solid var(--brand);
    transform: rotate(-45deg);
}
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.products-grid .product-card-foot { border-top: 0; padding-top: 0; }
.products-grid .product-actions { margin-top: 14px; }
.product-actions .btn-ghost {
    margin-left: auto;
    color: #fff;
    border-color: transparent;
    background: var(--grad);
    box-shadow: 0 12px 24px -14px rgba(16, 185, 129, .78);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.product-actions .btn-ghost:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.1);
    box-shadow: 0 16px 30px -14px rgba(16, 185, 129, .9);
}
.product-actions .btn-sm { padding: 9px 14px; font-size: 13px; }
.product-actions .btn .icon { width: 14px; height: 14px; }
.text-link { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.text-link:hover { color: var(--brand-ink); }
.section-cta { text-align: center; margin-top: 40px; }

/* ---------- About + CTA (home) ---------- */

.about { padding: 70px 0 90px; }
.about-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0; }
.about p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.badge {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.badge::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s var(--ease);
}
.badge:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.badge:hover::before { transform: scaleY(1); }
.badge strong {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: -.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge span { font-size: 13.5px; color: var(--muted); }

.cta { padding: 0 0 100px; }
.cta-inner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 64px 44px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0a0f1e, #131c33 60%, #0a0f1e);
    border: 1px solid var(--line-strong);
}
.cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 70% at 15% 20%, var(--aurora-1), transparent 62%),
        radial-gradient(45% 70% at 85% 80%, var(--aurora-2), transparent 62%),
        radial-gradient(40% 60% at 60% 0%, var(--aurora-3), transparent 60%);
    animation: aurora-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
}
.cta-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
    pointer-events: none;
}
.cta-inner h2 { position: relative; z-index: 1; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.cta-inner p { position: relative; z-index: 1; color: #c7d2e6; margin: 0 auto 30px; max-width: 520px; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Blog surfaces in the new palette ---------- */

.alert-success { background: var(--brand-soft); border-color: var(--line); color: var(--brand-ink); }
.alert-error { background: rgba(251, 113, 133, .14); border-color: var(--line); color: var(--danger); }

.hero-flag { background: var(--glass-strong); color: var(--brand-ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chip-solid { background: var(--primary); color: #fff; }
.widget-title { border-bottom-color: var(--line); }
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }
.post-content blockquote { background: var(--brand-soft); border-left-color: var(--brand); }
.form-group input, .form-group textarea { background: var(--surface-2); color: var(--ink); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }

/* ---------- Contact page ---------- */

.contact-page { padding: clamp(46px, 6vw, 74px) 0 90px; }
.contact-hero { max-width: 720px; margin-bottom: 38px; }
.contact-hero h1 {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 14px 0 14px;
}
.contact-hero p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 28px; align-items: start; }
.contact-form-panel,
.contact-info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 34px;
}
.contact-panel-head { margin-bottom: 26px; }
.contact-panel-head h2,
.contact-info-card h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.025em; margin: 0 0 7px; }
.contact-panel-head p { color: var(--ink-soft); margin: 0; }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .form-group { margin-bottom: 19px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn-lg { margin-top: 4px; }

.contact-info { display: grid; gap: 20px; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 1px solid var(--line);
}
.contact-icon .icon { width: 18px; height: 18px; }
.contact-list strong { display: block; font-size: 14px; margin-bottom: 3px; }
.contact-list address,
.contact-list a,
.contact-list span { font-style: normal; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.contact-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.contact-map-head h2 { margin: 0; }
.contact-map-head a { font-size: 13px; font-weight: 600; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.contact-map-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-map-head .icon { width: 13px; height: 13px; }
.contact-map {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 980px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .contact-form-panel,
    .contact-info-card { padding: 24px; }
    .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-map { height: 220px; }
}

.site-footer {
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    margin-top: 0;
}
.footer-inner { padding: 32px 24px; }
.footer-brand strong { color: var(--ink); font-family: var(--display); }
.footer-brand p { color: var(--muted); }
.footer-copy { color: var(--muted); }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-ink); }

/* ---------- Product detail (reference-style) ---------- */

.product-detail-page { padding-top: 10px; }

.detail-hero { padding: clamp(48px, 7vw, 80px) 0 42px; position: relative; }
.detail-hero-layout { min-width: 0; }
.detail-hero-layout.has-media {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}
.detail-hero-inner { min-width: 0; max-width: none; }
.detail-hero .eyebrow { margin-bottom: 18px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 24px;
    transition: color .2s var(--ease), gap .2s var(--ease);
}
.back-link:hover { color: var(--brand-ink); gap: 10px; }

.detail-hero h1 {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -.035em;
    margin: 0 0 18px;
}
.detail-hero .lead { margin: 0 0 26px; text-align: left; max-width: 760px; }
.detail-hero .hero-actions { justify-content: flex-start; }

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: -8px 0 24px;
}

.detail-hero-media {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.detail-hero-media img {
    display: block;
    width: 100%;
    height: clamp(260px, 30vw, 480px);
    object-fit: contain;
    border-radius: calc(var(--radius-lg) - 10px);
    background: var(--surface-2);
}

@media (max-width: 700px) {
    .detail-hero-media {
        margin-top: 0;
        padding: 5px;
        border-radius: var(--radius);
    }

    .detail-hero-media img {
        height: clamp(210px, 58vw, 380px);
        border-radius: calc(var(--radius) - 6px);
    }
}

.meta-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.meta-badge {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.meta-badge:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }

.detail-section { padding: 28px 0 70px; }
.detail-section .section-head { margin-bottom: 38px; }
.overview-content { max-width: 800px; margin: 0 auto; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-ink);
    background: var(--brand-soft);
    border: 1px solid var(--line);
}
.feature h3 { min-width: 0; font-family: var(--display); font-size: 17.5px; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.new-item {
    position: relative;
    padding: 22px 34px 22px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.new-item::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.new-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.new-item strong { font-family: var(--display); font-size: 15.5px; letter-spacing: -.01em; }
.new-item span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.specs-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 52px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.specs-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 100% at 100% 0%, var(--brand-soft), transparent 55%);
    pointer-events: none;
}
.specs-grid > * { position: relative; }
.specs-grid h2 {
    font-family: var(--display);
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 16px 0;
}
.specs-grid p { color: var(--ink-soft); margin: 0; }
.spec-list { margin: 0; display: grid; }
.spec-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 600; }

.demo-cta { padding: 0 0 90px; }
.demo-cta-inner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 64px 44px;
    text-align: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0a0f1e, #131c33 60%, #0a0f1e);
    border: 1px solid var(--line-strong);
}
.demo-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 70% at 15% 20%, var(--aurora-1), transparent 62%),
        radial-gradient(45% 70% at 85% 80%, var(--aurora-2), transparent 62%),
        radial-gradient(40% 60% at 60% 0%, var(--aurora-3), transparent 60%);
    animation: aurora-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
}
.demo-cta-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
    pointer-events: none;
}
.demo-cta-inner h2 { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.demo-cta-inner p { position: relative; z-index: 1; color: #c7d2e6; margin: 0 auto 28px; max-width: 520px; }
.demo-cta-inner .btn { position: relative; z-index: 1; }

.related-product-posts { margin-top: 12px; padding-bottom: 70px; }

/* ---------- Floating quick actions ---------- */

.quick-actions {
    position: fixed;
    right: clamp(16px, 2.5vw, 28px);
    bottom: calc(clamp(18px, 2.5vw, 30px) + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.quick-action {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--glass-strong);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
        background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease),
        visibility .2s var(--ease);
}

.quick-action:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.quick-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.quick-action .icon {
    width: 22px;
    height: 22px;
}

.quick-action-wa {
    border-color: rgba(0, 0, 0, .06);
    background: #25d366;
    color: #fff;
    box-shadow: 0 16px 35px -12px rgba(37, 211, 102, .65);
}

.quick-action-wa:hover {
    background: #1ebe5a;
    box-shadow: 0 20px 42px -12px rgba(37, 211, 102, .75);
}

.quick-action-wa .icon {
    fill: currentColor;
    stroke: none;
}

.quick-action-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.9);
}

.quick-action-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.quick-action-top.is-visible:hover {
    transform: translateY(-3px) scale(1);
}

@media (max-width: 520px) {
    .quick-actions {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }

    .quick-action {
        width: 46px;
        height: 46px;
    }

    .quick-action .icon {
        width: 20px;
        height: 20px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .product-grid { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
    .main-nav a { padding: 8px 10px; }
    .header-search { width: 170px; }
    .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .site-header {
        background: var(--glass-strong);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom-color: var(--line);
    }
    .header-inner { flex-wrap: nowrap; height: 66px; padding: 10px 24px; }
    .main-nav { top: 66px; background: var(--glass-strong); }
    .header-search { width: 44px; padding: 8px; overflow: hidden; flex: 0 0 auto; }
    .header-search:focus-within { width: 100%; }
    .header-search input { width: 0; }
    .header-search:focus-within input { width: 100%; }
    .hero { padding: 70px 0 50px; }
    .products, .about { padding: 55px 0; }
    .cta { padding-bottom: 60px; }
    .cta-inner { padding: 48px 26px; }
    .badges { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .detail-hero-layout.has-media { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .detail-hero-inner { max-width: none; }
    .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .specs-grid { grid-template-columns: 1fr; gap: 34px; padding: 40px; }
}

@media (max-width: 860px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .container { padding: 0 18px; }
    .product-card { padding: 15px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .feature-grid, .new-grid { grid-template-columns: 1fr; }
    .specs-grid { padding: 30px; }
    .spec-list > div { grid-template-columns: 108px 1fr; }
    .demo-cta-inner { padding: 48px 26px; }
    .detail-hero .hero-actions { justify-content: flex-start; }
}

/* ---------- Tablet + mobile header ---------- */

@media (max-width: 1024px) {
    .site-header { position: sticky; }
    .header-inner {
        height: 68px;
        padding: 0 clamp(18px, 3vw, 24px);
        gap: clamp(8px, 1.5vw, 12px);
        flex-wrap: nowrap;
    }

    .brand { order: 1; min-width: 0; }
    .header-search { order: 2; margin-left: auto; }
    .theme-toggle { order: 3; flex: none; }
    .nav-toggle {
        order: 4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 42px;
        height: 42px;
        margin-left: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: clamp(16px, 3vw, 24px);
        right: clamp(16px, 3vw, 24px);
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: calc(100vh - 92px);
        padding: 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--glass-strong);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        backdrop-filter: blur(20px) saturate(160%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(.98);
        transform-origin: top right;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .main-nav-title {
        display: block;
        margin: 0 0 4px;
        padding: 2px 14px 10px;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 12px;
        color: var(--ink);
        font-size: 15px;
        font-weight: 600;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        color: var(--ink);
        background: var(--line);
    }

    .main-nav a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }
}

@media (max-width: 760px) {
    .header-search {
        transition: width .2s var(--ease), flex-basis .2s var(--ease),
            border-color .2s var(--ease), box-shadow .2s var(--ease);
    }

    .header-search:focus-within {
        width: 44px;
        border-color: var(--line);
        box-shadow: none;
    }

    .header-search:focus-within input { width: 0; }

    .header-search.is-open,
    .header-search.is-open:focus-within {
        flex: 1 1 auto;
        width: auto;
        margin-left: 0;
        padding: 8px 14px;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }

    .header-search.is-open input,
    .header-search.is-open:focus-within input { width: 100%; }

    .site-header.search-open .brand { display: none; }
}
