/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    animation: pageEntry 0.8s ease-out;
    font-family: 'Raleway', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ====== OVERLAYS ====== */
.edge-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 240, 255, 0.02) 80%, rgba(0, 240, 255, 0.06) 100%);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    opacity: 0.05;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    filter: brightness(110%);
}

/* ====== PAGE INTRO ====== */
#page-intro {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-intro.exiting {
    opacity: 0;
    transform: scale(1.08);
}

/* ====== ORIGINAL MORPHING CONTAINER ====== */
#container {
    position: relative;
    width: 80vw;
    height: auto;
    filter: url(#threshold) blur(0.6px);
    text-align: center;
    transition: transform 0.15s ease-out;
    will-change: transform;
    cursor: pointer;
}

#text1, #text2 {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(32pt, 11vw, 88pt);
    font-weight: 900;
    text-align: center;
    user-select: none;
    filter: url(#wobble);
}

/* ====== VAPOUR CANVAS (hidden until click) ====== */
#vapour-canvas {
    position: fixed;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#vapour-canvas.active {
    opacity: 1;
}

/* ====== CLICK HINT ====== */
.click-hint {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: hintFadeIn 1.5s ease 2s both;
}

.hint-text {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    animation: hintPulse 3s ease-in-out infinite;
}

.hint-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

@keyframes hintFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes pageEntry {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====== PAGE EXIT OVERLAY ====== */
.page-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0d0d1a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-exit-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ====== DOTS BACKGROUND PATTERN ====== */
.dots-bg {
    position: fixed;
    inset: -40px;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    animation: dotsDrift 20s ease-in-out infinite;
}

@keyframes dotsDrift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(8px, -6px); }
    50%  { transform: translate(-4px, 10px); }
    75%  { transform: translate(-10px, -4px); }
    100% { transform: translate(0, 0); }
}

/* ====== PAGE MAIN ====== */
#page-main {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 14vh;
    gap: 0;
}

#page-main.visible {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.main-content {
    text-align: center;
    flex-shrink: 0;
}

.main-logo {
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(0, 240, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.5), transparent);
    margin: 0 auto 20px;
}

.main-subtitle {
    font-size: clamp(12px, 1.8vw, 18px);
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.main-tagline {
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.25);
}

/* ====== ECOSYSTEM SECTION ====== */
.ecosystem {
    flex-shrink: 0;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.ecosystem.visible {
    opacity: 1;
    transform: translateY(0);
}

.ecosystem-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.eco-text {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.eco-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.cards-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* ====== GLOW CARDS (ported from React spotlight-card) ====== */
[data-glow] {
    --border: 3;
    --radius: 14;
    --backdrop: hsl(0 0% 60% / 0.12);
    --backup-border: var(--backdrop);
    --size: 300;
    --outer: 1;
    --border-size: calc(var(--border, 2) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
}

.glow-card {
    --base: 220;
    --spread: 200;
    width: 260px;
    min-height: 280px;
    border-radius: calc(var(--radius) * 1px);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    backdrop-filter: blur(5px);
    background-color: var(--backdrop, transparent);
    border: var(--border-size) solid var(--backup-border);
    box-shadow: 0 1rem 2rem -1rem rgba(0, 0, 0, 0.5);
    touch-action: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* No interior spotlight — glow on border only */

.glow-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card color variants */
[data-glow-color="blue"]  { --base: 220; --spread: 200; }
[data-glow-color="purple"] { --base: 280; --spread: 300; }
[data-glow-color="green"]  { --base: 140; --spread: 200; }

/* Border glow — gradient border that lights up near cursor */
.glow-card::before {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border-radius: calc(var(--radius) * 1px);
    padding: var(--border-size);
    background: radial-gradient(
        calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
        calc(var(--x, 0) * 1px)
        calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 60% / 1), transparent 100%
    );
    /* Cut out the center — only show the border ring */
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: brightness(1.5);
}

/* White highlight on border near cursor */
.glow-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border-radius: calc(var(--radius) * 1px);
    padding: var(--border-size);
    background: radial-gradient(
        calc(var(--spotlight-size) * 0.4) calc(var(--spotlight-size) * 0.4) at
        calc(var(--x, 0) * 1px)
        calc(var(--y, 0) * 1px),
        hsl(0 0% 100% / 0.7), transparent 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-card.glow-active::before,
.glow-card.glow-active::after {
    opacity: 1;
}

/* Subtle outer bloom — only on hover */
.glow-card-outer {
    position: absolute;
    inset: -6px;
    border-radius: calc((var(--radius) + 3) * 1px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        calc(var(--spotlight-size) * 0.6) calc(var(--spotlight-size) * 0.6) at
        calc((var(--x, 0) + 6) * 1px)
        calc((var(--y, 0) + 6) * 1px),
        hsl(var(--hue, 210) 100% 50% / 0.2), transparent 100%
    );
    filter: blur(10px);
}

.glow-card.glow-active .glow-card-outer {
    opacity: 1;
}

/* Card content */
.glow-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    color: rgba(0, 240, 255, 0.6);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.card-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

/* Dealflow clickable card */
.glow-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.glow-card-link:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* ====== MINI CARD (small accent card, e.g. Le Vestiaire) ====== */
.glow-card-mini {
    /* Compact horizontal layout — sits below the main 3-card row, more discreet */
    width: auto;
    max-width: 480px;
    min-height: 0;
    margin: 32px auto 0;
    padding: 16px 22px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

/* Reuse the .visible state used by the other cards via JS */
.glow-card-mini.visible {
    opacity: 1;
    transform: translateY(0);
}

.glow-card-mini .glow-card-content {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
}

.glow-card-mini .mini-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin: 0;
    opacity: 0.6;
}

.glow-card-mini .mini-icon svg {
    width: 18px;
    height: 18px;
}

.glow-card-mini .mini-text {
    flex: 1;
    min-width: 0;
}

.glow-card-mini .mini-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.glow-card-mini .mini-desc {
    font-size: 0.72rem;
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.35;
}

.glow-card-mini .mini-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.glow-card-mini:hover .mini-arrow {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.glow-card-mini:hover .mini-icon {
    opacity: 0.95;
}

.glow-card-mini.glow-card-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .glow-card-mini {
        max-width: 92%;
        margin-top: 24px;
        padding: 14px 18px;
    }
    .glow-card-mini .mini-title { font-size: 0.9rem; }
    .glow-card-mini .mini-desc { font-size: 0.68rem; }
}

/* ====== EXCLUSIVE BADGE ====== */
.card-exclusive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    width: fit-content;
}

/* ====== CHAT SECTION ====== */
.chat-section {
    flex-shrink: 0;
    margin-top: 80px;
    padding-bottom: 40px;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chat-section.visible {
    opacity: 0.35;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.chat-section.visible:hover {
    opacity: 1;
}

.chat-section.visible:hover .chat-container {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.03);
}

.chat-section.visible:hover .eco-text {
    color: rgba(255, 255, 255, 0.5);
}

.chat-section.visible:hover .eco-line {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Chat suggestions */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 14px 10px;
    justify-content: center;
}

.chat-suggestions.hidden {
    display: none;
}

.chat-suggestion {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 6px 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.chat-suggestion:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.chat-container {
    position: relative;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Messages area */
.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    display: none;
}

.chat-messages.has-messages {
    display: block;
    padding: 16px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 85%;
    margin-bottom: 10px;
    animation: msgFadeIn 0.3s ease;
}

.chat-msg.user {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    margin-left: auto;
    font-weight: 400;
}

.chat-msg.ai {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.2px;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.chat-typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input area */
.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.5;
    cursor: text;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.chat-send {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0b;
}

.chat-send:not(:disabled):hover {
    background: #fff;
    transform: scale(1.05);
}

.chat-send:disabled {
    cursor: default;
}

.chat-send svg {
    width: 14px;
    height: 14px;
}

/* ====== HIDE SVG ====== */
#filters {
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
    }

    /* Intro page — smaller text */
    #text1, #text2 {
        font-size: clamp(28pt, 14vw, 60pt);
    }

    .click-hint {
        bottom: 8vh;
    }

    .hint-text {
        font-size: 0.6rem;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.85);
    }

    .hint-line {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    }

    /* Main page — tighter spacing */
    #page-main {
        padding: 0 0 25vh;
        gap: 0;
    }

    .main-logo {
        font-size: clamp(36px, 12vw, 70px);
        margin-bottom: 14px;
    }

    .main-subtitle {
        font-size: clamp(9px, 2.5vw, 14px);
        letter-spacing: 4px;
    }

    .main-tagline {
        font-size: clamp(8px, 2vw, 11px);
        letter-spacing: 2px;
        padding: 0 20px;
    }

    /* Ecosystem — keep 3 cards in a row like desktop, just smaller */
    .ecosystem {
        margin-top: 28px;
    }

    .ecosystem-label {
        margin-bottom: 18px;
    }

    .cards-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0 12px !important;
        justify-content: center;
        align-items: stretch;
    }

    /* The 3 main cards (inside .cards-row) — equal-width row layout */
    .cards-row > .glow-card {
        width: calc(33.33% - 6px) !important;
        max-width: calc(33.33% - 6px) !important;
        min-height: auto !important;
        padding: 14px 10px !important;
        flex: 1 1 0 !important;
    }

    .cards-row > .glow-card .glow-card-content {
        gap: 6px;
    }

    .cards-row > .glow-card .card-title {
        font-size: 0.7rem;
    }

    .cards-row > .glow-card .card-desc {
        font-size: 0.55rem;
        line-height: 1.4;
    }

    .cards-row > .glow-card .card-icon {
        width: 20px;
        height: 20px;
    }

    .card-exclusive-badge {
        font-size: 0.4rem;
        padding: 2px 6px;
        gap: 3px;
    }

    .card-exclusive-badge svg {
        width: 7px;
        height: 7px;
    }

    /* Le Vestiaire mini card — horizontal pill below the row, full readable width */
    .glow-card.glow-card-mini {
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        min-height: 0 !important;
        margin: 18px auto 0 !important;
        padding: 12px 16px !important;
    }

    .glow-card-mini .mini-title {
        font-size: 0.85rem;
    }

    .glow-card-mini .mini-desc {
        font-size: 0.65rem;
        line-height: 1.35;
    }

    .glow-card-mini .mini-icon {
        width: 26px;
        height: 26px;
    }

    .glow-card-mini .mini-icon svg {
        width: 14px;
        height: 14px;
    }

    .glow-card-mini .mini-arrow {
        width: 24px;
        height: 24px;
    }

    .glow-card-mini .mini-arrow svg {
        width: 12px;
        height: 12px;
    }

    /* Chat section — fit mobile */
    .chat-section {
        margin-top: 48px;
        padding: 0 16px 30px;
        max-width: 100%;
    }

    .chat-suggestions {
        padding: 12px 10px 8px;
        gap: 6px;
    }

    .chat-suggestion {
        font-size: 0.58rem;
        padding: 5px 10px;
    }

    .chat-input {
        font-size: 0.78rem;
    }

    /* Override hint pulse for contrast(15) parent */
    @keyframes hintPulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
}

/* Small phones — keep the 3-cards-in-a-row layout, scale down further */
@media (max-width: 380px) {
    .main-logo {
        font-size: 32px;
    }

    .main-subtitle {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .cards-row {
        gap: 6px !important;
        padding: 0 10px !important;
    }

    .cards-row > .glow-card {
        padding: 12px 8px !important;
    }

    .cards-row > .glow-card .card-title {
        font-size: 0.6rem;
    }

    .cards-row > .glow-card .card-desc {
        font-size: 0.48rem;
    }

    .cards-row > .glow-card .card-icon {
        width: 18px;
        height: 18px;
    }

    .glow-card.glow-card-mini {
        padding: 10px 14px !important;
    }

    .glow-card-mini .mini-title {
        font-size: 0.78rem;
    }

    .glow-card-mini .mini-desc {
        font-size: 0.6rem;
    }
}
