/* ═════════════════════════════════════════════════════════ */
/* LANDING PAGE — Dashboard Architecture                    */
/* Sections: Shell ▸ Header ▸ Bento Grid ▸ Footer           */
/* ═════════════════════════════════════════════════════════ */

/* === DARK MODE: LANDING-SPECIFIC OVERRIDES === */
body.dark-mode .landing-header {
    background: transparent;
}
body.dark-mode .landing-header-pill {
    background: rgba(15, 25, 45, 0.6);
    border-color: rgba(56, 189, 248, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.dark-mode .landing-header-pill::before {
    background:
        radial-gradient(ellipse at 10% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 30%, rgba(120, 80, 255, 0.10) 0%, transparent 50%);
}
body.dark-mode .landing-brand-name {
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 30%, #c4b5fd 60%, #bae6fd 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandTextShimmer 6s ease-in-out infinite;
}
body.dark-mode .landing-brand-tagline {
    color: rgba(148, 163, 184, 0.8);
}
body.dark-mode .landing-header-right .landing-greeting {
    color: rgba(148, 163, 184, 0.9);
}

body.dark-mode .tool-row {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-color: rgba(255, 255, 255, 0.06);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.dark-mode .tool-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: perspective(600px) rotateX(var(--ry)) rotateY(var(--rx)) translateY(-6px) scale(1.03);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
/* Night mode — neon icon glows (color-matched per icon) */
body.dark-mode .tool-icon.icon-blue    { box-shadow: 0 0 14px rgba(59, 130, 246, 0.45), 0 0 4px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-emerald  { box-shadow: 0 0 14px rgba(16, 185, 129, 0.45), 0 0 4px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-amber    { box-shadow: 0 0 14px rgba(245, 158, 11, 0.50), 0 0 4px rgba(245, 158, 11, 0.30), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-orange   { box-shadow: 0 0 14px rgba(249, 115, 22, 0.45), 0 0 4px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-indigo   { box-shadow: 0 0 14px rgba(129, 140, 248, 0.45), 0 0 4px rgba(129, 140, 248, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-rose     { box-shadow: 0 0 14px rgba(251, 113, 133, 0.45), 0 0 4px rgba(251, 113, 133, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-violet   { box-shadow: 0 0 14px rgba(167, 139, 250, 0.50), 0 0 4px rgba(167, 139, 250, 0.30), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-teal     { box-shadow: 0 0 14px rgba(45, 212, 191, 0.45), 0 0 4px rgba(45, 212, 191, 0.25), inset 0 1px 0 rgba(255,255,255,0.15); }
body.dark-mode .tool-icon.icon-muted    { box-shadow: 0 0 10px rgba(148, 163, 184, 0.30), 0 0 4px rgba(148, 163, 184, 0.15), inset 0 1px 0 rgba(255,255,255,0.10); }
/* Night mode hover — intensified neon bloom */
body.dark-mode .tool-row:hover .tool-icon.icon-blue    { box-shadow: 0 0 22px rgba(59, 130, 246, 0.65), 0 0 6px rgba(59, 130, 246, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-emerald  { box-shadow: 0 0 22px rgba(16, 185, 129, 0.65), 0 0 6px rgba(16, 185, 129, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-amber    { box-shadow: 0 0 22px rgba(245, 158, 11, 0.70), 0 0 6px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-orange   { box-shadow: 0 0 22px rgba(249, 115, 22, 0.65), 0 0 6px rgba(249, 115, 22, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-indigo   { box-shadow: 0 0 22px rgba(129, 140, 248, 0.65), 0 0 6px rgba(129, 140, 248, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-rose     { box-shadow: 0 0 22px rgba(251, 113, 133, 0.65), 0 0 6px rgba(251, 113, 133, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-violet   { box-shadow: 0 0 22px rgba(167, 139, 250, 0.70), 0 0 6px rgba(167, 139, 250, 0.45), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-teal     { box-shadow: 0 0 22px rgba(45, 212, 191, 0.65), 0 0 6px rgba(45, 212, 191, 0.40), inset 0 1px 0 rgba(255,255,255,0.20); transform: scale(1.12); }
body.dark-mode .tool-row:hover .tool-icon.icon-muted    { box-shadow: 0 0 18px rgba(148, 163, 184, 0.50), 0 0 5px rgba(148, 163, 184, 0.30), inset 0 1px 0 rgba(255,255,255,0.15); transform: scale(1.12); }

/* Light-mode landing page — warm golden-hour ambient glow */
body:not(.dark-mode) .landing-page {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 180, 80, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 30%, rgba(255, 140, 50, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(200, 120, 180, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 200, 120, 0.05) 0%, transparent 40%),
        var(--bg);
}
body:not(.dark-mode) .landing-page .landing-content {
    padding-top: 24px;
}

body.dark-mode .landing-page {
    background:
        radial-gradient(ellipse 90% 50% at 30% 0%, rgba(30, 20, 80, 0.80) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(15, 30, 60, 0.70) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(40, 10, 60, 0.40) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 40%),
        #050510;
}
body.dark-mode .landing-page::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, rgba(168, 85, 247, 0.04) 40%, transparent 70%);
}
body.dark-mode .landing-page::after {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, rgba(56, 189, 248, 0.03) 40%, transparent 70%);
}
/* Dark mode orbs get aurora shimmer */
body.dark-mode .landing-page::before {
    animation: orbFloat1 20s ease-in-out infinite, auroraShimmer 12s ease-in-out infinite alternate;
}
body.dark-mode .landing-page::after {
    animation: orbFloat2 25s ease-in-out infinite, auroraShimmer 15s ease-in-out infinite alternate-reverse;
}

body.dark-mode .tool-badge.badge-ready {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}
body.dark-mode .tool-badge.badge-soon {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}
body.dark-mode .bento-label { color: rgba(148, 163, 184, 0.6); letter-spacing: 2.5px; }

/* ── Page Shell ── */
.landing-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 30%, rgba(0, 122, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(88, 86, 214, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(52, 199, 89, 0.04) 0%, transparent 40%),
        var(--bg);
    position: relative;
    overflow: hidden;
}
/* Floating ambient orb - top right */
.landing-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    top: 120px;
    right: -80px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, rgba(88, 86, 214, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: orbFloat1 20s ease-in-out infinite;
    z-index: 0;
}
/* Floating ambient orb - bottom left */
.landing-page::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: 100px;
    left: -60px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.07) 0%, rgba(0, 122, 255, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: orbFloat2 25s ease-in-out infinite;
    z-index: 0;
}
.landing-page > * {
    position: relative;
    z-index: 1;
}

/* ── Hero Header ── */
.landing-header {
    background: transparent;
    color: var(--text);
    padding: 28px 20px 12px;
    position: relative;
    z-index: 2;
}

/* Glassmorphism pill container */
.landing-header-pill {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 20px;
    border: 1px solid rgba(0, 60, 140, 0.14);
    box-shadow:
        0 4px 24px rgba(0, 40, 100, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    position: relative;
    overflow: hidden;
    animation: headerPillIn 0.7s var(--transition-smooth) both;
}

/* Glow behind the pill */
.landing-header-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(0, 122, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 30%, rgba(88, 86, 214, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: pillGlow 6s ease-in-out infinite alternate;
}

/* Left side: brand */
.landing-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.landing-brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 50%, #1a3a5c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    animation: brandTextShimmer 6s ease-in-out infinite;
}
.landing-brand-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    margin: 0;
}

/* Right side: greeting + toggle */
.landing-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.landing-header-right .landing-greeting {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
}
.landing-theme-toggle {
    background: rgba(0, 60, 140, 0.06);
    border: 1px solid rgba(0, 60, 140, 0.10);
    color: var(--text-secondary);
    z-index: 2;
    flex-shrink: 0;
}
.landing-theme-toggle:hover {
    background: rgba(0, 60, 140, 0.12);
}
body.dark-mode .landing-theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.dark-mode .landing-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 520px) {
    .landing-header { padding: 20px 12px 8px; }
    .landing-header-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }
    .landing-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .landing-brand-name { font-size: 20px; }
}

/* ── Bento App Grid ── */
.landing-app-grid { flex: 1; }
.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 600px) {
    .tools-container {
        padding: 24px 24px 12px;
        gap: 24px;
    }
}
.bento-category {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bento-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #64748b;
    margin: 0 0 14px 6px;
    padding: 0;
}
.bento-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 599px) {
    .bento-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.tool-section { display: contents; }
.tool-section-label { display: none; }
.tool-section-group { display: contents; }

/* ── Tool Card (Glassmorphism + 3D Tilt) ── */
.tool-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px 18px;
    cursor: pointer;
    transition: transform 0.4s var(--transition-spring), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-radius: 22px;
    border: 1px solid rgba(220, 180, 140, 0.22);
    text-align: center;
    animation: toolCardIn 0.5s var(--transition-smooth) both;
    box-shadow:
        0 2px 10px rgba(240, 150, 80, 0.08),
        0 8px 30px rgba(220, 120, 60, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform-style: preserve-3d;
    will-change: transform;
    --rx: 0deg;
    --ry: 0deg;
    --shine-x: 50%;
    --shine-y: 50%;
}
/* Shine/gloss overlay that follows cursor */
.tool-row::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 80% 80% at var(--shine-x) var(--shine-y), rgba(255,255,255,0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
}
.tool-row:hover::after { opacity: 1; }
body.dark-mode .tool-row::after {
    background: radial-gradient(ellipse 80% 80% at var(--shine-x) var(--shine-y), rgba(255,255,255,0.08) 0%, transparent 70%);
}
/* Staggered entrance per card within each bento-cards group */
.bento-cards .tool-row:nth-child(1) { animation-delay: 0.03s; }
.bento-cards .tool-row:nth-child(2) { animation-delay: 0.06s; }
.bento-cards .tool-row:nth-child(3) { animation-delay: 0.09s; }
.bento-cards .tool-row:nth-child(4) { animation-delay: 0.12s; }
.bento-cards .tool-row:nth-child(5) { animation-delay: 0.15s; }
.bento-cards .tool-row:nth-child(6) { animation-delay: 0.18s; }
.bento-cards .tool-row:nth-child(7) { animation-delay: 0.21s; }
.bento-cards .tool-row:nth-child(8) { animation-delay: 0.24s; }
.tool-row:not(:last-child) {
    border-bottom: none;
}
.tool-row:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: perspective(600px) rotateX(var(--ry)) rotateY(var(--rx)) translateY(-6px) scale(1.03);
    border-color: rgba(245, 160, 80, 0.30);
    box-shadow:
        0 12px 36px rgba(245, 150, 70, 0.14),
        0 24px 56px rgba(220, 120, 50, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.tool-row:active {
    transform: perspective(600px) rotateX(0deg) rotateY(0deg) translateY(-1px) scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition-duration: 0.15s;
}
.tool-row .tool-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
}
.tool-row:hover .tool-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
/* Day mode — soft warm tinted icon containers + warm drop-shadow bloom */
body:not(.dark-mode) .tool-icon.icon-blue    { background: rgba(59, 130, 246, 0.12); color: #2563EB; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(59, 130, 246, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-emerald  { background: rgba(16, 185, 129, 0.12); color: #059669; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-amber    { background: rgba(245, 158, 11, 0.12); color: #D97706; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.20)); }
body:not(.dark-mode) .tool-icon.icon-orange   { background: rgba(249, 115, 22, 0.12); color: #EA580C; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(249, 115, 22, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-indigo   { background: rgba(129, 140, 248, 0.12); color: #4F46E5; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(129, 140, 248, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-rose     { background: rgba(251, 113, 133, 0.12); color: #E11D48; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(251, 113, 133, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-violet   { background: rgba(167, 139, 250, 0.12); color: #7C3AED; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(167, 139, 250, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-teal     { background: rgba(45, 212, 191, 0.12); color: #0D9488; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(45, 212, 191, 0.18)); }
body:not(.dark-mode) .tool-icon.icon-muted    { background: rgba(148, 163, 184, 0.12); color: #64748B; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(148, 163, 184, 0.15)); }
/* Day mode hover — intensify the icon bloom */
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-blue    { filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-emerald  { filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-amber    { filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.40)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-orange   { filter: drop-shadow(0 4px 14px rgba(249, 115, 22, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-indigo   { filter: drop-shadow(0 4px 14px rgba(129, 140, 248, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-rose     { filter: drop-shadow(0 4px 14px rgba(251, 113, 133, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-violet   { filter: drop-shadow(0 4px 14px rgba(167, 139, 250, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-teal     { filter: drop-shadow(0 4px 14px rgba(45, 212, 191, 0.35)); transform: scale(1.10); }
body:not(.dark-mode) .tool-row:hover .tool-icon.icon-muted    { filter: drop-shadow(0 4px 14px rgba(148, 163, 184, 0.30)); transform: scale(1.10); }
.tool-row .tool-row-content {
    flex: 1;
    min-width: 0;
}
.tool-row .tool-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    line-height: 1.3;
}
.tool-row .tool-description { display: none; }
.tool-row .tool-chevron { display: none; }
.tool-row.coming-soon {
    opacity: 0.45;
    cursor: default;
}
.tool-row.coming-soon:hover {
    background: transparent;
}

/* ── Tool Badges ── */
.tool-row .tool-badge {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
    position: absolute;
    top: 6px;
    right: 6px;
}
.tool-badge.badge-ready { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tool-badge.badge-soon { background: var(--bg-input); color: var(--text-secondary); }
.tool-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #FF3B30;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 2;
}
/* Warning tier: amber/yellow for 15-30 days out */
.tool-notify-badge.badge-warning {
    background: #F59E0B;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}
/* Critical tier: red for ≤14 days */
.tool-notify-badge.badge-critical {
    background: #FF3B30;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
}
.tool-notify-badge:empty,
.tool-notify-badge[data-count="0"] {
    display: none;
}
.tool-badge.badge-desktop { background: rgba(0, 122, 255, 0.1); color: var(--apple-blue); }

/* ── Icon Color Palette ── */
.tool-icon.icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tool-icon.icon-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.tool-icon.icon-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tool-icon.icon-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.tool-icon.icon-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.tool-icon.icon-muted { background: linear-gradient(135deg, #94a3b8, #64748b); }
.tool-icon.icon-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.tool-icon.icon-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.tool-icon.icon-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

/* ── Quick Reference section (hidden, kept for legacy) ── */
.landing-quickref {
    display: none;
}

/* ── Footer ── */
.landing-footer {
    padding: 24px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.bugreport-pill {
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.2px;
}
.bugreport-pill:hover {
    color: var(--apple-blue);
    border-color: var(--apple-blue);
    background: rgba(0, 122, 255, 0.05);
}
body.dark-mode .bugreport-pill:hover {
    background: rgba(10, 132, 255, 0.1);
}
.landing-version {
    font-size: 9px;
    color: var(--text-secondary);
    opacity: 0.35;
    letter-spacing: 0.5px;
}

/* ─── Legacy Support (other tools may reference these) ─── */
.tools-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 2px 8px rgba(0, 40, 120, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 60, 140, 0.1);
    position: relative;
    overflow: hidden;
}
body.dark-mode .tool-card {
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 60, 180, 0.10), 0 2px 6px rgba(0,0,0,0.06);
}
body.dark-mode .tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.08), 0 2px 6px rgba(0,0,0,0.15);
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, var(--apple-blue), #5856D6);
}
.tool-card.coming-soon { opacity: 0.5; cursor: default; }
.tool-features { display: none; }
.tool-more { margin-top: 6px; }
.tool-more summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--apple-blue); cursor: pointer; user-select: none; }
.tool-more summary::-webkit-details-marker { display: none; }
.tool-more summary::after { content: "+"; font-weight: 700; color: var(--text-secondary); }
.tool-more[open] summary::after { content: "–"; }
.tool-more[open] .tool-features { display: block; margin-top: 8px; }
.tool-status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 14px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.tool-status.ready { background: rgba(16, 185, 129, 0.12); color: #059669; }
.tool-status.soon { background: var(--bg-input); color: var(--text-secondary); }
