:root {
    /* Colors - Premium Corporate Palette (Default Dark) */
    --brand-primary: #0071e3;
    --brand-secondary: #005bb5;
    --brand-accent: #5ac8fa;
    --gradient-brand: linear-gradient(135deg, #0071e3 0%, #5ac8fa 100%);

    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #121212;
    --bg-glass: rgba(0, 0, 0, 0.85);

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;

    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #121212;
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: #0071e3;

    /* Typography */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.7);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-card: 32px;
    --container-max: 1280px;
    --section-padding: 100px;
}

[data-theme="light"] {
    --bg-primary: #fbfbfd;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --border-color: rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    --input-border: rgba(0, 0, 0, 0.12);
}


html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--brand-secondary);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
}

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 760px;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 113, 227, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 60px rgba(0, 113, 227, 0.8);
    }
}

@keyframes ringExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 90%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* ── Floating Background Orbs & Particles ────────────────── */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 5;
    /* Behind all interactive content */
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 237, 255, 0.12);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(0, 237, 255, 0.08);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(0, 113, 227, 0.12);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

/* Vertical Particles (Starfield) */
.particles-container {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleUp 15s linear infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, 100px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

@keyframes particleUp {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}


/* ── Buttons ──────────────────────────────────────────────── */
.smo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
    /* Pill shaped buttons */
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
}

.smo-btn-primary {
    background: #000000;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 237, 255, 0.5);
    border: 1px solid rgba(0, 237, 255, 0.3);
}

.smo-btn-primary:hover {
    background: #111;
    color: #00EDFF;
    box-shadow: 0 0 25px rgba(0, 237, 255, 0.8);
    transform: translateY(-2px);
}

.smo-btn-generate {
    width: 100%;
    padding: 18px 36px;
    font-size: 1.15rem;
    font-weight: 600;
    background: #000000;
    color: #fff;
    border-radius: 9999px;
    /* Huge pill radius */
    border: 1px solid rgba(0, 237, 255, 0.4);
    box-shadow: 0 4px 24px rgba(0, 237, 255, 0.4), inset 0 0 12px rgba(0, 237, 255, 0.2);
}

.smo-btn-generate:hover {
    background: #111;
    color: #00EDFF;
    box-shadow: 0 8px 32px rgba(0, 237, 255, 0.6), inset 0 0 20px rgba(0, 237, 255, 0.3);
    border-color: rgba(0, 237, 255, 0.8);
    transform: translateY(-2px);
}

.smo-btn-download {
    background: #ffffff;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.smo-btn-download:hover {
    background: #f5f5f7;
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.smo-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.smo-btn-ghost:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(0, 113, 227, 0.05);
}

/* ── Form Elements ────────────────────────────────────────── */
.smo-input,
.smo-select {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.smo-input:focus,
.smo-select:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.smo-input::placeholder {
    color: var(--text-muted);
}

.smo-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.smo-select--sm {
    padding: 8px 36px 8px 14px;
    font-size: 0.875rem;
}

.form-label {
    display: block;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* ── HEADER ───────────────────────────────────────────────── */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: transparent;
    height: 90px;
    transition: var(--transition);
}

/* Solid state for non-home pages or scrolled state */
body:not(.is-home) .site-header,
.site-header.is-scrolled {
    position: sticky;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.pi-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.pi-logo-a {
    width: 38px;
    height: 38px;
    background: url(../images/pi-logo-a.png) no-repeat center/contain;
}

.pi-logo-b {
    width: 28px;
    height: 28px;
    background: url(../images/pi-logo-b.png) no-repeat center/contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

/* Nav Menu */
.primary-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.nav-menu,
#primary-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    text-decoration: none;
}

body:not(.is-home) .nav-menu li a {
    color: var(--text-secondary);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: #fff;
}

body:not(.is-home) .nav-menu li a:hover,
body:not(.is-home) .nav-menu li.current-menu-item a {
    color: var(--brand-primary);
}

@media (max-width: 1024px) {
    .primary-nav {
        position: fixed;
        inset: 0;
        background: #000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: none;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav-menu li a {
        font-size: 1.5rem;
    }
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    height: 44px;
    padding: 0 16px;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    color: var(--text-primary);
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="dark"] .theme-toggle {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}


.theme-toggle:hover {
    border-color: var(--brand-primary);
}

.toggle-icon {
    font-size: 1.1rem;
}



.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-lg), var(--inner-glow);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.lang-dropdown li a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Logo Refinement */
.site-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff !important;
    white-space: nowrap;
}

body:not(.is-home) .site-logo-text {
    color: var(--text-primary) !important;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-brand);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.logo-icon img {
    /* No inversion in light mode - keeps original icon colors */
}

[data-theme="dark"] .logo-icon img {
    filter: brightness(0) invert(1);
}


/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: 2001;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

body:not(.is-home) .hamburger-bar {
    background: var(--text-primary);
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.pi-hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #000;
    padding: 80px 0 80px;
}

.video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.target-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 0 60px rgba(0, 237, 255, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    margin: 0 auto 16px;
    line-height: 1.5;
    font-weight: 450;
}

/* ── GENERATOR CARD ────────────────────────────────────────── */
.generator-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-card);
    /* Big bento radius */
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 100px rgba(0, 237, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.generator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00EDFF, #0071E3);
}


.generator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group--topic .topic-input-wrap {
    position: relative;
}

.topic-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    z-index: 1;
    pointer-events: none;
}

.topic-input {
    padding-left: 48px;
    padding-right: 56px;
    font-size: 1.05rem;
}

.smo-btn-inline-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(0, 237, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 237, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
}

.smo-btn-inline-submit:hover {
    background: #111;
    color: #00EDFF;
    border-color: rgba(0, 237, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 237, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.option-checkbox:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--brand-primary);
}

.option-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.option-checkbox input:checked~.checkbox-box {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.checkbox-box::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-checkbox input:checked~.checkbox-box::after {
    display: block;
}

.option-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.option-checkbox input:checked~.option-label {
    color: var(--text-primary);
}

.smo-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-sm);
    color: #EF4444;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-text[hidden],
.btn-loading[hidden] {
    display: none !important;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.generator-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .generator-counter {
    color: var(--text-muted);
}

/* Hero Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.hero-tag {
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.hero-tag:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}


/* ── LOADING SECTION ──────────────────────────────────────── */
.loading-section {
    padding: 80px 0;
}

.loading-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.loading-card .loading-title {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 237, 255, 0.3);
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}

.loading-orb {
    position: absolute;
    inset: 20%;
    background: var(--gradient-brand);
    border-radius: 50%;
    animation: orbPulse 2s ease-in-out infinite;
}

.loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 113, 227, 0.4);
    animation: ringExpand 2s ease-out infinite;
}

.loading-ring--2 {
    animation-delay: 1s;
}

.loading-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.loading-progress {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: progressFill 18s ease-out forwards;
}

/* ── RESULTS SECTION ──────────────────────────────────────── */
.results-section {
    padding: 40px 0 80px;
}

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.results-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
}

.results-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Slides Container */
.slides-container {
    display: grid;
    gap: 24px;
}

/* Individual Slide Card — Clean White Slidemake-style Layout */
.slide-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    color: #1a1a1a;
    transition: var(--transition);
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.slide-card::before {
    display: none;
    /* Remove geometric background pattern */
}

/* slide-card-inner is always a simple flex column — NOT a grid */
.slide-card-inner {
    position: relative;
    padding: 48px 56px 40px;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 520px; /* Ensure a consistent professional height */
    justify-content: flex-start;
}

.slide-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 32px 0;
    padding-bottom: 20px;
    color: #111111;
    display: block;
    line-height: 1.15;
    padding-right: 100px;
    /* space for slide number */
    border-bottom: 4px solid #3b82f6;
}

/* Removed old ::after styling completely to fix 'two lines' bug */

/* ── Body row: bullets LEFT, image RIGHT ─────────────── */
.slide-body-flex {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
    width: 100%;
    flex-grow: 1;
}

/* Bullets column — takes remaining space */
.slide-bullets {
    flex: 1;
    min-width: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-bullet {
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
    line-height: 1.5;
    font-weight: 450;
    color: #374151;
    margin-bottom: 24px;
    display: block;
    position: relative;
    padding-left: 0;
}

.slide-concept-overview {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    line-height: 1.45;
    color: #111;
    margin-bottom: 32px;
    font-weight: 500;
    border-left: 5px solid rgba(59, 130, 246, 0.3);
    padding-left: 20px;
}

.slide-extra-info-box {
    background: rgba(59, 130, 246, 0.04) !important;
    padding: 24px !important;
    border-radius: 14px !important;
    margin-top: 32px !important;
    border-left: 8px solid #3b82f6 !important;
}

.slide-technical-insight,
.slide-real-world-example {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
    color: #1f2937 !important;
    margin-bottom: 12px;
}

.slide-bullet-dot {
    display: none;
}

/* Slide number — top right, outside flow */
.slide-number {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
}

/* Image column — fixed 320px wide, always on right */
.slide-card.has-image .slide-card-inner {
    /* No grid — body-flex handles the split */
    display: flex;
    flex-direction: column;
    padding: 48px 56px 40px;
}

.slide-card.has-image .slide-body-flex {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
}

.slide-card.has-image .slide-bullets {
    flex: 1;
    min-width: 0;
}

.slide-card.has-image .slide-image-container {
    flex: 0 0 320px;
    width: 320px;
    margin-top: 0;
}

/* Image elements */
.slide-image-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 320px;
    width: 320px;
    margin-top: 0;
}

.slide-image-wrapper {
    display: flex;
    flex-direction: column;
}

.slide-active-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide-image-meta {
    padding: 5px 0 0;
}

.image-source-link {
    font-size: 0.72rem;
    color: #3b82f6;
    text-decoration: none;
    display: block;
}

/* Theme overrides — keep existing themes but update base white card */
.slide-theme-cosmic {
    background: #0D0D1A !important;
    color: #fff;
}

.slide-theme-cosmic .slide-title {
    color: #7C3AED;
    font-family: Georgia, serif;
    border-bottom: 2px solid #7C3AED;
}

.slide-theme-cosmic .slide-bullet {
    color: #D4CCFF;
}

.slide-theme-midnight {
    background: #0F172A !important;
    color: #fff;
}

.slide-theme-midnight .slide-title {
    color: #60A5FA;
    font-family: Georgia, serif;
    border-bottom: 2px solid #60A5FA;
}

.slide-theme-midnight .slide-bullet {
    color: #CBD5E1;
}

.slide-theme-aurora {
    background: #064E3B !important;
    color: #fff;
}

.slide-theme-aurora .slide-title {
    color: #6EE7B7;
    font-family: Georgia, serif;
    border-bottom: 2px solid #10B981;
}

.slide-theme-aurora .slide-bullet {
    color: #D1FAE5;
}

.slide-theme-ember {
    background: #450A0A !important;
    color: #fff;
}

.slide-theme-ember .slide-title {
    color: #FCA5A5;
    font-family: Georgia, serif;
    border-bottom: 2px solid #EF4444;
}

.slide-theme-ember .slide-bullet {
    color: #FEE2E2;
}

.slide-theme-ocean {
    background: #0C4A6E !important;
    color: #fff;
}

.slide-theme-ocean .slide-title {
    color: #7DD3FC;
    font-family: Georgia, serif;
    border-bottom: 2px solid #0EA5E9;
}

.slide-theme-ocean .slide-bullet {
    color: #E0F2FE;
}

.slide-theme-forest {
    background: #1A2F1A !important;
    color: #fff;
}

.slide-theme-forest .slide-title {
    color: #86EFAC;
    font-family: Georgia, serif;
    border-bottom: 2px solid #22C55E;
}

.slide-theme-forest .slide-bullet {
    color: #DCFCE7;
}

.slide-theme-minimal {
    background: #FFFFFF !important;
    color: #111111;
}

.slide-theme-minimal .slide-title {
    color: #111111;
    font-family: Georgia, serif;
    border-bottom: 2px solid #3b82f6;
}

.slide-theme-minimal .slide-bullet {
    color: #374151;
}

.slide-theme-corporate {
    background: #1E293B !important;
    color: #F1F5F9;
}

.slide-theme-corporate .slide-title {
    color: #F59E0B;
    font-family: Georgia, serif;
    border-bottom: 2px solid #F59E0B;
}

.slide-theme-corporate .slide-bullet {
    color: #F1F5F9;
}

/* All dark themes: hide bullet dot, use paragraph style */
.slide-theme-cosmic .slide-bullet-dot,
.slide-theme-midnight .slide-bullet-dot,
.slide-theme-aurora .slide-bullet-dot,
.slide-theme-ember .slide-bullet-dot,
.slide-theme-ocean .slide-bullet-dot,
.slide-theme-forest .slide-bullet-dot,
.slide-theme-corporate .slide-bullet-dot {
    display: none;
}

/* References Slide Styling */
.slide-references {
    background: #f8f9fa !important;
    border-left: 4px solid #3b82f6 !important;
}

.slide-references .slide-title {
    color: #1d4ed8 !important;
}

.slide-references .slide-bullet {
    font-size: 0.88rem;
    color: #6b7280;
    font-family: var(--font-mono);
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

@media (min-width: 1024px) {
    .section-title {
        white-space: nowrap;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.view-all-link {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 0.9rem;
}

.view-all-link:hover {
    color: var(--brand-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.3s;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── FEATURES SECTION ─────────────────────────────────────── */
.features-section {
    padding: var(--section-padding) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── BLOG SECTION ─────────────────────────────────────────── */
.blog-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-card-img-wrap {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.cat-badge {
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--brand-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-card-title {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--brand-primary);
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.meta-sep {
    margin: 0 6px;
}

.post-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.post-card-link:hover {
    color: var(--brand-secondary);
}

/* ── ARCHIVE HERO ─────────────────────────────────────────── */
.main-wrap {
    padding-top: 72px;
    min-height: calc(100vh - 72px);
}

.archive-hero {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.archive-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.archive-description {
    color: var(--text-muted);
}

/* ── SINGLE ARTICLE ───────────────────────────────────────── */
.single-article {
    padding: 40px 0 80px;
}

.article-header {
    margin-bottom: 32px;
}

.article-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-featured-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 24px 0;
}

.featured-img {
    width: 100%;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2,
.article-content h3 {
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-tags {
    margin: 32px 0;
}

.tags-label {
    font-weight: 600;
}

.author-bio {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.author-avatar {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.author-bio-name {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ── PAGE ARTICLE ─────────────────────────────────────────── */
.page-article {
    padding: 40px 0 80px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-featured-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 24px 0;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ── 404 PAGE ─────────────────────────────────────────────── */
.error-404-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-404-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-404-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.error-404-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.error-404-search {
    max-width: 400px;
    margin: 0 auto;
}

/* ── NO RESULTS ───────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results h2 {
    margin-bottom: 16px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── FAQ PREMIUM STYLING ───────────────────────────────────── */
.faq-section {
    padding: 40px 0;
    background: #fbfbfd !important;
}

.faq-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 48px;
    color: #111;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.is-active {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    gap: 20px;
}

.faq-question-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.is-active .faq-icon {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-panel {
    overflow: hidden;
}

.faq-panel-inner {
    padding: 0 32px 32px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-panel-inner p {
    margin: 0;
}

@media (max-width: 640px) {
    .faq-trigger {
        padding: 20px;
    }
    .faq-panel-inner {
        padding: 0 20px 20px;
    }
    .faq-question-text {
        font-size: 1.05rem;
    }
}

/* ── SEO CONTENT REFINEMENT ─────────────────────────────── */
.seo-section {
    padding: 40px 0;
    background: #ffffff;
}

.seo-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
    line-height: 1.1;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    padding: 48px;
    background: #f9fafb;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-content p {
    margin-bottom: 24px;
}

.seo-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: #111;
}

.seo-content ul {
    margin: 24px 0;
    padding: 0;
}

.seo-content li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.seo-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: 700;
}

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

    .seo-content {
        columns: 1;
    }
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.wp-pagenavi,
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin: 48px 0;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.post-navigation {
    margin: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-previous a,
.nav-next a {
    font-weight: 600;
    color: var(--brand-primary);
}

/* Footer styles moved to PI COMPONENTS section at bottom */

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-inner {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-generator-card {
        padding: 24px 16px;
    }
}


/* ── ADDITIONAL UI REFINEMENTS ────────────────────────────── */

/* Slide Image Layout — overrides cleared, handled by rules at top of file */
.slide-card.has-image .slide-card-inner {
    /* flex-column — splitting is done inside slide-body-flex */
    display: flex;
    flex-direction: column;
}

.slide-image-placeholder {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
}

.sip-icon {
    font-size: 2.5rem;
    opacity: 0.6;
}

.sip-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sip-prompt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

/* On mobile, stack image below text */
@media (max-width: 680px) {
    .slide-card.has-image .slide-body-flex {
        flex-direction: column;
    }

    .slide-card.has-image .slide-image-container,
    .slide-image-container {
        flex: unset;
        width: 100%;
    }

    .slide-active-image {
        height: 180px;
    }
}

/* Dark Mode Logic for New Elements */
[data-theme="dark"] .option-checkbox {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .slide-image-placeholder {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .option-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .option-checkbox:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* ── TEMPLATE SHOWCASE ───────────────────────────────────── */
/* ── FEATURES BENTO GRID ─────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    /* Bento box radius */
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
}


.feature-svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* ── HOW IT WORKS GLASSY ─────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}


.step-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-card);
    /* Bento box radius */
    padding: 48px 40px;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-primary);
    opacity: 0.05;
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-svg {
    width: 40px;
    height: 40px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── SECTION PADDING & PI.INC STRIPING ──────────────────────────────────────── */
.how-section,
.features-section,
.templates-section,
.blog-section {
    padding: 40px 0;
}

/* ── PREMIUM LIGHT MODE FOR CONTENT SECTIONS ── */
.templates-section,
.how-section,
.blog-section,
.results-section {
    background: #fbfbfd !important;
    /* Apple-style ultra-light grey */
}

/* Clean Dark Typography */
.templates-section .section-title,
.how-section .section-title,
.blog-section .section-title,
.results-section .results-title {
    color: #111111 !important;
    text-shadow: none !important;
    font-weight: 800;
}

.how-section .section-subtitle,
.blog-section .section-subtitle {
    color: #4b5563 !important;
    text-shadow: none !important;
}

/* Premium White Bento Cards */
.template-card,
.step-card,
.post-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.template-card:hover,
.step-card:hover,
.post-card:hover {
    background: #ffffff !important;
    border-color: rgba(0, 113, 227, 0.3) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Card Text Coloring (Light Mode) */
.template-card .template-title,
.step-card h3,
.post-card-title a {
    color: #111111 !important;
    font-weight: 700 !important;
}

.template-card .template-meta,
.step-card p,
.post-card-excerpt {
    color: #6b7280 !important;
}

/* ── FORCE DARK MODE FOR FEATURES SECTION ── */
.features-section,
.premium-features-section {
    background: #0B0E14 !important;
    /* Very dark blue/black */
    padding: 80px 0 !important;
}

.features-section .section-title,
.features-section .section-subtitle,
.premium-features-section .section-title,
.premium-features-section .section-subtitle {
    color: #ffffff !important;
    text-shadow: none !important;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #ffffff !important;
}

.feature-card h3 {
    color: #ffffff !important;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ── TEMPLATE GRID SYMMETRY ──────────────────────────────── */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 640px) {

    .features-grid,
    .steps-grid,
    .template-grid {
        grid-template-columns: 1fr;
    }
}


.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 16px;
}

.template-thumb-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.template-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fallback-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    z-index: 5;
    position: relative;
}

.fallback-preview {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.3;
}

.fb-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
}

.fb-line-1 { width: 100%; }
.fb-line-2 { width: 80%; }
.fb-line-3 { width: 50%; }

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 113, 227, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.btn-preview {
    padding: 10px 20px;
    background: #fff;
    color: var(--brand-primary);
    font-weight: 700;
    border-radius: 999px;
    transform: translateY(10px);
    transition: var(--transition);
}

.template-card:hover .btn-preview {
    transform: translateY(0);
}

.template-card-content {
    padding: 20px;
}

.template-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Scroll Indicator */
.hero-scroll-wrap {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.hero-scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.hero-scroll-btn:hover {
    color: #fff;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 2px;
    height: 6px;
    background: currentColor;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

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

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

/* ── PRESENTATION VIEW PAGE ──────────────────────────────── */
.presentation-view-page {
    padding: 80px 0;
    background: #f1f5f9 !important;
}

.presentation-header {
    margin-bottom: 48px;
    text-align: center;
}

.p-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.p-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.p-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.presentation-actions {
    display: flex;
    justify-content: center;
    margin: 32px 0 64px;
}

.smo-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    color: #f87171;
}

/* ── EXECUTIVE PROFESSIONAL THEME (V11.0.0) ────────────────── */
.slide-card.slide-theme-executive {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 40px !important;
    border-radius: 12px !important;
    padding: 60px !important;
}

.slide-theme-executive .slide-card-inner {
    padding: 0 !important;
    background: none !important;
    display: block !important;
}

.slide-theme-executive .slide-title {
    font-family: "Georgia", "Times New Roman", serif !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #000000 !important;
    border-bottom: 3px solid #0071E3 !important;
    padding-bottom: 16px !important;
    margin-bottom: 40px !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

/* ── SECTION HEADERS SYMMETRY ─────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    text-align: center;
    line-height: 1.6;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.slide-body-flex {
    display: flex !important;
    gap: 48px !important;
    align-items: flex-start !important;
}

.slide-theme-executive .slide-bullets {
    flex: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.slide-theme-executive .slide-bullet {
    color: #374151 !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    display: block !important;
    /* Changed from flex */
}

.slide-theme-executive .slide-bullet-dot {
    display: none !important;
}

.slide-theme-executive .slide-image-container {
    flex: 1 !important;
}

.slide-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    /* Subtle adjustment to position image higher relative to title */
    max-width: 90%;
    /* Further reduce image visual weight */
    margin-left: auto;
    /* Keep it aligned to the right side of the split */
}

.slide-active-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 1px solid #e2e8f0;
}

.image-source-link {
    display: block;
    margin-top: 8px;
    color: #0071E3 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.slide-theme-executive .slide-number {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

/* ── GLOBAL UI CLEANUP & PREMIUM POLISH ─────────────────── */
.container--narrow {
    max-width: 900px;
    margin: 0 auto;
}

.main-wrap {
    padding-bottom: 100px;
}

/* Single Article Improvements */
.single-article {
    padding: 40px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
}

.article-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-align: center;
}

.article-meta {
    justify-content: center;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Remove Sidebar Clutter (since get_sidebar was removed) */
.site-sidebar {
    display: none !important;
}

/* Style Standard WordPress Widgets (In case they appear) */
.widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

/* Premium Search Form Styling */
.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.search-form label {
    flex-grow: 1;
}

.search-form .search-field {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: var(--transition);
}

.search-form .search-field:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.1);
    outline: none;
}

.search-form .search-submit {
    padding: 0 24px;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.3);
}

/* Full-Width Gallery (Archive) Styling */
.archive-page .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.archive-header {
    margin-bottom: 64px;
    text-align: center;
}

/* Ensure Sidebar Widgets don't break flex/grid layouts if forced elsewhere */
.widget_recent_entries ul,
.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget_recent_entries li a,
.widget_categories li a,
.widget_archive li a {
    display: block;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
}

.widget_recent_entries li a:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    transform: translateX(4px);
}

/* ── Premium Report (Topic Landing Page) ─────────────────────── */
.premium-report {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 80px 60px;
    text-align: left;
    box-shadow: var(--shadow-glass);
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.report-icon {
    width: 32px;
    height: 32px;
    filter: grayscale(1) brightness(1.5);
}

.report-type {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--brand-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 680px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.report-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.report-intro {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 820px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* ── RESPONSIVE DESIGN & MOBILE MENU ────────────────────────── */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 24px;
    }

    .primary-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -0.04em;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .generator-card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        margin: 0 auto 24px;
    }
}

/* ── STUNNING HOVER EFFECTS ─────────────────────────────── */
.smo-btn,
.generator-card,
.hero-tag,
.feature-card,
.post-card {
    transition: var(--transition);
}

.generator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.hero-tag:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

eight: 22px;
}

/* ── MOBILE ACCESSIBILITY & SEO FIXES (AGGR) ──────────────── */
@media (max-width: 768px) {
    html {
        font-size: 18px !important;
        /* Force larger base size for readability */
    }

    body {
        line-height: 1.6;
    }

    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1 !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    /* Critical: Ensure all buttons and links are easy to tap */
    .smo-btn,
    .nav-menu li a,
    .social-icon-btn,
    .view-all-link,
    .footer-nav li a {
        min-height: 48px !important;
        min-width: 44px;
        display: flex !important;
        align-items: center;
    }

    .nav-menu li a {
        padding: 12px 24px !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .generator-card {
        padding: 40px 24px !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 17px !important;
    }

    .hero-title {
        font-size: 2.4rem !important;
    }

    .container {
        padding: 0 24px;
    }
}

/* ── SOCIAL SHARE SECTION ────────────────────────────────── */
.social-share-wrap {
    margin: 40px 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    filter: brightness(1.1);
}

.share-icon {
    width: 20px;
    height: 20px;
    display: flex;
}

.share-facebook {
    background: #1877F2;
}

.share-twitter {
    background: #000000;
}

.share-linkedin {
    background: #0077B5;
}

.share-whatsapp {
    background: #25D366;
}

.share-pinterest {
    background: #BD081C;
}

@media (max-width: 640px) {
    .social-share-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ── PI.INC HERO AND MODAL OVERRIDES ─────────────────────────────── */
.pi-generate-btn {
    display: inline-block;
    padding: 18px 48px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #00EDFF;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 237, 255, 0.3), inset 0 0 10px rgba(0, 237, 255, 0.2);
    transition: all 0.3s ease;
}

.pi-generate-btn:hover {
    background: rgba(0, 237, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 237, 255, 0.5), inset 0 0 15px rgba(0, 237, 255, 0.3);
    transform: scale(1.05);
}

.hero-media-placeholder {
    max-width: 800px;
    margin: 0 auto 60px;
    aspect-ratio: 16/9;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(23, 37, 84, 0.6) 0%, rgba(30, 58, 138, 0.3) 100%);
    border: 1px solid rgba(0, 237, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.media-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal CSS */
.smo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.smo-modal.is-open {
    display: flex;
}

.smo-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.smo-modal-content {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    animation: modalFadeIn 0.3s ease forwards;
}

.smo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.smo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.generator-card {
    margin: 0 !important;
    /* Override layout margin when in modal */
    width: 100%;
}

/* ── PI COMPONENTS ────────────────────────────────────────── */
.pi-header-cta {
    padding: 9px 22px;
    background: #fff;
    color: #000 !important;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.pi-header-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Pi Footer Infinite Marquee */
.pi-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.pi-marquee-track {
    display: inline-flex;
    gap: 20px;
    animation: piScrollMarquee 30s linear infinite;
}

.pi-marquee-wrapper:hover .pi-marquee-track {
    animation-play-state: paused;
}

.pi-marquee-card {
    width: 320px;
    flex-shrink: 0;
    white-space: normal;
}

@keyframes piScrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* ── "Presentations Gone Wild" Vertical Sliders ────────────────── */
.pi-vertical-slider-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 800px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

@media (max-width: 900px) {
    .pi-vertical-slider-container {
        grid-template-columns: repeat(2, 1fr);
        height: 600px;
    }

    .pi-col-3 {
        display: none;
    }
}

@media (max-width: 600px) {
    .pi-vertical-slider-container {
        grid-template-columns: 1fr;
    }

    .pi-col-2 {
        display: none;
    }
}

.pi-vertical-col {
    position: relative;
    height: 100%;
}

.pi-vertical-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: piScrollVertical 40s linear infinite;
}

.pi-col-2 .pi-vertical-track {
    animation-direction: reverse;
    animation-duration: 45s;
}

.pi-col-3 .pi-vertical-track {
    animation-duration: 35s;
}

.pi-vertical-slider-container:hover .pi-vertical-track {
    animation-play-state: paused;
}

@keyframes piScrollVertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-50% - 12px));
    }
}

.pi-vertical-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: block;
}

.pi-card-media {
    height: 180px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #000;
    overflow: hidden;
}

.pi-card-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pi-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.pi-card-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.pi-avatar {
    width: 40px;
    height: 40px;
    background: #00EDFF;
    color: #000;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Small Moon Logo Icon */
.logo-moon-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    vertical-align: middle;
}

.logo-moon-small::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: moonPulse 3s ease-in-out infinite;
}

@keyframes moonPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ── MINIMAL PI FOOTER (FORCE DARK) ───────────────────────── */
footer#site-footer.site-footer {
    background: #050505 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 100px 0 60px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: center;
    position: relative;
    z-index: 3;
}

#site-footer .site-logo-text {
    color: #ffffff !important;
}

#site-footer .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

#site-footer .pi-logo-wrapper {
    justify-content: center;
}

#site-footer .footer-tagline {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4) !important;
}

#site-footer .footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 600px) {
    #site-footer .footer-nav {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

#site-footer .footer-nav li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.3s;
}

#site-footer .footer-nav li a:hover {
    color: #ffffff;
}

#site-footer .footer-social-premium {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

#site-footer .social-icon-btn {
    color: rgba(255, 255, 255, 0.3);
}

#site-footer .footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── HERO EMBEDDED GENERATOR CARD (Glassmorphism - PROMINENT) ── */
.hero-generator-card {
    width: 100%;
    max-width: 680px;
    margin: 24px auto 0;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(0, 237, 255, 0.25);
    border-radius: 28px;
    padding: 44px 48px;
    box-shadow:
        0 0 0 1px rgba(0, 237, 255, 0.08),
        0 20px 80px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(0, 237, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: piHeroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1.2s;
}

/* Top cyan beam */
.hero-generator-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00EDFF, transparent);
    border-radius: 0 0 50% 50%;
    box-shadow: 0 0 20px rgba(0, 237, 255, 0.8), 0 0 40px rgba(0, 237, 255, 0.4);
    animation: beamPulse 3s ease-in-out infinite;
}

@keyframes beamPulse {

    0%,
    100% {
        opacity: 0.6;
        left: 20%;
        right: 20%;
    }

    50% {
        opacity: 1;
        left: 10%;
        right: 10%;
    }
}

/* White labels - bigger and bolder */
.hero-generator-card .form-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    display: block;
    text-align: left;
    text-shadow: 0 0 20px rgba(0, 237, 255, 0.3);
}

/* Main label (What is your presentation about?) */
.hero-generator-card .form-group--topic>.form-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 237, 255, 0.4);
}

/* Dark solid inputs - with cyan highlight border */
.hero-generator-card .smo-input,
.hero-generator-card .smo-select {
    background: #0d0d0d !important;
    border: 1px solid rgba(0, 237, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(0, 237, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 14px !important;
}

.hero-generator-card .topic-input {
    padding-left: 52px !important;
    border: 1px solid rgba(0, 237, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(0, 237, 255, 0.1) !important;
}

.hero-generator-card .smo-input::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero-generator-card .smo-input:focus,
.hero-generator-card .smo-select:focus {
    border-color: rgba(0, 237, 255, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(0, 237, 255, 0.15), 0 0 20px rgba(0, 237, 255, 0.1) !important;
    outline: none;
}

.hero-generator-card .smo-select option {
    background: #111;
    color: #fff;
}

/* White checkbox labels */
.hero-generator-card .option-label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.9rem;
}

/* Checkboxes side-by-side */
.hero-generator-card .form-options {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 24px;
    width: 100%;
}

.hero-generator-card .option-checkbox {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
}

@media (max-width: 580px) {
    .hero-generator-card .form-options {
        grid-template-columns: 1fr;
        gap: 12px !important;
    }
}

.hero-generator-card .option-checkbox {
    background: #0d0d0d !important;
    border: 1px solid rgba(0, 237, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(0, 237, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease !important;
}

.hero-generator-card .option-checkbox:hover {
    border-color: rgba(0, 237, 255, 0.8) !important;
    box-shadow: 0 0 15px rgba(0, 237, 255, 0.2) !important;
    background: #111 !important;
}

.hero-generator-card .option-checkbox input:checked ~ .checkbox-box {
    background: #00EDFF !important;
    border-color: #00EDFF !important;
}

.hero-generator-card .topic-icon {
    color: #fff;
    font-size: 1.2rem;
    left: 18px !important;
}

/* Generate button - white pill style */
.hero-generator-card .smo-btn-generate {
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15), 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.hero-generator-card .smo-btn-generate:hover {
    transform: translateY(-2px) scale(1.015) !important;
    box-shadow: 0 0 50px rgba(0, 237, 255, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, #ffffff, #e0f8ff) !important;
}

.hero-generator-card .smo-btn-generate .btn-icon-svg {
    filter: brightness(0);
}

/* Counter text */
.hero-generator-card .generator-counter {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 0.85rem;
    margin-top: 16px;
    margin-bottom: 0;
}

.hero-generator-card .generator-counter strong {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 720px) {
    .hero-generator-card {
        padding: 28px 20px;
        margin-top: 32px;
    }
}

/* ── 404 ERROR PAGE ───────────────────────────────────────── */
.error-404-wrap {
    padding: 120px 0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.error-404-number {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.error-404-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.error-404-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.error-404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

@media (max-width: 640px) {
    .error-404-actions {
        flex-direction: column;
        align-items: center;
    }
}

.error-404-search {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.error-404-search p {
    margin-bottom: 20px;
    font-weight: 600;
}

/* ── FINAL CLEANUP ────────────────────────────────────────── */
body.home #primary {
    background: var(--bg-primary);
    position: relative;
    z-index: 20;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
}

/* ── TEMPLATE GRID SHOWCASE ───────────────────────────────── */
.templates-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 10;
}

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

.template-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.template-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.template-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.template-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-thumb-fallback {
    width: 100%;
    height: 100%;
}

.template-card:hover .template-thumb {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.btn-preview {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.template-card:hover .btn-preview {
    transform: translateY(0);
}

.template-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.template-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.template-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.t-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── MOBILE RESPONSIVENESS & ACCESSIBILITY ────────────────── */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    body {
        font-size: 16px; /* Ensure legibility on mobile */
        line-height: 1.6;
    }

    /* Prevent browser zoom on input focus & Improve tap targets */
    input, select, textarea, .smo-input, .smo-select {
        font-size: 16px !important;
        padding: 16px 18px !important; /* Larger hit area */
        height: 52px !important;
    }

    h1 { font-size: 2.5rem !important; margin-bottom: 24px !important; }
    h2 { font-size: 2rem !important; margin-bottom: 20px !important; }

    .container {
        padding: 0 20px;
    }

    /* Enlarge tap targets for mobile (Google standard is 48px) */
    .smo-btn, 
    .lang-btn, 
    .menu-toggle,
    .nav-menu a,
    .footer-nav a,
    .social-icon-btn,
    .btn-preview {
        min-height: 48px !important;
        min-width: 48px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px; /* Extra spacing to prevent accidental taps */
    }

    .nav-menu a {
        padding: 14px 24px !important;
        width: 100%;
        text-align: center;
    }

    /* Increase spacing in grids for better mobile tap separation */
    .steps-grid, .features-grid, .template-grid, .posts-grid {
        gap: 32px !important;
    }

    /* Hide heavy elements on mobile to improve INP and battery */
    .particles-container, #smo-particles, .video-wrapper {
        display: none !important; 
    }

    .hero-section {
        background: #050505 !important; /* Solid fallback for performance */
    }

    .bg-orbs {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    .smo-btn-generate {
        padding: 16px 24px !important;
        font-size: 1.1rem !important;
    }
}

/* ── INCREMENTAL LOADING & SPINNER ── */
.slide-append-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeUp 0.5s ease-out;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── AI REFINE UI ── */
.editable-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.editable-content {
    outline: none;
    transition: var(--transition-fast);
    padding: 2px 4px;
    border-radius: 4px;
}

.editable-content:focus {
    background: rgba(0, 113, 227, 0.1);
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.ai-refine-trigger {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.editable-wrapper:hover .ai-refine-trigger,
.editable-content:focus + .ai-refine-trigger {
    opacity: 1;
    visibility: visible;
    right: -35px;
}

.ai-refine-modal {
    position: absolute;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brand-primary);
    border-radius: 12px;
    padding: 15px;
    width: 300px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.3s ease-out;
}

.refine-modal-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.refine-input {
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.refine-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.refine-btn-submit {
    background: var(--brand-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.refine-btn-cancel {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.refined-pulse {
    animation: refinedPulse 1s ease-out;
}

@keyframes refinedPulse {
    0% { background: rgba(0, 237, 255, 0.3); }
    100% { background: transparent; }
}

/* ── SPEAKER NOTES ── */
.slide-notes-wrap { margin-top: 24px; border-top: 1px solid var(--border-color); padding-top: 16px; }
.notes-toggle-btn { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); background: rgba(0, 113, 227, 0.05); padding: 8px 16px; border-radius: 99px; transition: var(--transition-fast); }
.notes-content { display: none; margin-top: 12px; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; animation: fadeUp 0.3s ease-out; }
.notes-content.is-open { display: block; }

/* ── AI CHARTS ── */
.slide-chart-container { margin-top: 30px; padding: 24px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 20px; }
.chart-title { font-size: 1.1rem; margin-bottom: 20px; text-align: center; color: var(--text-primary); }
.smo-bar-chart { display: flex; flex-direction: column; gap: 16px; }
.chart-row { display: flex; align-items: center; gap: 16px; }
.chart-label { width: 120px; font-size: 0.85rem; color: var(--text-secondary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-wrap { flex-grow: 1; height: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 6px; overflow: hidden; }
.chart-bar { height: 100%; background: var(--gradient-brand); border-radius: 6px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 0 15px rgba(0, 113, 227, 0.4); }
.chart-value { width: 40px; font-size: 0.85rem; font-weight: 700; color: var(--brand-primary); }

/* ── USE CASES SECTION ─────────────────────────────────────── */
.use-cases-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.use-case-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.use-case-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.2);
}

.use-case-card:hover::before {
    opacity: 0.05;
}

.use-case-card .uc-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.use-case-card .uc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}

.use-case-card .uc-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.use-case-card .uc-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.use-case-card:hover .uc-link {
    color: var(--brand-accent);
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}
. s l i d e - n o t e s - w r a p   {   m a r g i n - t o p :   2 0 p x ;   b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 0 , 0 , 0 , 0 . 0 5 ) ;   p a d d i n g - t o p :   1 5 p x ;   }   . n o t e s - t o g g l e - b t n   {   b a c k g r o u n d :   r g b a ( 5 9 ,   1 3 0 ,   2 4 6 ,   0 . 0 5 ) ;   c o l o r :   # 3 b 8 2 f 6 ;   p a d d i n g :   6 p x   1 4 p x ;   b o r d e r - r a d i u s :   6 p x ;   f o n t - s i z e :   0 . 8 5 r e m ;   f o n t - w e i g h t :   6 0 0 ;   t r a n s i t i o n :   v a r ( - - t r a n s i t i o n - f a s t ) ;   }   . n o t e s - t o g g l e - b t n : h o v e r   {   b a c k g r o u n d :   r g b a ( 5 9 ,   1 3 0 ,   2 4 6 ,   0 . 1 ) ;   }   . n o t e s - c o n t e n t   {   m a x - h e i g h t :   0 ;   o v e r f l o w :   h i d d e n ;   t r a n s i t i o n :   m a x - h e i g h t   0 . 4 s   e a s e - o u t ;   b a c k g r o u n d :   # f d f d f d ;   b o r d e r - r a d i u s :   8 p x ;   m a r g i n - t o p :   1 0 p x ;   }   . n o t e s - c o n t e n t . i s - o p e n   {   m a x - h e i g h t :   3 0 0 p x ;   p a d d i n g :   1 5 p x ;   b o r d e r :   1 p x   s o l i d   r g b a ( 0 , 0 , 0 , 0 . 0 5 ) ;   }   . n o t e s - c o n t e n t   p   {   f o n t - s i z e :   0 . 9 5 r e m ;   l i n e - h e i g h t :   1 . 6 ;   c o l o r :   # 4 b 5 5 6 3 ;   m a r g i n :   0 ;   }   . s l i d e - p s e u d o c o d e - w r a p   p r e   {   f o n t - s i z e :   1 r e m   ! i m p o r t a n t ;   l i n e - h e i g h t :   1 . 5   ! i m p o r t a n t ;   }  
 