/**
 * ============================================================
 * AI ERA — Homepage Sections
 * Styles for the AI Objection Killer and Winning Formula sections
 *
 * Sections:
 *   1. AI Myth Section (#ai-myth)  — "Can't AI Just Do The Auditing?"
 *   2. AI Formula Section (#ai-formula) — "The Winning Formula"
 * ============================================================
 */

/* ============================================================
   SECTION 1 — AI MYTH (Objection Killer)
   id="ai-myth"
   Signal vs. Noise: cards 1 & 2 fade away, card 3 is the ONLY signal.
   ============================================================ */

/* --- Section wrapper --- */
.ai-myth-section {
    overflow: hidden;
    position: relative;
    background: transparent;
    border-top: none;
    padding-bottom: 2rem;
}

.ai-myth-section + .comparison-section-lite {
    padding-top: 2rem;
}

/* Hide the section's own decorative orbs so only the page-wide background is visible */
.ai-myth-section .myth-bg {
    display: none;
}

/* --- Background gradient layer --- */
.myth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.myth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.08) 0%, rgba(5, 7, 13, 0.52) 100%);
}

.myth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.08;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 72%);
}

.myth-bg-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Teal/cyan orb — top right. Intentionally different from hero's purple */
.myth-bg-orb-1 {
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(10, 160, 175, 0.46) 0%, rgba(5, 100, 125, 0.18) 40%, transparent 68%);
    filter: blur(140px);
    top: -240px;
    right: -160px;
    animation: mythOrbFloat1 24s ease-in-out infinite;
}

/* Deep navy-blue orb — bottom left */
.myth-bg-orb-2 {
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(18, 28, 180, 0.42) 0%, rgba(10, 16, 120, 0.16) 45%, transparent 70%);
    filter: blur(130px);
    bottom: -220px;
    left: -140px;
    animation: mythOrbFloat2 28s ease-in-out infinite;
}

/* Subtle centre bleed — ties the two orbs together */
.myth-bg-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 90, 155, 0.28) 0%, transparent 65%);
    filter: blur(110px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mythOrbFloat3 20s ease-in-out infinite;
}

@keyframes mythOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-36px, 24px) scale(1.04); }
}

@keyframes mythOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(28px, -30px) scale(1.06); }
}

@keyframes mythOrbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -53%) scale(1.05); }
}

/* Content sits above the background layer */
.myth-content {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- Header block --- */
.ai-myth-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Wider header copy for the ai-myth section specifically — keeps the subtext
   from wrapping into a narrow column under the large display title. */
.ai-myth-section .ai-myth-header {
    max-width: 1200px;
    padding: 0 2rem;
}
.ai-myth-section .ai-myth-subtext {
    max-width: 1040px;
}

/* Self-hosted hand-drawn face used by the crayon digit */
@font-face {
    font-family: 'Benedict';
    src: url('../fonts/benedict-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Crayon / painted digit used inline in the ai-myth-title (e.g. "The 3 things…")
   — Benedict brush face for the hand-drawn/painted look, cyan→purple gradient for
   the "marker stroke" feel, slight rotation so it sits like something scrawled
   by hand on the page. */
.crayon-digit {
    display: inline-block;
    font-family: 'Benedict', 'Permanent Marker', 'Caveat', 'Comic Sans MS', cursive;
    font-weight: 400;
    font-size: 1.35em;
    line-height: 1;
    padding: 0.1em 0.1em 0;
    vertical-align: -0.1em;
    transform: rotate(-6deg);
    background-image: linear-gradient(
        135deg,
        #45F4FF 0%,
        #7cc8ff 45%,
        #c084fc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(1px 1px 0 rgba(69, 244, 255, 0.35))
        drop-shadow(-1px 2px 6px rgba(168, 85, 247, 0.45))
        drop-shadow(0 0 18px rgba(69, 244, 255, 0.25));
    animation: crayonDigitWobble 6s ease-in-out infinite;
    transform-origin: center 60%;
}

@keyframes crayonDigitWobble {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50%      { transform: rotate(-4.5deg) translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
    .crayon-digit { animation: none; }
}

/* --- Badge (mirrors .salary-badge) --- */
.ai-myth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(69, 244, 255, 0.08);
    border: 1px solid rgba(69, 244, 255, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent-secondary);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ai-myth-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* --- Section title --- */
.ai-myth-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-top: 0.35em;
}

/* Shimmer on the word "AI" within the title — handled by wrapping span in HTML */
.ai-myth-title .shimmer-word {
    background-image: linear-gradient(
        100deg,
        var(--accent-secondary) 25%,
        #ffffff 50%,
        var(--accent-secondary) 75%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

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

.ai-myth-subtext {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* --- Cards grid --- */
.ai-myth-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

/* --- Base card --- */
.ai-myth-card {
    position: relative;
    border-radius: 24px;
    padding: 2.25rem 2rem 2.5rem;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    /* Initial pre-animation state — overridden when JS adds .is-visible */
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.5s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* --- NOISE cards (cards 1 & 2) — muted, desaturated, receding --- */
.ai-myth-card--noise {
    background: linear-gradient(180deg, rgba(12, 17, 29, 0.84) 0%, rgba(8, 11, 20, 0.78) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 56px rgba(2, 6, 23, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ai-myth-card--noise:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 20px 56px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* When winner card enters, noise cards dim further */
.ai-myth-card--noise.is-dimmed {
    filter: brightness(0.65);
    opacity: 0.55;
}

/* --- SIGNAL card (card 3) — the ONLY colored element --- */
.ai-myth-card--signal {
    background: linear-gradient(155deg, rgba(8, 24, 35, 0.9) 0%, rgba(13, 34, 54, 0.82) 42%, rgba(18, 24, 42, 0.86) 100%);
    border-color: rgba(69, 244, 255, 0.38);
    box-shadow:
        0 24px 64px rgba(3, 12, 28, 0.34),
        0 0 40px rgba(69, 244, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.ai-myth-card--signal:hover {
    box-shadow:
        0 30px 72px rgba(3, 12, 28, 0.4),
        0 0 52px rgba(69, 244, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- Animated border trace on winner card --- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.ai-myth-card-border-trace {
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: conic-gradient(
        from var(--angle),
        transparent 0%,
        rgba(69, 244, 255, 0.6) 8%,
        rgba(168, 85, 247, 0.4) 16%,
        transparent 22%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    opacity: 0;
    animation: borderTrace 4s linear infinite;
    animation-play-state: paused;
    transition: opacity 0.8s ease 0.3s;
}

.ai-myth-card--signal.is-visible .ai-myth-card-border-trace {
    opacity: 1;
    animation-play-state: running;
}

@keyframes borderTrace {
    to { --angle: 360deg; }
}

/* --- Card header row --- */
.ai-myth-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* SVG icon container */
.ai-myth-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-myth-card--signal .ai-myth-card-icon {
    color: var(--accent-secondary);
    background: linear-gradient(180deg, rgba(69, 244, 255, 0.12) 0%, rgba(69, 244, 255, 0.06) 100%);
    border-color: rgba(69, 244, 255, 0.28);
}

/* --- CPU icon: flickering "processing" pulse --- */
.ai-myth-card-icon--cpu {
    color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.045);
    animation: iconCpuPulse 3.5s ease-in-out infinite;
}

@keyframes iconCpuPulse {
    0%, 100% { opacity: 0.7; }
    30%       { opacity: 1; }
    35%       { opacity: 0.65; }
    40%       { opacity: 0.95; }
    70%       { opacity: 0.7; }
}

/* --- Shield icon: slow heartbeat --- */
.ai-myth-card-icon--shield {
    color: rgba(255,255,255,0.45);
    animation: iconShieldBeat 4.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes iconShieldBeat {
    0%, 100% { transform: scale(1);    opacity: 0.7; }
    40%      { transform: scale(1.12); opacity: 1; }
    55%      { transform: scale(1.12); opacity: 1; }
    70%      { transform: scale(1);    opacity: 0.7; }
}

/* --- Merge icon: energetic cyan glow --- */
.ai-myth-card-icon--merge {
    color: var(--accent-secondary);
    background: rgba(69,244,255,0.12);
    border-color: rgba(69,244,255,0.35);
    animation: iconMergeGlow 2.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes iconMergeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(69,244,255,0.45));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(69,244,255,0.9));
    }
}

.ai-myth-card-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-myth-card-title-group h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

/* --- Card list items --- */
.ai-myth-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.ai-myth-card-list li {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Minimal card layout — icon, short title, one-line lede. No bullets. */
.ai-myth-cards--minimal .ai-myth-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 1rem;
    align-items: center;
    padding: 1.5rem 1.5rem;
}
.ai-myth-cards--minimal .ai-myth-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}
.ai-myth-cards--minimal .ai-myth-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
}
.ai-myth-cards--minimal .ai-myth-card-lede {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* Step marker — tiny monospace "01/02/03" in top-right corner of the minimal cards */
.ai-myth-cards--minimal .ai-myth-card {
    position: relative;
}
.ai-myth-card-step {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(69, 244, 255, 0.55);
    line-height: 1;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(69, 244, 255, 0.22);
    border-radius: 6px;
    background: rgba(69, 244, 255, 0.05);
    user-select: none;
    pointer-events: none;
}
.ai-myth-card-lede {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}
.ai-myth-cards--minimal .ai-myth-card--signal .ai-myth-card-lede {
    color: var(--text-primary);
}

/* Consistent check marker for all cards */
.ai-myth-card-list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c084fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
}

/* Override for signal card list */
.ai-myth-card-list--signal li {
    color: var(--text-secondary);
    /* Each item hidden initially for stagger animation */
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        color 0.2s ease;
}

.ai-myth-card-list--signal li.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.ai-myth-card-list--signal li::before {
    background: rgba(69, 244, 255, 0.18);
    border-color: rgba(69, 244, 255, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345F4FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    transition: background 0.15s ease;
}

/* Flash animation on checkmark when item enters */
.ai-myth-card-list--signal li.check-flash::before {
    background-color: rgba(69, 244, 255, 0.5);
}

/* When the whole card is visible but items aren't staggered yet */
.ai-myth-card--signal.is-visible .ai-myth-card-list--signal li {
    /* JS will add is-visible per item with delay */
}

/* --- CTA strip below cards --- */
.ai-myth-cta-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.65rem 1.75rem 1.65rem 2rem;
    background: linear-gradient(135deg, rgba(8, 17, 29, 0.92) 0%, rgba(11, 25, 39, 0.84) 58%, rgba(9, 12, 23, 0.9) 100%);
    border: 1px solid rgba(69, 244, 255, 0.18);
    border-radius: 22px;
    flex-wrap: wrap;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0 24px 64px rgba(2, 6, 23, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ai-myth-cta-strip::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(69, 244, 255, 0.24) 0%, transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.ai-myth-cta-strip:hover {
    border-color: rgba(69, 244, 255, 0.28);
    box-shadow:
        0 28px 72px rgba(2, 6, 23, 0.32),
        0 0 30px rgba(69, 244, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-myth-cta-strip .ai-myth-cta-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.84);
    line-height: 1.65;
    flex: 1;
    min-width: 200px;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.ai-myth-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 56px;
    padding: 0.95rem 1.55rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 196, 255, 0.3) 0%, rgba(88, 123, 255, 0.2) 100%);
    border: 1px solid rgba(97, 229, 255, 0.48);
    box-shadow:
        0 12px 30px rgba(28, 116, 214, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}

.ai-myth-cta-button:hover {
    transform: translateY(-2px);
    border-color: rgba(133, 240, 255, 0.72);
    background: linear-gradient(135deg, rgba(57, 206, 255, 0.4) 0%, rgba(110, 138, 255, 0.26) 100%);
    box-shadow:
        0 18px 42px rgba(28, 116, 214, 0.3),
        0 0 30px rgba(69, 244, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ai-myth-cta-button span,
.ai-myth-cta-button svg {
    position: relative;
    z-index: 1;
}

.ai-myth-cta-arrow {
    transition: transform 0.3s ease;
}

.ai-myth-cta-button:hover .ai-myth-cta-arrow {
    transform: translateX(4px);
}

/* --- Visible state (set by JS IntersectionObserver) --- */
.ai-myth-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   SECTION 2 — AI FORMULA (The Winning Formula)
   id="ai-formula"
   ============================================================ */

/* --- Section wrapper --- */
.ai-formula-section {
    overflow: hidden;
}

/* --- Header block --- */
.ai-formula-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

/* --- Badge (mirrors .salary-badge) --- */
.ai-formula-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent-primary-strong);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.ai-formula-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* --- Section title --- */
.ai-formula-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Cyan gradient accent on the "First Movers Win" span */
.ai-formula-title-accent {
    background-image: linear-gradient(
        100deg,
        var(--accent-secondary) 0%,
        var(--accent-primary-strong) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-formula-subtitle {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* --- Stats grid --- */
.ai-formula-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

/* --- Individual stat item --- */
.ai-formula-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ai-formula-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(69, 244, 255, 0.2);
    box-shadow: 0 8px 40px rgba(69, 244, 255, 0.1);
}

/* Featured center stat */
.ai-formula-stat--featured {
    background: linear-gradient(
        160deg,
        rgba(69, 244, 255, 0.1) 0%,
        rgba(168, 85, 247, 0.06) 100%
    );
    border-color: rgba(69, 244, 255, 0.35);
    box-shadow:
        0 0 40px rgba(69, 244, 255, 0.15),
        inset 0 1px 0 rgba(69, 244, 255, 0.15);
    transform: scale(1.06);
    z-index: 1;
}

.ai-formula-stat--featured:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow:
        0 0 60px rgba(69, 244, 255, 0.25),
        0 16px 48px rgba(69, 244, 255, 0.15);
}

.ai-formula-stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    background-image: linear-gradient(
        135deg,
        var(--accent-secondary) 0%,
        var(--accent-secondary-strong) 40%,
        #f0a500 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.ai-formula-stat-label {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.ai-formula-stat-desc {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 200px;
}

/* --- Value proposition: 2-column layout --- */
.ai-formula-value {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
}

.ai-formula-value-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* --- Feature list with cyan checkmarks --- */
.ai-formula-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ai-formula-list li {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ai-formula-list li::before {
    content: '✓';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(69, 244, 255, 0.12);
    border: 1px solid rgba(69, 244, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 22px;
    text-align: center;
    margin-top: 1px;
}

/* --- Right column: equation + CTA --- */
.ai-formula-value-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* --- Equation block --- */
.ai-formula-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(69, 244, 255, 0.2);
    border-radius: 20px;
    width: 100%;
}

/* Equation part pills */
.eq-part {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    padding: 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 90px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.eq-part:hover {
    background: rgba(69, 244, 255, 0.08);
    border-color: rgba(69, 244, 255, 0.3);
}

/* Operator symbols */
.eq-plus,
.eq-equals {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
}

/* Result — the star of the equation */
.eq-result {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.3;
    padding: 0.85rem 1.4rem;
    border-radius: 14px;
    background-image: linear-gradient(
        135deg,
        rgba(69, 244, 255, 0.15) 0%,
        rgba(168, 85, 247, 0.1) 100%
    );
    border: 1px solid rgba(69, 244, 255, 0.45);
    box-shadow:
        0 0 24px rgba(69, 244, 255, 0.2),
        inset 0 1px 0 rgba(69, 244, 255, 0.15);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(
        135deg,
        var(--accent-secondary) 0%,
        var(--accent-secondary-strong) 50%,
        var(--accent-primary-strong) 100%
    );
    animation: resultGlow 3s ease-in-out infinite;
    /* Override text-fill for box rendering */
    position: relative;
}

/* We need the background on the box but gradient on text — use wrapper trick */
.eq-result::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(69, 244, 255, 0.15) 0%,
        rgba(168, 85, 247, 0.1) 100%
    );
    border: 1px solid rgba(69, 244, 255, 0.45);
    box-shadow:
        0 0 24px rgba(69, 244, 255, 0.2),
        inset 0 1px 0 rgba(69, 244, 255, 0.15);
    z-index: -1;
}

@keyframes resultGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(69, 244, 255, 0.4)); }
    50%       { filter: drop-shadow(0 0 18px rgba(69, 244, 255, 0.7)); }
}

/* --- Formula CTA button --- */
.ai-formula-cta-btn {
    width: 100%;
    text-align: center;
}


/* ============================================================
   RESPONSIVE — 900px breakpoint
   ============================================================ */

@media (max-width: 900px) {

    /* AI Myth cards: stack vertically */
    .ai-myth-cards {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Signal card retains color but no scale on mobile */
    .ai-myth-card--signal {
        transform: none;
    }

    .ai-myth-card--signal.is-visible {
        transform: translateY(0);
    }

    /* Dimming effect is lighter on mobile — less harsh on small screens */
    .ai-myth-card--noise.is-dimmed {
        filter: brightness(0.75);
        opacity: 0.65;
    }

    /* AI Formula stats: stay 3-col but smaller, or collapse to 1-col — using 1-col for clarity */
    .ai-formula-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .ai-formula-stat--featured {
        transform: none;
    }

    .ai-formula-stat--featured:hover {
        transform: translateY(-4px);
    }

    /* AI Formula value: stack vertically */
    .ai-formula-value {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    /* CTA strip: stack vertically on small screens */
    .ai-myth-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ai-myth-cta-strip .btn {
        width: 100%;
        text-align: center;
    }
}


/* ============================================================
   RESPONSIVE — 600px breakpoint
   ============================================================ */

@media (max-width: 600px) {

    .ai-myth-header,
    .ai-formula-header {
        margin-bottom: 2.5rem;
    }

    .ai-myth-card {
        padding: 1.5rem 1.25rem;
    }

    .ai-myth-cta-button {
        width: 100%;
    }

    /* Formula equation wraps vertically */
    .ai-formula-equation {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.5rem 1rem;
    }

    .eq-plus,
    .eq-equals {
        font-size: 1.2rem;
        transform: rotate(90deg);
    }

    .eq-part,
    .eq-result {
        width: 100%;
        min-width: unset;
        justify-content: center;
    }

    .ai-formula-value {
        padding: 1.5rem 1rem;
    }

    .ai-formula-value-cta {
        width: 100%;
    }

    .ai-formula-cta-btn {
        font-size: 1rem;
    }
}


/* ============================================================
   RESPONSIVE — 480px breakpoint
   ============================================================ */

@media (max-width: 480px) {

    .ai-myth-header,
    .ai-formula-header {
        margin-bottom: 2rem;
    }

    .ai-myth-title,
    .ai-formula-title {
        font-size: 1.65rem;
    }

    .ai-myth-subtext,
    .ai-formula-subtitle {
        font-size: 0.95rem;
    }

    .ai-myth-badge,
    .ai-formula-badge {
        font-size: 0.6rem;
        padding: 0.4rem 1rem;
        letter-spacing: 0.08em;
    }

    .ai-myth-card {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .ai-myth-card-icon {
        width: 42px;
        height: 42px;
    }

    .ai-myth-card-title-group h3 {
        font-size: 0.95rem;
    }

    .ai-myth-card-list li {
        font-size: 0.85rem;
    }

    .ai-myth-cta-strip {
        padding: 1.25rem 1.25rem;
    }

    .ai-myth-cta-strip .ai-myth-cta-text {
        font-size: 0.9rem;
        min-width: 0;
    }

    .ai-formula-stat {
        padding: 1.5rem 1rem;
    }

    .ai-formula-stat-value {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Pause all icon/border animations when section is off-screen (toggled by JS) */
.animations-paused .ai-myth-card-icon--cpu,
.animations-paused .ai-myth-card-icon--shield,
.animations-paused .ai-myth-card-icon--merge,
.animations-paused .ai-myth-card-border-trace {
    animation-play-state: paused;
}
