/* ============================================================
   CONCEITSTUDIO — PORTFOLIO SITE
   Design System: Motion-Driven | Monochrome Zinc + Blue #2563EB
   Typography: Archivo (headings) + Space Grotesk (body)
   Generated via ui-ux-pro-max design system
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
    /* Light mode colors */
    --bg:             #FAFAFA;
    --bg-alt:         #F4F4F5;
    --surface:        #FFFFFF;
    --surface-2:      #F4F4F5;
    --border:         #E4E4E7;
    --text:           #09090B;
    --text-muted:     #52525B;
    --text-subtle:    #71717A;
    --cta:            #2563EB;
    --cta-hover:      #1D4ED8;
    --nav-bg:         rgba(250, 250, 250, 0.88);

    /* Layout */
    --nav-height:     68px;
    --section-py:     96px;
    --container:      1200px;
    --gutter:         24px;

    /* Typography */
    --font-heading:   'Archivo', sans-serif;
    --font-body:      'Space Grotesk', sans-serif;

    /* Radii */
    --radius-sm:      8px;
    --radius:         12px;
    --radius-lg:      20px;

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:      0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

    /* Transitions */
    --t-fast:         150ms ease;
    --t:              200ms ease;
    --t-slow:         300ms ease;
}

[data-theme="dark"] {
    --bg:             #09090B;
    --bg-alt:         #18181B;
    --surface:        #18181B;
    --surface-2:      #27272A;
    --border:         #3F3F46;
    --text:           #FAFAFA;
    --text-muted:     #A1A1AA;
    --text-subtle:    #71717A;
    --cta:            #2563EB;
    --cta-hover:      #3B82F6;
    --nav-bg:         rgba(9, 9, 11, 0.88);
    --shadow-sm:      0 1px 3px rgba(0,0,0,.4),  0 1px 2px rgba(0,0,0,.3);
    --shadow:         0 4px 20px rgba(0,0,0,.5),  0 1px 4px rgba(0,0,0,.3);
    --shadow-lg:      0 16px 48px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color var(--t), color var(--t);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ── 5. SKIP LINK ─────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cta);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top var(--t);
    white-space: nowrap;
}
.skip-link:focus { top: 12px; }

/* ── 6. NAVBAR ────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 100;
    border-radius: var(--radius-lg);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t), background var(--t), border-color var(--t);
}
.navbar-scrolled { box-shadow: var(--shadow); }

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding-inline: 20px;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text);
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.brand-name strong { font-weight: 800; }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-link:hover { color: var(--text); background-color: var(--surface-2); }
.nav-link.active { color: var(--text); background-color: var(--surface-2); }
.nav-link:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: var(--radius-sm); }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.theme-toggle:hover { color: var(--text); background-color: var(--surface-2); }
.theme-toggle:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* Sun/Moon icon switching */
[data-theme="dark"]  .icon-sun  { display: none;  }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none;  }
.icon-sun  { display: none;  }  /* default: dark mode */
.icon-moon { display: block; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--t-fast), background-color var(--t-fast);
}
.mobile-menu-btn:hover { color: var(--text); background-color: var(--surface-2); }
.mobile-menu-btn:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* Hamburger ↔ Close */
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-menu  { display: none;  }
.mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* ── 7. BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--t-slow);
    white-space: nowrap;
    text-decoration: none;
    border: 1.5px solid transparent;
}
.btn-primary {
    background-color: var(--cta);
    color: #fff;
    border-color: var(--cta);
}
.btn-primary:hover {
    background-color: var(--cta-hover);
    border-color: var(--cta-hover);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.btn-primary:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

.btn-ghost {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover {
    background-color: var(--surface-2);
    color: var(--text);
    border-color: var(--text-subtle);
}
.btn-ghost:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; }

/* ── 8. HERO SECTION ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.hero-orb-1 {
    width: 640px; height: 640px;
    background: rgba(37, 99, 235, 0.18);
    top: -200px; left: -160px;
    animation: orb1 11s ease-in-out infinite;
}
.hero-orb-2 {
    width: 520px; height: 520px;
    background: rgba(124, 58, 237, 0.14);
    bottom: -120px; right: -120px;
    animation: orb2 13s ease-in-out infinite;
}
.hero-orb-3 {
    width: 320px; height: 320px;
    background: rgba(8, 145, 178, 0.1);
    top: 40%; left: 55%;
    animation: orb3 9s ease-in-out infinite;
}
@keyframes orb1 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px,-50px) scale(1.06); }
}
@keyframes orb2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-35px,35px) scale(1.08); }
}
@keyframes orb3 {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%      { transform: translate(-50%,-50%) scale(1.18); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cta);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cta);
    animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1);   }
    50%      { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.04;
    color: var(--text);
}
.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--text-subtle);
    cursor: pointer;
    animation: scroll-bounce 2.6s ease-in-out infinite;
    transition: color var(--t-fast);
}
.scroll-indicator:hover { color: var(--text-muted); }
@keyframes scroll-bounce {
    0%,100% { transform: translateX(-50%) translateY(0);  }
    50%      { transform: translateX(-50%) translateY(9px); }
}

/* ── 9. SECTION SHARED ─────────────────────────────────────── */
.section { padding-block: var(--section-py); }
.section-alt { background-color: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cta);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.7;
}

/* ── 10. PRODUCTS ───────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: default;
    transition: box-shadow var(--t-slow), border-color var(--t-slow), transform var(--t-slow);
}
.app-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-5px);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.app-icon-blue   { background: linear-gradient(135deg, #2563EB, #1D4ED8); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.app-icon-purple { background: linear-gradient(135deg, #7C3AED, #6D28D9); box-shadow: 0 8px 24px rgba(124,58,237,.35); }
.app-icon-cyan   { background: linear-gradient(135deg, #0891B2, #0E7490); box-shadow: 0 8px 24px rgba(8,145,178,.35); }
.app-icon-green  { background: linear-gradient(135deg, #16A34A, #15803D); box-shadow: 0 8px 24px rgba(22,163,74,.35); }
.app-icon-orange { background: linear-gradient(135deg, #EA580C, #C2410C); box-shadow: 0 8px 24px rgba(234,88,12,.35); }
.app-icon-red    { background: linear-gradient(135deg, #DC2626, #B91C1C); box-shadow: 0 8px 24px rgba(220,38,38,.35); }

.app-icon--logo { background: none !important; box-shadow: none !important; padding: 0; }
.app-icon--logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

.app-card-meta { flex: 1; min-width: 0; }
.app-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.app-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
    display: block;
}

.app-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cta);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
    align-self: flex-start;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.app-platforms {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
}

.app-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.store-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
    text-decoration: none;
}
.store-link:hover {
    color: var(--text);
    background-color: var(--surface);
    border-color: var(--text-subtle);
    box-shadow: var(--shadow-sm);
}
.store-link:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* ── 11. SERVICES ───────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: box-shadow var(--t-slow), border-color var(--t-slow), transform var(--t-slow);
    cursor: default;
}
.service-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.28);
    transform: translateY(-3px);
}
.service-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cta);
    margin-bottom: 20px;
}
.service-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.service-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.68;
}

/* ── 12. ABOUT ─────────────────────────────────────────────── */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cta);
}
.about-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.about-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow var(--t-slow), transform var(--t-slow);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-number span { color: var(--cta); }
.stat-label {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── 13. CONTACT ───────────────────────────────────────────── */
.contact-inner {
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 12px;
}
.contact-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── 14. FOOTER ─────────────────────────────────────────────── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-top: 64px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 52px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.footer-links-group h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 16px;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--t-fast);
}
.footer-links-group a:hover { color: var(--text); }
.footer-links-group a:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 3px; }

.footer-bottom { border-top: 1px solid var(--border); padding-block: 20px; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-subtle); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    font-size: 0.83rem;
    color: var(--text-subtle);
    cursor: pointer;
    transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--text-muted); }

/* ── 15. SCROLL ANIMATIONS ──────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── 16. RESPONSIVE ─────────────────────────────────────────── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
    :root { --section-py: 72px; }

    .products-grid  { grid-template-columns: repeat(2, 1fr); }
    .services-grid  { grid-template-columns: repeat(2, 1fr); }

    .about-inner    { grid-template-columns: 1fr; gap: 48px; }

    .footer-inner   { grid-template-columns: 1fr 1fr; }
    .footer-brand   { grid-column: 1 / -1; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
    :root { --section-py: 56px; --gutter: 20px; }

    .navbar { top: 8px; left: 8px; right: 8px; }

    /* Mobile nav dropdown */
    .navbar-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 10px;
        flex-direction: column;
        gap: 2px;
        box-shadow: var(--shadow-lg);
    }
    .navbar-links.nav-open { display: flex; }
    .navbar-links .nav-link {
        width: 100%;
        padding: 10px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }
    .mobile-menu-btn { display: flex; }

    .hero-title { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }

    .products-grid  { grid-template-columns: 1fr; }
    .services-grid  { grid-template-columns: 1fr; }
    .about-stats    { grid-template-columns: 1fr 1fr; }

    .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand   { grid-column: auto; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .about-stats    { grid-template-columns: 1fr; }
    .contact-actions { flex-direction: column; align-items: stretch; }
    .contact-actions .btn { justify-content: center; }
}

/* ── 17. ACCESSIBILITY ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Prevent outline bleed on buttons that already handle it */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ═══════════════════════════════════════════════════════════
   APP CARD — overlay link support
════════════════════════════════════════════════════════════ */
.app-card {
    position: relative;
    overflow: hidden;
}

.app-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Interactive children above the overlay */
.app-card-actions,
.app-card-actions a,
.app-card-actions button {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — BREADCRUMB
════════════════════════════════════════════════════════════ */
.detail-breadcrumb {
    padding: 24px 0 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.breadcrumb-list li + li::before {
    content: "/";
    margin-right: 6px;
    opacity: 0.4;
}

.breadcrumb-list a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.breadcrumb-list a:hover { color: var(--color-text); }

.breadcrumb-list li:last-child { color: var(--color-text); }

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — HERO
════════════════════════════════════════════════════════════ */
.detail-hero {
    padding: 48px 0 56px;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.app-icon-lg {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.app-icon-lg.app-icon-blue   { background: linear-gradient(135deg,#1d4ed8,#3b82f6); box-shadow: 0 8px 32px rgba(37,99,235,.35); }
.app-icon-lg.app-icon-purple { background: linear-gradient(135deg,#6d28d9,#8b5cf6); box-shadow: 0 8px 32px rgba(109,40,217,.35); }
.app-icon-lg.app-icon-cyan   { background: linear-gradient(135deg,#0e7490,#06b6d4); box-shadow: 0 8px 32px rgba(6,182,212,.35); }
.app-icon-lg.app-icon-green  { background: linear-gradient(135deg,#15803d,#22c55e); box-shadow: 0 8px 32px rgba(22,163,74,.35); }
.app-icon-lg.app-icon-orange { background: linear-gradient(135deg,#c2410c,#f97316); box-shadow: 0 8px 32px rgba(234,88,12,.35); }
.app-icon-lg.app-icon-red    { background: linear-gradient(135deg,#b91c1c,#ef4444); box-shadow: 0 8px 32px rgba(220,38,38,.35); }

.detail-hero-text { display: flex; flex-direction: column; gap: 12px; }

.detail-category {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.detail-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0;
}

.detail-tagline {
    font-size: 1.0625rem;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 540px;
    margin: 0;
}

.platform-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 10px;
}

.detail-hero-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    grid-column: 1 / -1;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 90px;
}

.stat-pill-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.stat-pill-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — SCREENSHOT GALLERY
════════════════════════════════════════════════════════════ */
.section-gallery {
    padding: 64px 0;
    background: var(--color-surface-alt, var(--color-surface));
    overflow: hidden;
}

.screenshot-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.screenshot-strip::-webkit-scrollbar { height: 4px; }
.screenshot-strip::-webkit-scrollbar-track { background: transparent; }
.screenshot-strip::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.screenshot-thumb {
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 9/19.5;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--color-surface);
    outline-offset: 3px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.screenshot-thumb:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gallery-hint {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--color-muted);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(6px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-height: 90dvh;
    padding: 0 48px;
}

.lightbox-img {
    max-height: 75dvh;
    max-width: min(390px, 90vw);
    width: auto;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    font-size: 0.875rem;
    color: rgba(255,255,255,.7);
    text-align: center;
}

.lightbox-dots {
    display: flex;
    gap: 6px;
}

.lightbox-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    transition: background 150ms ease, transform 150ms ease;
}

.lightbox-dot.active {
    background: #fff;
    transform: scale(1.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 150ms ease;
    z-index: 2;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.2); }

.lightbox-close { top: 16px; right: 16px; position: fixed; }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — ABOUT + TECH STACK
════════════════════════════════════════════════════════════ */
.detail-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 64px 0;
    align-items: start;
}

.detail-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0 0 20px;
}

.detail-body-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-muted);
    margin: 0 0 16px;
}

.detail-tech { margin-top: 12px; }

.tech-stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 5px 12px;
    transition: border-color 150ms ease;
}

.tech-chip:hover { border-color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — FEATURES GRID
════════════════════════════════════════════════════════════ */
.features-section { padding: 64px 0; background: var(--color-surface-alt, var(--color-surface)); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease calc(var(--delay, 0ms)), transform 400ms ease calc(var(--delay, 0ms));
}

.feature-card.is-visible {
    opacity: 1;
    transform: none;
}

.feature-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(37,99,235,.12);
    display: grid;
    place-items: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.feature-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — VIDEO SECTION
════════════════════════════════════════════════════════════ */
.video-section { padding: 64px 0; }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 48px;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — RELATED APPS
════════════════════════════════════════════════════════════ */
.related-section { padding: 64px 0; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.related-card {
    text-decoration: none;
    color: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: border-color 200ms ease, transform 200ms ease;
    display: block;
}

.related-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.related-card-inner {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.related-info { flex: 1; }

.related-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 3px;
}

.related-category {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.related-arrow { color: var(--color-muted); flex-shrink: 0; }
.related-card:hover .related-arrow { color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — CTA SECTION
════════════════════════════════════════════════════════════ */
.detail-cta-section {
    padding: 80px 0;
    background: var(--color-surface-alt, var(--color-surface));
    text-align: center;
}

.detail-cta {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.detail-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0;
}

.detail-cta-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

.detail-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   DETAIL PAGE — RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .detail-about-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-icon-lg { width: 72px; height: 72px; border-radius: 16px; }

    .detail-hero-inner .app-icon-lg {
        grid-row: 1;
    }

    .detail-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

    .screenshot-thumb { width: 140px; }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-content { padding: 0 56px; }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .detail-hero { padding: 32px 0 40px; }
    .detail-stats { gap: 8px; }
    .stat-pill { padding: 8px 14px; min-width: 72px; }
    .features-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .lightbox-content { padding: 0 48px; }
}

/* ═══════════════════════════════════════════════════════════
   BLOG — PAGE HEADER
════════════════════════════════════════════════════════════ */
.blog-page-header {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--color-border);
}
.blog-page-header .page-header-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0.5rem 0 1rem;
}
.blog-page-header .page-header-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 560px;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — SHARED ATOMS
════════════════════════════════════════════════════════════ */
.blog-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.blog-tag {
    font-size: 0.72rem;
    color: var(--color-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 8px;
}
.blog-author { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.blog-meta-sep { color: var(--color-muted); }

/* ═══════════════════════════════════════════════════════════
   BLOG — FEATURED SECTION
════════════════════════════════════════════════════════════ */
.blog-featured { padding: 64px 0 48px; }
.blog-featured .section-label { margin-bottom: 1.5rem; }

.blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    border-color: color-mix(in srgb, var(--color-border) 50%, transparent);
}
.featured-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.featured-card-cover {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 18%, var(--color-surface)),
        color-mix(in srgb, var(--accent) 6%, var(--color-surface)));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.featured-card-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
}
.featured-card-emoji {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #2563EB;
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    z-index: 2;
}

.featured-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.featured-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
}
.featured-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: auto;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — RECENT POSTS SECTION
════════════════════════════════════════════════════════════ */
.blog-recent { padding: 48px 0 80px; }
.blog-recent-header { margin-bottom: 2rem; }
.blog-recent-header .section-title {
    margin: 0.4rem 0 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.blog-grid-2 { grid-template-columns: repeat(2, 1fr); }

.blog-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    border-color: color-mix(in srgb, var(--color-border) 40%, transparent);
}
.blog-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.blog-card-accent {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}
.blog-card-inner {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.blog-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-card-emoji { font-size: 1.4rem; }
.blog-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — LOAD MORE
════════════════════════════════════════════════════════════ */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}
#blog-load-more[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
#blog-load-more .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   BLOG — POST DETAIL: HEADER
════════════════════════════════════════════════════════════ */
.post-header-section {
    padding: 72px 0 48px;
    border-bottom: 1px solid var(--color-border);
}
.post-header-inner { max-width: 780px; }

.post-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1rem 0 1.25rem;
}
.post-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 1rem;
}
.post-excerpt {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 0 1.75rem;
}
.post-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.post-byline-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.post-author-name { font-size: 0.9rem; font-weight: 600; color: var(--color-text); }
.post-author-role { font-size: 0.78rem; color: var(--color-muted); }
.post-byline-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}
.post-byline-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════════
   BLOG — POST DETAIL: COVER
════════════════════════════════════════════════════════════ */
.post-cover-wrapper { padding: 32px 0 0; }
.post-cover {
    position: relative;
    height: 280px;
    border-radius: 20px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 22%, var(--color-surface)),
        color-mix(in srgb, var(--accent) 7%, var(--color-surface)));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.post-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 40%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%);
}
.post-cover-emoji {
    font-size: 5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3));
}
.post-cover-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.18;
}
.post-cover-orb-1 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: -40px;
    right: 10%;
}
.post-cover-orb-2 {
    width: 120px;
    height: 120px;
    background: var(--accent);
    bottom: -20px;
    left: 15%;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — POST DETAIL: BODY
════════════════════════════════════════════════════════════ */
.post-layout { padding: 48px 0 64px; }
.post-body-wrapper { max-width: 720px; }

.post-body { font-size: 1.05rem; line-height: 1.8; color: var(--color-text); }

.post-body .post-lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--color-text);
    font-weight: 400;
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}
.post-body h2 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin: 2.25rem 0 0.75rem;
}
.post-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 1.75rem 0 0.5rem;
}
.post-body p { margin: 0 0 1.2rem; color: var(--color-text); }
.post-body ul, .post-body ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}
.post-body li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.7;
}
.post-body li strong { color: var(--color-text); }
.post-body blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #2563EB;
    background: color-mix(in srgb, #2563EB 6%, var(--color-surface));
    border-radius: 0 8px 8px 0;
}
.post-body blockquote p {
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    opacity: 0.85;
}
.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a { color: #2563EB; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   BLOG — POST DETAIL: TAGS + AUTHOR CARD
════════════════════════════════════════════════════════════ */
.post-tags-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.post-tags-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-muted);
    flex-shrink: 0;
}
.post-tags-section .blog-tags { margin-top: 0; }

.post-author-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.post-author-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.post-author-info { display: flex; flex-direction: column; gap: 2px; }
.post-author-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin: 0; }
.post-author-card-name { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 0; }
.post-author-card-role { font-size: 0.83rem; color: var(--color-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   BLOG — POST DETAIL: RELATED POSTS
════════════════════════════════════════════════════════════ */
.post-related {
    padding: 64px 0 80px;
    border-top: 1px solid var(--color-border);
}
.post-related .section-label { margin-bottom: 0.5rem; }
.post-related .section-title { margin: 0 0 2rem; }

/* ═══════════════════════════════════════════════════════════
   BLOG — RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .blog-featured-grid { grid-template-columns: 1fr 1fr; }
    .blog-featured-grid .featured-card:last-child {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .blog-featured-grid { grid-template-columns: 1fr; }
    .blog-featured-grid .featured-card:last-child { grid-column: span 1; }
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid-2 { grid-template-columns: 1fr; }
    .post-cover { height: 200px; }
    .post-cover-emoji { font-size: 3.5rem; }
    .post-author-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
@media (max-width: 480px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-byline { gap: 10px; }
    .post-byline-divider { display: none; }
    .blog-page-header { padding: 56px 0 40px; }
    .blog-featured { padding: 40px 0 32px; }
}
