/* ============================================
   MICHELANGELO GIGLI — Campaign Style CSS
   Grafica squadrata, colori piatti, font moderni
   Phosphor Icons, effetti JS
   ============================================ */

:root {
    --navy: #1B2A4A;
    --red: #E63946;
    --blue: #457B9D;
    --light-blue: #A8DADC;
    --cream: #F1FAEE;
    --white: #FFFFFF;
    --black: #0D1117;
    --gray-100: #F6F8FA;
    --gray-200: #E1E4E8;
    --gray-500: #6E7681;
    --gray-700: #2D333B;
    --accent: #E63946;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.5s;
}
body.loaded { opacity: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Page transition ---- */
.page-transition {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
}
.page-transition__block {
    position: absolute; left: 0; right: 0;
    height: 50%; background: var(--navy);
    transition: height 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.page-transition__block--top { top: 0; }
.page-transition__block--bottom { bottom: 0; }
.page-transition__logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-family: var(--font-display); font-size: 48px; font-weight: 900;
    color: var(--white); background: var(--red);
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}
/* Entering: blocks slide in from edges */
.page-transition.entering .page-transition__block { height: 50%; }
.page-transition.entering .page-transition__logo {
    transform: translate(-50%, -50%) scale(1); opacity: 1;
}
/* Exiting: blocks retract, logo fades */
.page-transition.exiting .page-transition__block {
    height: 0;
    transition: height 0.5s 0.15s cubic-bezier(0.77, 0, 0.175, 1);
}
.page-transition.exiting .page-transition__logo {
    transform: translate(-50%, -50%) scale(2); opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.2s ease-in;
}
/* Done: fully hidden */
.page-transition.done .page-transition__block { height: 0; }
.page-transition.done .page-transition__logo { opacity: 0; transform: translate(-50%, -50%) scale(0); }

/* ---- Reveal animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scramble char */
.scramble-char { color: var(--red); }

/* Typing effect */
.typing-effect { visibility: hidden; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--navy);
    transition: all 0.3s;
}
.nav.scrolled {
    border-bottom-color: var(--red);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-block {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: var(--navy); color: var(--white);
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.nav__logo-text {
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    line-height: 1.2; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
    font-family: var(--font-display); font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--navy);
    position: relative; padding: 4px 0;
}
.nav__links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 3px; background: var(--red); transition: width 0.3s;
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta {
    background: var(--red) !important; color: var(--white) !important;
    padding: 10px 24px !important; font-weight: 700 !important;
    transition: background 0.3s;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: #c5303c !important; }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span { display: block; width: 28px; height: 3px; background: var(--navy); transition: all 0.3s; }
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 768px) {
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 32px 24px; gap: 24px;
        border-bottom: 3px solid var(--navy);
        transform: translateY(-120%); transition: transform 0.4s;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }
    .nav__links.open { transform: translateY(0); }
    .nav__links a {
        font-size: 16px;
        padding: 8px 0;
    }
    .nav__cta {
        text-align: center;
        padding: 14px 24px !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 14px 32px; border: 3px solid transparent; cursor: pointer;
    transition: all 0.3s; will-change: transform;
}
.btn i { font-size: 18px; }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 18px 48px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; padding: 160px 0 100px;
    background: var(--navy); color: var(--white); overflow: hidden;
}
.hero__bg-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display); font-size: clamp(80px, 15vw, 200px);
    font-weight: 900; color: rgba(255,255,255,0.03);
    white-space: nowrap; pointer-events: none; letter-spacing: -4px;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; padding: 8px 16px; margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px);
    font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.text-accent { color: var(--red); }
.hero__sub { font-size: 18px; line-height: 1.7; color: var(--light-blue); margin-bottom: 40px; max-width: 500px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero__card {
    background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1);
    padding: 32px 24px; display: flex; flex-direction: column; gap: 12px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px;
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.3s; will-change: transform;
}
.hero__card:hover { background: rgba(255,255,255,0.1); border-color: var(--red); }
.hero__card-icon { font-size: 32px; }
.hero__card--1 { border-left: 4px solid var(--red); }
.hero__card--2 { border-left: 4px solid var(--light-blue); }
.hero__card--3 { border-left: 4px solid var(--blue); }
.hero__card--4 { border-left: 4px solid var(--cream); }

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .hero__visual { grid-template-columns: 1fr; } }

/* ============================================
   STATS
   ============================================ */
.stats { background: var(--red); padding: 48px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stats__number {
    display: block; font-family: var(--font-display); font-size: 48px;
    font-weight: 900; color: var(--white); letter-spacing: -2px;
}
.stats__label {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: rgba(255,255,255,0.8);
}
@media (max-width: 768px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section--alt { background: var(--gray-100); }
.section__header { margin-bottom: 60px; }
.section__tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--navy); color: var(--white);
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; padding: 6px 14px; margin-bottom: 16px;
}
.section__tag i { font-size: 14px; }
.section__tag--light { background: var(--red); }
.section__title {
    font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
    font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; color: var(--navy);
}

/* ============================================
   CARDS
   ============================================ */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
    background: var(--white); border: 3px solid var(--gray-200);
    padding: 40px 32px; transition: all 0.3s; will-change: transform;
}
.card:hover { border-color: var(--red); }
.card__icon { font-size: 36px; margin-bottom: 20px; color: var(--red); }
.card__icon i { font-size: 36px; }
.card__title {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    margin-bottom: 12px; color: var(--navy);
}
.card p { color: var(--gray-500); line-height: 1.7; }
@media (max-width: 768px) { .cards { grid-template-columns: 1fr; } }

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto { background: var(--navy); padding: 100px 0; color: var(--white); }
.manifesto__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto__quote {
    font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700; line-height: 1.3; letter-spacing: -1px;
    margin: 32px 0 24px; border-left: 5px solid var(--red);
    padding-left: 32px; text-align: left;
}
.manifesto__author {
    font-family: var(--font-display); font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--light-blue);
    text-align: left; padding-left: 37px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { padding: 80px 0; background: var(--gray-100); }
.cta-section__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-section__inner h2 {
    font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px);
    font-weight: 900; color: var(--navy); margin-bottom: 16px; letter-spacing: -1px;
}
.cta-section__inner p { color: var(--gray-500); margin-bottom: 32px; font-size: 18px; }

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero { padding: 140px 0 60px; background: var(--navy); color: var(--white); }
.page-hero__title {
    font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px);
    font-weight: 900; letter-spacing: -2px; margin-bottom: 16px;
}
.page-hero__sub { font-size: 18px; color: var(--light-blue); max-width: 600px; }

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.about-grid__photo-placeholder {
    width: 300px; height: 380px; background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 72px; font-weight: 900;
}
.about-grid__photo-img {
    width: 300px; height: 300px; object-fit: cover; display: block;
    border-radius: 50%;
}
.about-grid__text h2 {
    font-family: var(--font-display); font-size: 32px; font-weight: 900;
    color: var(--navy); margin-bottom: 24px; letter-spacing: -1px;
}
.about-grid__text p { color: var(--gray-700); margin-bottom: 16px; line-height: 1.8; }
.about-grid__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--navy); color: var(--white);
    font-family: var(--font-display); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; padding: 8px 16px;
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-grid__photo-placeholder { width: 100%; height: 300px; }
    .about-grid__photo-img { width: 250px; height: 250px; margin: 0 auto; }
}

/* ============================================
   VALUES
   ============================================ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 40px 32px; border: 3px solid var(--gray-200); background: var(--white); }
.value-card__number {
    font-family: var(--font-display); font-size: 48px; font-weight: 900;
    color: var(--red); letter-spacing: -2px; margin-bottom: 16px;
}
.value-card h3 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--navy); margin-bottom: 12px;
}
.value-card h3 i { color: var(--red); margin-right: 4px; }
.value-card p { color: var(--gray-500); line-height: 1.7; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================
   SERVICES
   ============================================ */
.services { display: flex; flex-direction: column; gap: 32px; }
.service {
    border: 3px solid var(--gray-200); padding: 48px 40px;
    transition: border-color 0.3s;
}
.service:hover { border-color: var(--red); }
.service__header { display: flex; align-items: baseline; gap: 24px; margin-bottom: 20px; }
.service__number {
    font-family: var(--font-display); font-size: 48px; font-weight: 900;
    color: var(--red); letter-spacing: -2px;
}
.service__title {
    font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy);
}
.service__title i { color: var(--red); margin-right: 4px; }
.service p { color: var(--gray-700); line-height: 1.8; margin-bottom: 24px; max-width: 700px; }
.service__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service__list li {
    font-size: 14px; font-weight: 500; color: var(--gray-700);
    padding-left: 20px; position: relative;
}
.service__list li::before {
    content: '—'; position: absolute; left: 0; color: var(--red); font-weight: 700;
}
@media (max-width: 768px) {
    .service { padding: 32px 24px; }
    .service__list { grid-template-columns: 1fr; }
}

/* ============================================
   COLLABORATIONS
   ============================================ */
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.collab-card {
    border: 3px solid var(--gray-200); padding: 40px 32px;
    text-align: center; transition: all 0.3s; will-change: transform;
}
.collab-card:hover { border-color: var(--red); }
.collab-card__logo {
    width: 80px; height: 80px; background: #fff; color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 20px; border-radius: 16px; overflow: hidden;
    padding: 10px; box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.08);
}
.collab-card__logo img {
    width: 100%; height: 100%; object-fit: contain;
}
.collab-card__logo--wide {
    width: 120px; height: 60px; background: #fff; border-radius: 12px; padding: 8px;
}
.collab-card__logo--wide img { object-fit: contain; }
.collab-card h3 {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--navy); margin-bottom: 12px;
}
.collab-card p { color: var(--gray-500); font-size: 14px; line-height: 1.7; }
@media (max-width: 768px) { .collab-grid { grid-template-columns: 1fr; } }

/* Collab strip (homepage) */
.collab-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px;
}
.collab-strip__item {
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    filter: grayscale(100%); opacity: 0.6; transition: all 0.3s;
    background: #fff; border-radius: 16px; padding: 12px; box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.08);
}
.collab-strip__item:hover { filter: grayscale(0%); opacity: 1; }
.collab-strip__item img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sectors { display: flex; flex-wrap: wrap; gap: 12px; }
.sector {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: var(--white);
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; padding: 16px 28px;
    transition: background 0.3s;
}
.sector:hover { background: var(--red); }

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
    border: 3px solid var(--gray-200); transition: all 0.3s; position: relative; overflow: hidden;
}
.blog-card:hover { border-color: var(--red); transform: translateY(-4px); }
.blog-card__link { display: block; padding: 36px 32px; color: inherit; }
.blog-card__cat {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; padding: 4px 12px; margin-bottom: 16px;
}
.blog-card__title {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--navy); margin-bottom: 12px; line-height: 1.3; letter-spacing: -0.5px;
}
.blog-card__excerpt { color: var(--gray-500); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.blog-card__meta {
    display: flex; gap: 16px; font-family: var(--font-display); font-size: 12px;
    font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px;
}
.blog-card__meta i { font-size: 14px; }
.blog-card__date, .blog-card__read { display: inline-flex; align-items: center; gap: 4px; }
.blog-card__arrow {
    position: absolute; bottom: 20px; right: 20px;
    font-size: 24px; color: var(--gray-200);
    transition: all 0.3s;
}
.blog-card:hover .blog-card__arrow { color: var(--red); transform: translateX(4px); }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info__item { display: flex; gap: 20px; align-items: flex-start; }
.contact-info__icon { font-size: 28px; color: var(--red); }
.contact-info__item h3 {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--navy); margin-bottom: 4px;
}
.contact-info__item a, .contact-info__item p { color: var(--gray-500); font-size: 15px; }
.contact-info__item a:hover { color: var(--red); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; color: var(--navy); margin-bottom: 8px;
}
.form-group label i { font-size: 14px; color: var(--red); }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 3px solid var(--gray-200);
    background: var(--white); font-family: var(--font-body); font-size: 15px;
    color: var(--black); transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================
   ARTICLE — Reading Progress
   ============================================ */
.reading-progress {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 999;
    height: 4px; background: var(--gray-200);
}
.reading-progress__bar {
    height: 100%; width: 0; background: var(--red);
    transition: width 0.05s linear;
}
.reading-progress__pct {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    opacity: 0;
    transition: opacity 0.3s;
}
.reading-progress.active .reading-progress__pct {
    opacity: 1;
}

/* ============================================
   ARTICLE — Hero
   ============================================ */
.article-hero {
    padding: 140px 0 60px; background: var(--navy); color: var(--white);
}
.article-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--light-blue);
    margin-bottom: 24px;
}
.article-hero__breadcrumb a { transition: color 0.3s; }
.article-hero__breadcrumb a:hover { color: var(--white); }
.article-hero__breadcrumb i { font-size: 10px; }
.article-hero__cat {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; padding: 6px 14px; margin-bottom: 20px;
}
.article-hero__title {
    font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px;
    max-width: 800px;
}
.article-hero__excerpt {
    font-size: 18px; color: var(--light-blue); max-width: 600px;
    line-height: 1.7; margin-bottom: 24px;
}
.article-hero__meta {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px;
}
.article-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero__meta i { font-size: 16px; }

/* ============================================
   ARTICLE — Layout
   ============================================ */
.article-body { padding: 80px 0; }
.article-layout {
    display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start;
}
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
}

/* ============================================
   ARTICLE — TOC Sidebar
   ============================================ */
.toc {
    position: sticky; top: 100px;
    border: 3px solid var(--gray-200); padding: 28px 24px;
}
.toc__title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--navy);
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--gray-200);
}
.toc__title i { color: var(--red); }
.toc__list { display: flex; flex-direction: column; gap: 4px; }
.toc__item { display: block; }
.toc__link {
    display: block; padding: 8px 12px;
    font-size: 13px; font-weight: 500; color: var(--gray-500);
    border-left: 3px solid transparent; transition: all 0.3s;
}
.toc__link:hover {
    color: var(--navy); border-left-color: var(--red);
    background: var(--gray-100);
}

/* ============================================
   ARTICLE — Content
   ============================================ */
.article-content { max-width: 720px; }
.article-content__lead {
    font-size: 20px; line-height: 1.8; color: var(--gray-700);
    margin-bottom: 32px; font-weight: 500;
    border-left: 4px solid var(--red); padding-left: 20px;
}
.article-content h2 {
    font-family: var(--font-display); font-size: 28px; font-weight: 800;
    color: var(--navy); margin: 48px 0 20px; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.article-content h2 i { color: var(--red); font-size: 24px; }
.article-content h3 {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--navy); margin: 36px 0 16px;
}
.article-content p {
    color: var(--gray-700); line-height: 1.85; margin-bottom: 20px; font-size: 16.5px;
}
.article-content a { color: var(--red); font-weight: 600; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.article-content a:hover { border-bottom-color: var(--red); }
.article-content strong { color: var(--navy); font-weight: 700; }
.article-content ul, .article-content ol {
    margin: 20px 0; padding-left: 0;
}
.article-content ul li, .article-content ol li {
    padding: 10px 0 10px 28px; position: relative;
    color: var(--gray-700); line-height: 1.7; font-size: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.article-content ul li::before {
    content: ''; position: absolute; left: 8px; top: 18px;
    width: 8px; height: 8px; background: var(--red);
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li { counter-increment: ol-counter; }
.article-content ol li::before {
    content: counter(ol-counter); position: absolute; left: 0; top: 10px;
    font-family: var(--font-display); font-size: 14px; font-weight: 800;
    color: var(--red);
}
.article-content blockquote {
    margin: 32px 0; padding: 28px 32px;
    background: var(--navy); color: var(--white);
    border-left: 5px solid var(--red);
    font-family: var(--font-display); font-size: 18px;
    font-weight: 600; line-height: 1.6;
}
.article-content blockquote p { color: var(--white); margin-bottom: 0; }
.article-content blockquote strong { color: var(--white); }
.article-content blockquote a { color: var(--light-blue); }
.article-content blockquote em { color: var(--white); }

/* ============================================
   ARTICLE — Share & Author
   ============================================ */
.article-share {
    display: flex; align-items: center; gap: 20px;
    margin-top: 48px; padding-top: 32px; border-top: 3px solid var(--gray-200);
}
.article-share__label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--navy);
}
.article-share__label i { font-size: 18px; color: var(--red); }
.article-share__buttons { display: flex; gap: 8px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 3px solid var(--gray-200);
    font-size: 20px; color: var(--navy); transition: all 0.3s;
}
.share-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.author-box {
    display: flex; gap: 24px; align-items: center;
    margin-top: 40px; padding: 32px;
    border: 3px solid var(--gray-200); background: var(--gray-100);
}
.author-box__avatar {
    width: 72px; height: 72px; min-width: 72px;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 24px; font-weight: 900;
}
.author-box__info h4 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--navy); margin-bottom: 8px;
}
.author-box__info p { color: var(--gray-500); font-size: 14px; line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy); color: var(--white); padding: 60px 0 0; }
.footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__tagline { color: var(--light-blue); margin-top: 16px; font-size: 15px; }
.footer__col h4 {
    font-family: var(--font-display); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; color: var(--light-blue);
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.3s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom { padding: 24px 0; text-align: center; }
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; } }


/* ============================================
   MARQUEE TICKER
   ============================================ */
.marquee {
    background: var(--white);
    border-top: 3px solid var(--navy);
    border-bottom: 3px solid var(--navy);
    overflow: hidden;
    padding: 18px 0;
    white-space: nowrap;
}
.marquee__track {
    display: flex;
    animation: marquee-scroll 25s linear infinite;
}
.marquee__content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.marquee__content > span {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--navy);
    padding: 0 20px;
}
.marquee__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   HERO STAGGER ANIMATION
   ============================================ */
.hero-stagger {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: calc(var(--stagger, 0) * 0.12s);
}
.hero-stagger.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================
   HERO LINE REVEAL
   ============================================ */
.hero-line {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-20px);
    animation: hero-line-reveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-play-state: paused;
}
body.loaded .hero-line {
    animation-play-state: running;
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }
.hero-line:nth-child(2) { animation-delay: 0.55s; }
@keyframes hero-line-reveal {
    to {
        clip-path: inset(0 0% 0 0);
        transform: translateX(0);
    }
}

/* ============================================
   STATS SCALE-UP
   ============================================ */
.stats__item {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stats__item.scale-in {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   BLOG CARD HOVER — Left border grow
   ============================================ */
.blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--red);
    transition: height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover::before {
    height: 100%;
    top: 0;
}


/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    font-family: var(--font-body);
}
.chatbot__toggle {
    position: relative;
    width: 62px;
    height: 62px;
    background: var(--red);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 24px rgba(230, 57, 70, 0.45);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.chatbot__toggle:hover {
    background: var(--navy);
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(27, 42, 74, 0.4);
}
.chatbot__toggle-icon--chat { transition: transform 0.3s, opacity 0.3s; }
.chatbot__toggle-icon--close { transition: transform 0.3s, opacity 0.3s; }
.chatbot__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: chatbot-badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chatbot-badge-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
.chatbot__window {
    display: none;
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 400px;
    max-height: 560px;
    background: var(--white);
    border: 3px solid var(--navy);
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.chatbot__window.open {
    display: flex;
    animation: chatbot-slide-up 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes chatbot-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--navy);
    color: var(--white);
}
.chatbot__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot__header-avatar {
    width: 38px;
    height: 38px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}
.chatbot__header-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}
.chatbot__header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.chatbot__status-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-pulse 2s infinite;
}
@keyframes chatbot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot__header-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.chatbot__header-close:hover { color: var(--white); }
.chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    min-height: 180px;
    scroll-behavior: smooth;
}
.chatbot__messages::-webkit-scrollbar { width: 4px; }
.chatbot__messages::-webkit-scrollbar-track { background: transparent; }
.chatbot__messages::-webkit-scrollbar-thumb { background: var(--gray-200); }
.chatbot__msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
    animation: chatbot-msg-in 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes chatbot-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chatbot__msg--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chatbot__msg--bot {
    align-self: flex-start;
}
.chatbot__msg-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--navy);
    margin-top: 2px;
}
.chatbot__msg--user .chatbot__msg-avatar {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}
.chatbot__msg-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.chatbot__msg-bubble {
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.65;
    word-break: break-word;
}
.chatbot__msg--user .chatbot__msg-bubble {
    background: var(--navy);
    color: var(--white);
}
.chatbot__msg--bot .chatbot__msg-bubble {
    background: var(--gray-100);
    color: var(--black);
    border: 2px solid var(--gray-200);
}
/* Markdown-rendered content inside bot bubbles */
.chatbot__msg--bot .chatbot__msg-bubble strong { color: var(--navy); font-weight: 700; }
.chatbot__msg--bot .chatbot__msg-bubble em { font-style: italic; }
.chatbot__msg--bot .chatbot__msg-bubble ul,
.chatbot__msg--bot .chatbot__msg-bubble ol {
    margin: 6px 0 2px 0;
    padding-left: 18px;
}
.chatbot__msg--bot .chatbot__msg-bubble li {
    margin-bottom: 3px;
    font-size: 13px;
}
.chatbot__msg--bot .chatbot__msg-bubble a {
    color: var(--red);
    font-weight: 600;
    text-decoration: underline;
}
.chatbot__msg--bot .chatbot__msg-bubble code {
    background: var(--gray-200);
    padding: 1px 5px;
    font-size: 12px;
    font-family: monospace;
}
.chatbot__msg-time {
    font-size: 10px;
    color: var(--gray-500);
    padding: 0 4px;
    font-weight: 500;
}
.chatbot__msg--user .chatbot__msg-time { text-align: right; }
.chatbot__suggestions {
    display: flex;
    gap: 6px;
    padding: 8px 14px 4px;
    flex-wrap: wrap;
}
.chatbot__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.25s;
}
.chatbot__chip i { font-size: 14px; color: var(--red); }
.chatbot__chip:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.chatbot__chip:hover i { color: var(--white); }
.chatbot__input {
    display: flex;
    border-top: 3px solid var(--gray-200);
}
.chatbot__input input {
    flex: 1;
    padding: 13px 16px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--white);
    color: var(--black);
}
.chatbot__input input::placeholder { color: var(--gray-500); }
.chatbot__input button {
    padding: 13px 18px;
    background: var(--red);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.15s;
}
.chatbot__input button:hover { background: var(--navy); }
.chatbot__input button:active { transform: scale(0.92); }
.chatbot__typing {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
    align-self: flex-start;
    align-items: center;
}
.chatbot__typing span {
    width: 7px;
    height: 7px;
    background: var(--gray-500);
    border-radius: 50%;
    animation: chatbot-dot 1.2s infinite;
}
.chatbot__typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbot-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}
/* Toggle pulse ring */
.chatbot__toggle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--red);
    opacity: 0;
    animation: chatbot-ring 3s ease-out infinite;
}
@keyframes chatbot-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 480px) {
    .chatbot__window {
        width: calc(100vw - 32px);
        right: -8px;
        bottom: 74px;
        max-height: 480px;
    }
}

/* ============================================
   AI SUMMARY BUTTON
   ============================================ */
.ai-summary {
    margin-bottom: 32px;
}
.ai-summary__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--red);
    color: #fff; border: none;
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.3);
}
.ai-summary__btn:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(27, 42, 74, 0.4);
}
.ai-summary__btn:disabled {
    opacity: 0.6; cursor: wait;
}
.ai-summary__btn i { font-size: 18px; }

.ai-summary__result {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--gray-100);
    border-left: 4px solid var(--red);
    animation: aiSummaryIn 0.5s ease;
}
.ai-summary__header {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    color: var(--red); text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.ai-summary__header i { font-size: 16px; }
.ai-summary__text {
    font-size: 15px; line-height: 1.7; color: var(--navy); margin: 0;
}

@keyframes aiSummaryIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Hint — select text to explain */
.ai-hint {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; margin-bottom: 28px;
    background: var(--gray-100); border-left: 3px solid var(--navy);
    font-size: 13px; color: var(--gray-500);
}
.ai-hint i { font-size: 16px; color: var(--navy); flex-shrink: 0; }

/* Typewriter cursor for hero */
.hero-typewriter::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
    color: var(--red);
    font-weight: 300;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Scramble char styling */
.scramble-char {
    color: var(--red);
    opacity: 0.7;
}

/* Staggered blog cards entrance */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.blog-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Spinner animation for loading states */
.ph-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SEARCH MODAL (Spotlight-style)
   ============================================ */
.search-modal {
    display: none; position: fixed; inset: 0; z-index: 10000;
    align-items: flex-start; justify-content: center; padding-top: 12vh;
}
.search-modal.open { display: flex; }
.search-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 15, 30, 0.7); backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}
.search-modal__container {
    position: relative; width: 600px; max-width: 92vw;
    background: var(--white); border: 3px solid var(--navy);
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    overflow: hidden; animation: searchSlideIn 0.3s ease;
}
@keyframes searchSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal__input-wrap {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.search-modal__icon { font-size: 22px; color: var(--red); flex-shrink: 0; }
.search-modal__input {
    flex: 1; border: none; outline: none; font-size: 17px;
    font-family: var(--font-body); background: transparent; color: var(--navy);
}
.search-modal__input::placeholder { color: #999; }
.search-modal__kbd {
    font-size: 11px; padding: 3px 8px; background: #f0f0f0;
    color: #666; font-family: var(--font-body);
}
.search-modal__results {
    max-height: 400px; overflow-y: auto; padding: 8px;
}
.search-modal__empty {
    text-align: center; padding: 40px 20px; color: #999;
}
.search-modal__empty i { font-size: 32px; display: block; margin-bottom: 12px; color: var(--red); }
.search-modal__empty p { font-size: 14px; }
.search-modal__item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px; cursor: pointer;
    transition: background 0.15s; text-decoration: none; color: var(--navy);
}
.search-modal__item:hover, .search-modal__item.active {
    background: rgba(230, 57, 70, 0.06);
}
.search-modal__item-icon {
    width: 40px; height: 40px;
    background: var(--navy);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.search-modal__item-content { flex: 1; min-width: 0; }
.search-modal__item-title {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    margin-bottom: 4px;
}
.search-modal__item-snippet {
    font-size: 13px; color: #666; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-modal__item-meta {
    font-size: 11px; color: #999; margin-top: 4px;
    display: flex; gap: 12px;
}
.search-modal__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 12px; color: #999;
}
.search-modal__footer kbd {
    font-size: 10px; padding: 2px 6px; background: #f0f0f0;
    border-radius: 3px; margin: 0 2px;
}
.search-modal__footer i { color: var(--red); }

/* Nav search button */
.nav__search-btn {
    background: none; border: none; color: var(--navy); cursor: pointer;
    font-size: 20px; padding: 4px; display: flex; align-items: center;
    transition: color 0.2s;
}
.nav__search-btn:hover { color: var(--red); }
.nav.scrolled .nav__search-btn { color: var(--white); }
.nav.scrolled .nav__search-btn:hover { color: var(--red); }

/* ============================================
   AI EXPLAIN TOOLTIP
   ============================================ */
.ai-explain {
    position: absolute; z-index: 9000;
}
.ai-explain__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; background: var(--red);
    color: #fff; border: none;
    font-size: 12px; font-weight: 700; font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
    animation: explainPop 0.25s ease;
    white-space: nowrap;
}
.ai-explain__btn:hover { background: var(--navy); transform: scale(1.05); }
.ai-explain__btn i { font-size: 14px; }
@keyframes explainPop {
    from { opacity: 0; transform: scale(0.8) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.ai-explain__popup {
    margin-top: 8px; padding: 16px 18px;
    background: var(--white); border: 2px solid var(--gray-200);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 340px; min-width: 260px;
    animation: explainFadeIn 0.3s ease;
}
.ai-explain__header {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--red);
    display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
}
.ai-explain__header i { font-size: 14px; }
.ai-explain__text {
    font-size: 13px; line-height: 1.6; color: var(--navy); margin: 0;
}
@keyframes explainFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TIME-BASED SUGGESTION WIDGET
   ============================================ */
.time-suggest {
    position: fixed; bottom: 100px; left: 24px; z-index: 8000;
    animation: timeSuggestIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.time-suggest__inner {
    background: var(--white); padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    border: 2px solid var(--gray-200);
    max-width: 280px; position: relative;
}
.time-suggest__close {
    position: absolute; top: 8px; right: 8px;
    background: none; border: none; cursor: pointer;
    color: #999; font-size: 16px; padding: 4px;
}
.time-suggest__close:hover { color: var(--navy); }
.time-suggest__icon {
    width: 40px; height: 40px;
    background: var(--red);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 12px;
}
.time-suggest__text {
    font-size: 14px; line-height: 1.5; color: var(--navy); margin: 0 0 14px;
}
.btn--sm { padding: 8px 16px; font-size: 13px; }
@keyframes timeSuggestIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
    .time-suggest { left: 12px; right: 12px; bottom: 90px; }
    .time-suggest__inner { max-width: 100%; }
    .search-modal { padding-top: 5vh; }
}


/* ============================================
   AI SENTIMENT TAGS (article hero)
   ============================================ */
.article-hero__sentiment {
    display: inline-flex; gap: 6px; align-items: center;
}
.sentiment-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; background: rgba(230, 57, 70, 0.2);
    color: var(--white); font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    font-family: var(--font-display);
    animation: sentimentIn 0.4s ease both;
}
.sentiment-tag i { font-size: 12px; }
.sentiment-tag:nth-child(2) { animation-delay: 0.15s; }
.sentiment-tag:nth-child(3) { animation-delay: 0.3s; }
@keyframes sentimentIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   AI QUIZ (after author box)
   ============================================ */
.ai-quiz {
    margin-top: 40px; border: 3px solid var(--gray-200);
    background: var(--gray-100);
}
.ai-quiz__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; gap: 16px; flex-wrap: wrap;
}
.ai-quiz__title {
    font-family: var(--font-display); font-size: 16px; font-weight: 700;
    color: var(--navy); display: flex; align-items: center; gap: 8px;
}
.ai-quiz__title i { font-size: 22px; color: var(--red); }
.ai-quiz__start {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; background: var(--red); color: var(--white);
    border: none; font-family: var(--font-display); font-size: 13px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s;
}
.ai-quiz__start:hover { background: var(--navy); }
.ai-quiz__start:disabled { opacity: 0.6; cursor: wait; }
.ai-quiz__start i { font-size: 16px; }

.ai-quiz__body {
    padding: 0 24px 24px;
}
.ai-quiz__question {
    margin-bottom: 20px; animation: quizQIn 0.4s ease both;
}
.ai-quiz__question:nth-child(2) { animation-delay: 0.15s; }
.ai-quiz__question:nth-child(3) { animation-delay: 0.3s; }
@keyframes quizQIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.ai-quiz__q-text {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    color: var(--navy); margin-bottom: 10px;
    display: flex; align-items: baseline; gap: 8px;
}
.ai-quiz__q-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; min-width: 24px;
    background: var(--navy); color: var(--white);
    font-size: 12px; font-weight: 800;
}
.ai-quiz__options { display: flex; flex-direction: column; gap: 6px; }
.ai-quiz__option {
    display: block; width: 100%; text-align: left;
    padding: 10px 14px; background: var(--white);
    border: 2px solid var(--gray-200); font-size: 14px;
    color: var(--navy); cursor: pointer; transition: all 0.2s;
    font-family: var(--font-body);
}
.ai-quiz__option:hover { border-color: var(--navy); }
.ai-quiz__option.correct {
    border-color: #22c55e; background: rgba(34, 197, 94, 0.08);
    color: #166534; font-weight: 600;
}
.ai-quiz__option.wrong {
    border-color: var(--red); background: rgba(230, 57, 70, 0.06);
    color: var(--red); opacity: 0.7;
}
.ai-quiz__option:disabled { cursor: default; }

.ai-quiz__score {
    padding: 20px 24px; text-align: center;
    border-top: 2px solid var(--gray-200);
}
.ai-quiz__score-text {
    font-family: var(--font-display); font-size: 20px; font-weight: 800;
    color: var(--navy);
}
.ai-quiz__score-text span { color: var(--red); }
.ai-quiz__score-msg {
    font-size: 14px; color: var(--gray-500); margin-top: 6px;
}

/* (TL;DR widget removed) */


/* ============================================
   AI TOOLS BAR (article top)
   ============================================ */
.ai-tools-bar {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.ai-tools-bar__btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: var(--white);
    border: 2px solid var(--gray-200); color: var(--navy);
    font-family: var(--font-display); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s;
}
.ai-tools-bar__btn i { font-size: 16px; color: var(--red); }
.ai-tools-bar__btn:hover { border-color: var(--red); background: rgba(230,57,70,0.04); }
.ai-tools-bar__btn:disabled { opacity: 0.5; cursor: wait; }
.ai-tools-bar__btn.active { border-color: var(--navy); background: var(--navy); color: var(--white); }
.ai-tools-bar__btn.active i { color: var(--white); }

/* ============================================
   AI AUDIO PLAYER
   ============================================ */
.ai-audio-player {
    margin-bottom: 20px; padding: 14px 18px;
    background: var(--navy); color: var(--white);
    animation: aiSummaryIn 0.4s ease;
}
.ai-audio-player__header {
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--red);
    display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.ai-audio-player__controls { display: flex; align-items: center; gap: 8px; }
.ai-audio-player__btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border: none; color: var(--white);
    cursor: pointer; font-size: 16px; transition: background 0.2s;
}
.ai-audio-player__btn:hover { background: var(--red); }
.ai-audio-player__status {
    font-size: 12px; color: var(--light-blue); font-weight: 500;
}

/* ============================================
   AI TRANSLATE RESULT
   ============================================ */
.ai-translate-result {
    margin-bottom: 20px; padding: 20px 24px;
    background: var(--gray-100); border-left: 4px solid var(--blue);
    animation: aiSummaryIn 0.4s ease;
}
.ai-translate-result__header {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    color: var(--blue); text-transform: uppercase; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.ai-translate-result__close {
    margin-left: auto; background: none; border: none; cursor: pointer;
    color: var(--gray-500); font-size: 16px;
}
.ai-translate-result__close:hover { color: var(--navy); }
.ai-translate-result__text {
    font-size: 15px; line-height: 1.7; color: var(--gray-700);
}

/* ============================================
   AI LINKEDIN POST RESULT
   ============================================ */
.ai-linkedin-result {
    margin-bottom: 20px; padding: 20px 24px;
    background: var(--gray-100); border-left: 4px solid #0077B5;
    animation: aiSummaryIn 0.4s ease;
}
.ai-linkedin-result__header {
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    color: #0077B5; text-transform: uppercase; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.ai-linkedin-result__copy {
    margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; background: var(--navy); color: var(--white);
    border: none; font-size: 11px; font-weight: 700; font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: background 0.2s;
}
.ai-linkedin-result__copy:hover { background: var(--red); }
.ai-linkedin-result__text {
    font-size: 14px; line-height: 1.7; color: var(--gray-700);
    white-space: pre-wrap; font-family: var(--font-body); margin: 0;
    background: var(--white); padding: 16px; border: 1px solid var(--gray-200);
}

/* ============================================
   READING MOOD (blog page)
   ============================================ */
.reading-mood {
    margin-bottom: 40px; padding: 28px 32px;
    border: 3px solid var(--gray-200); background: var(--white);
    text-align: center;
}
.reading-mood__question {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--navy); margin-bottom: 20px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.reading-mood__question i { font-size: 24px; color: var(--red); }
.reading-mood__options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.reading-mood__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; background: var(--white);
    border: 2px solid var(--gray-200); color: var(--navy);
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
}
.reading-mood__btn i { font-size: 18px; }
.reading-mood__btn:hover { border-color: var(--red); }
.reading-mood__btn.active {
    background: var(--red); color: var(--white); border-color: var(--red);
}
.reading-mood__btn.active i { color: var(--white); }
.reading-mood__label {
    margin-top: 16px; font-family: var(--font-display); font-size: 13px;
    font-weight: 700; color: var(--red); text-transform: uppercase;
    letter-spacing: 1px; animation: sentimentIn 0.3s ease;
}
@media (max-width: 480px) {
    .reading-mood__options { flex-direction: column; }
    .reading-mood__btn { width: 100%; justify-content: center; }
}

/* ============================================
   AI IMPROVE (contact form)
   ============================================ */
.ai-improve-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 6px 14px;
    background: var(--white); border: 2px solid var(--gray-200);
    color: var(--navy); font-family: var(--font-display);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s;
}
.ai-improve-btn i { font-size: 14px; color: var(--red); }
.ai-improve-btn:hover { border-color: var(--red); }
.ai-improve-btn:disabled { opacity: 0.5; cursor: wait; }
.ai-improve-result {
    margin-top: 10px; padding: 12px 16px;
    background: rgba(230, 57, 70, 0.05); border-left: 3px solid var(--red);
    font-size: 13px; color: var(--gray-700); line-height: 1.6;
    display: flex; align-items: flex-start; gap: 8px;
    animation: aiSummaryIn 0.3s ease;
}
.ai-improve-result i { font-size: 18px; color: var(--red); flex-shrink: 0; margin-top: 1px; }

/* ============================================
   EASTER EGG — Secret sarcastic chat
   ============================================ */
.easter-egg {
    position: fixed; inset: 0; z-index: 20000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.easter-egg__inner {
    width: 500px; max-width: 92vw; max-height: 80vh;
    background: #0D1117; border: 2px solid var(--red);
    display: flex; flex-direction: column; overflow: hidden;
}
.easter-egg__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.easter-egg__header i { margin-right: 6px; }
.easter-egg__close {
    background: none; border: none; color: var(--white); cursor: pointer;
    font-size: 18px; padding: 2px;
}
.easter-egg__messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 200px; max-height: 400px;
    font-family: 'Courier New', monospace;
}
.easter-egg__msg {
    font-size: 13px; line-height: 1.6; padding: 8px 12px;
    animation: chatbot-msg-in 0.3s ease;
}
.easter-egg__msg--user {
    color: #58a6ff; align-self: flex-end; text-align: right;
}
.easter-egg__msg--bot {
    color: #f0883e; align-self: flex-start;
}
.easter-egg__input {
    display: flex; border-top: 1px solid rgba(255,255,255,0.1);
}
.easter-egg__input input {
    flex: 1; padding: 12px 16px; background: #161b22;
    border: none; outline: none; color: #c9d1d9;
    font-family: 'Courier New', monospace; font-size: 14px;
}
.easter-egg__input input::placeholder { color: #484f58; }
.easter-egg__input button {
    padding: 12px 16px; background: var(--red); color: var(--white);
    border: none; cursor: pointer; font-size: 16px;
    display: flex; align-items: center;
}
.easter-egg__input button:hover { background: #c5303c; }


/* ============================================
   DOWNLOAD BOX (with form)
   ============================================ */
.download-box {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 28px 32px; margin: 24px 0;
    border: 3px solid var(--gray-200); background: var(--gray-100);
    transition: border-color 0.3s;
}
.download-box:hover { border-color: var(--red); }
.download-box__icon {
    width: 56px; height: 56px; min-width: 56px;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.download-box__content { flex: 1; }
.download-box__content h3 {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    color: var(--navy); margin-bottom: 6px;
}
.download-box__content > p {
    font-size: 14px; color: var(--gray-500); margin: 0 0 16px;
}
.download-box__form { display: flex; flex-direction: column; gap: 10px; }
.download-box__fields {
    display: flex; gap: 10px;
}
.download-box__fields input {
    flex: 1; padding: 12px 14px;
    border: 2px solid var(--gray-200); background: var(--white);
    font-family: var(--font-body); font-size: 14px; color: var(--navy);
    outline: none; transition: border-color 0.3s;
}
.download-box__fields input:focus { border-color: var(--navy); }
.download-box__fields input::placeholder { color: var(--gray-500); }
.download-box__submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; background: var(--red); color: var(--white);
    border: none; font-family: var(--font-display); font-size: 14px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: background 0.3s;
    align-self: flex-start;
}
.download-box__submit:hover { background: var(--navy); }
.download-box__submit i { font-size: 18px; }
.download-box__success {
    padding: 14px 18px; background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #22c55e; font-size: 14px; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
}
.download-box__success i { font-size: 20px; color: #22c55e; }
.download-box__success a {
    color: var(--red); font-weight: 700; text-decoration: underline;
}
@media (max-width: 600px) {
    .download-box { flex-direction: column; }
    .download-box__fields { flex-direction: column; }
    .download-box__submit { width: 100%; }
}


/* ============================================
   DOWNLOAD THANK YOU POPUP
   ============================================ */
.dl-popup {
    position: fixed; inset: 0; z-index: 15000;
    display: flex; align-items: center; justify-content: center;
}
.dl-popup__backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 15, 30, 0.5); backdrop-filter: blur(4px);
}
.dl-popup__card {
    position: relative; background: var(--navy); color: var(--white);
    padding: 48px 44px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: dlPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 380px; width: 90vw;
}
@keyframes dlPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.dl-popup__x {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 20px; cursor: pointer; padding: 4px;
    transition: color 0.2s;
}
.dl-popup__x:hover { color: var(--white); }
.dl-popup__logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 24px; font-weight: 900;
    margin-bottom: 20px;
}
.dl-popup__title {
    font-family: var(--font-display); font-size: 28px; font-weight: 900;
    margin-bottom: 8px; letter-spacing: -1px;
}
.dl-popup__text {
    font-size: 15px; color: var(--light-blue); margin-bottom: 20px;
}
.dl-popup__chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: rgba(255,255,255,0.1);
    font-family: var(--font-display); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.dl-popup__chip i { font-size: 18px; color: var(--red); }


/* Download popup pointer arrow */
.dl-popup__pointer {
    position: fixed; z-index: 15001;
    font-size: 40px; color: var(--red);
    filter: drop-shadow(0 2px 8px rgba(230,57,70,0.4));
}
.dl-popup__pointer--bottom-left {
    bottom: 24px; left: 60px;
    animation: dlPointerBounce 1s ease-in-out infinite;
}
.dl-popup__pointer--top-right {
    top: 12px; right: 40px;
    animation: dlPointerBounceUp 1s ease-in-out infinite;
}
.dl-popup__pointer--top-right i {
    display: block; transform: rotate(180deg);
}
@keyframes dlPointerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes dlPointerBounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   SEO ADMIN DASHBOARD
   ============================================ */

.seo-admin {
    padding: 6rem 0 4rem;
    min-height: 100vh;
    background: var(--gray-50, #f8f9fa);
}

.seo-admin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.seo-admin__header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-admin__subtitle {
    color: #666;
    margin-top: 0.25rem;
}

.seo-admin__status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: white;
    margin-bottom: 1.5rem;
}

.seo-admin__error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--red);
    color: white;
    margin-bottom: 1.5rem;
}

.seo-spin {
    animation: seoSpin 1s linear infinite;
}
@keyframes seoSpin {
    to { transform: rotate(360deg); }
}

/* Overview cards */
.seo-admin__overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.seo-card--stat {
    background: white;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.seo-card__icon {
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.seo-card__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.seo-card__label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Table */
.seo-admin__table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e0e0e0;
}

.seo-table th {
    background: var(--navy);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.seo-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.seo-table tr:hover {
    background: #f8f9fa;
}

.seo-table__title {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.seo-table__title:hover {
    color: var(--red);
}

.seo-table__slug {
    font-size: 0.75rem;
    color: #999;
    font-family: monospace;
}

.seo-table--compact td,
.seo-table--compact th {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Badges */
.seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.seo-badge--active {
    background: #d4edda;
    color: #155724;
}

.seo-badge--none {
    color: #999;
}

/* Detail panel */
.seo-detail {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.seo-detail__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.seo-detail__header h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--navy);
}

.seo-detail__section {
    margin-bottom: 2rem;
}

.seo-detail__section h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comparison */
.seo-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

.seo-compare-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.75rem;
}

.seo-compare-col--new h4 {
    color: var(--red);
}

.seo-compare-item {
    margin-bottom: 1rem;
}

.seo-compare-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 0.25rem;
}

.seo-compare-value {
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.seo-compare-value--editable {
    background: #fff;
    border-color: var(--red);
    cursor: text;
}

.seo-compare-value--editable:focus {
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

.seo-char-count {
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
}

.seo-compare-h2 {
    margin-bottom: 1.5rem;
}

.seo-compare-h2 ul {
    list-style: none;
    padding: 0;
}

.seo-compare-h2 li {
    padding: 0.5rem 0.75rem;
    background: #f0f4ff;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--navy);
    font-size: 0.9rem;
}

.seo-compare-reasoning {
    background: #fffbf0;
    border: 1px solid #f0e0b0;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.seo-compare-reasoning h4 {
    font-size: 0.85rem;
    color: #856404;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-compare-reasoning p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.seo-compare-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.seo-suggestions__empty {
    color: #999;
    font-style: italic;
}

/* Contact form success */
.contact-form__success {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #d4edda;
    color: #155724;
    margin-top: 1rem;
}

.contact-form__success i {
    font-size: 2rem;
    color: #28a745;
}

.contact-form__success p {
    margin: 0;
    font-weight: 500;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */

.newsletter {
    background: var(--navy);
    padding: 3.5rem 0;
}

.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter__text h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter__text p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.95rem;
}

.newsletter__form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.newsletter__form input {
    padding: 0.85rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
    min-width: 260px;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter__form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter__form input:focus {
    border-color: var(--red);
}

.newsletter__form .btn {
    border: none;
    white-space: nowrap;
}

.newsletter__success {
    color: #2ecc71;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .newsletter__inner {
        flex-direction: column;
        text-align: center;
    }
    .newsletter__text h2 {
        justify-content: center;
    }
    .newsletter__form {
        width: 100%;
        flex-direction: column;
    }
    .newsletter__form input {
        min-width: unset;
        width: 100%;
    }
}

/* ============================================
   FAQ SECTION (Article)
   ============================================ */
.article-faq {
    margin-top: 48px;
    border: 3px solid var(--gray-200);
    background: var(--white);
}
.article-faq__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: var(--gray-100);
    border-bottom: 3px solid var(--gray-200);
}
.article-faq__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}
.article-faq__title i { color: var(--red); font-size: 22px; }
.article-faq__generate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}
.article-faq__generate:hover { background: var(--navy); }
.article-faq__generate:disabled { opacity: 0.6; cursor: wait; }
.article-faq__generate i { font-size: 16px; }
.article-faq__loading {
    padding: 32px 28px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}
.article-faq__loading i { font-size: 20px; display: block; margin-bottom: 8px; }
.article-faq__body { padding: 0; }
.article-faq__item {
    padding: 20px 28px;
    border-bottom: 1px solid var(--gray-200);
}
.article-faq__item:last-child { border-bottom: none; }
.article-faq__q {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.article-faq__q::before {
    content: 'D';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}
.article-faq__a {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 36px;
}
@media (max-width: 768px) {
    .article-faq__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   LAZY LOADING IMAGES
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9000;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.3);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--red);
    transform: translateY(-2px);
}

/* ============================================
   ARTICLE PREV/NEXT NAVIGATION
   ============================================ */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 3px solid var(--gray-200);
}
.article-nav__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 3px solid var(--gray-200);
    text-decoration: none;
    color: var(--navy);
    transition: border-color 0.3s, transform 0.3s;
}
.article-nav__link:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}
.article-nav__link--next {
    text-align: right;
}
.article-nav__label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-nav__link--next .article-nav__label {
    justify-content: flex-end;
}
.article-nav__label i {
    font-size: 14px;
    color: var(--red);
}
.article-nav__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .article-nav {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COPY LINK BUTTON (article share)
   ============================================ */
.share-btn--copy {
    position: relative;
}
.share-btn--copy .copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.share-btn--copy .copy-tooltip.show {
    opacity: 1;
}

/* ============================================
   COOKIE / GDPR BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 11000;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.cookie-banner__card {
    background: var(--white);
    border: 3px solid var(--navy);
    padding: 28px;
    max-width: 420px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.cookie-banner__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.cookie-banner__icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}
.cookie-banner__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 2px;
    letter-spacing: -0.5px;
}
.cookie-banner__subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}
.cookie-banner__toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border: 2px solid var(--gray-200);
}
.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-200);
}
.cookie-toggle:last-child {
    border-bottom: none;
}
.cookie-toggle__info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.cookie-toggle__label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cookie-toggle__label i {
    font-size: 15px;
    color: var(--red);
}
.cookie-toggle__desc {
    font-size: 11px;
    color: var(--gray-500);
    line-height: 1.3;
}
.cookie-toggle__switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}
.cookie-toggle__switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    cursor: pointer;
    transition: background 0.3s;
}
.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-toggle__switch input:checked + .cookie-toggle__slider {
    background: var(--red);
}
.cookie-toggle__switch input:checked + .cookie-toggle__slider::before {
    transform: translateX(20px);
}
.cookie-toggle__switch--locked .cookie-toggle__slider {
    background: var(--navy);
    cursor: default;
}
.cookie-toggle__switch--locked .cookie-toggle__slider::before {
    transform: translateX(20px);
}
.cookie-toggle__lock {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--gray-500);
}
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cookie-banner__btn {
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cookie-banner__btn--accept {
    background: var(--red);
    color: var(--white);
    flex: 1;
    justify-content: center;
}
.cookie-banner__btn--accept:hover {
    background: var(--navy);
}
.cookie-banner__btn--save {
    background: var(--navy);
    color: var(--white);
}
.cookie-banner__btn--save:hover {
    background: var(--red);
}
.cookie-banner__btn--reject {
    background: var(--gray-100);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.cookie-banner__btn--reject:hover {
    border-color: var(--navy);
}
.cookie-banner__footer-text {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
}
.cookie-banner__footer-text a {
    color: var(--red);
    font-weight: 600;
}
@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner__card {
        max-width: 100%;
        padding: 20px;
    }
    .cookie-banner__actions {
        flex-direction: column;
    }
    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LOADING SKELETON STATES
   ============================================ */
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    margin-bottom: 8px;
}
.skeleton-line:last-child {
    width: 60%;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   IMPROVED 404 PAGE
   ============================================ */
.error-404__suggestions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 32px auto 0;
    text-align: left;
}
.error-404__suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid rgba(255,255,255,0.15);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.3s, background 0.3s;
}
.error-404__suggestion:hover {
    border-color: var(--red);
    background: rgba(255,255,255,0.05);
}
.error-404__suggestion i {
    font-size: 20px;
    color: var(--red);
}
@media (max-width: 480px) {
    .error-404__suggestions {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG CARD STAGGER ENTRANCE
   ============================================ */
.blog-card {
    transition-delay: calc(var(--card-index, 0) * 0.08s);
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    .nav, .footer, .chatbot, .search-modal, .ai-explain,
    .time-suggest, .dl-popup, .easter-egg, .cookie-banner,
    .back-to-top, .reading-progress, .newsletter,
    .ai-summary, .ai-hint, .ai-quiz, .article-faq,
    .article-share, .article-related, .article-nav,
    .page-transition, .ai-tools-bar {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
        opacity: 1;
    }
    .article-hero {
        background: #fff;
        color: #000;
        padding: 20px 0;
    }
    .article-hero__title {
        color: #000;
        font-size: 24pt;
    }
    .article-hero__excerpt {
        color: #333;
        visibility: visible;
    }
    .article-hero__breadcrumb,
    .article-hero__cat {
        color: #666;
    }
    .article-hero__meta {
        color: #666;
    }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        display: none;
    }
    .article-content {
        max-width: 100%;
    }
    .article-content h2 {
        color: #000;
        page-break-after: avoid;
    }
    .article-content p {
        color: #000;
        orphans: 3;
        widows: 3;
    }
    .article-content a {
        color: #000;
        text-decoration: underline;
    }
    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    .article-content blockquote {
        background: #f5f5f5;
        color: #000;
        border-left-color: #000;
    }
    .author-box {
        border-color: #ccc;
        background: #f9f9f9;
    }
    .author-box__avatar {
        background: #333;
    }
    .author-box__info h4 {
        color: #000;
    }
    .author-box__info p {
        color: #333;
    }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
}

/* ============================================
   INLINE NEWSLETTER CTA (inside articles)
   ============================================ */
.article-newsletter-cta {
    margin: 48px 0;
    padding: 32px;
    background: var(--navy);
    color: var(--white);
    border-left: 5px solid var(--red);
}
.article-newsletter-cta__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-newsletter-cta__title i { color: var(--red); }
.article-newsletter-cta__text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}
/* Force all text white inside newsletter CTA */
.article-newsletter-cta strong,
.article-newsletter-cta a,
.article-newsletter-cta em,
.article-newsletter-cta p,
.article-newsletter-cta span { color: var(--white); }
.article-newsletter-cta__form {
    display: flex;
    gap: 12px;
}
.article-newsletter-cta__form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.article-newsletter-cta__form input::placeholder { color: rgba(255,255,255,0.5); }
.article-newsletter-cta__form input:focus { border-color: var(--red); }
.article-newsletter-cta__form button {
    padding: 12px 24px;
    background: var(--red);
    color: var(--white);
    border: none;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
}
.article-newsletter-cta__form button:hover { background: #c5303c; }
.article-newsletter-cta__success {
    display: none;
    color: var(--light-blue);
    font-weight: 600;
    margin-top: 12px;
}
@media (max-width: 600px) {
    .article-newsletter-cta__form { flex-direction: column; }
    .article-newsletter-cta__form button { justify-content: center; }
}
