@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =========================================================
   INTO THE SCRAPE-VERSE
   Cosmic + Kawaii AI Discovery Engine
   20+ AI TOOLS
   ========================================================= */

:root {
    --background: #050711;
    --background-secondary: #090d1c;

    --card: rgba(13, 19, 40, 0.74);
    --card-solid: #0d1328;

    --text: #f7f9ff;
    --text-secondary: #aeb8d3;
    --text-muted: #6f7892;

    --primary: #4da3ff;
    --primary-light: #79c7ff;

    --secondary: #8b5cf6;
    --pink: #f48bdc;
    --success: #72e6a1;
    --warning: #ffd166;

    --border: rgba(125, 170, 255, 0.16);
    --border-hover: rgba(125, 190, 255, 0.45);

    --glow: rgba(77, 163, 255, 0.22);
    --shadow: rgba(0, 0, 0, 0.42);

    --radius: 22px;
    --transition: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(48, 99, 255, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(139, 92, 246, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(244, 139, 220, 0.05),
            transparent 35%
        ),
        var(--background);

    color: var(--text);

    font-family: 'Inter', sans-serif;

    overflow-x: hidden;

    transition:
        background 0.5s ease,
        color 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(117, 194, 255, 0.04),
            transparent 45%
        );

    z-index: -3;
}

button,
input,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

::selection {
    background: rgba(117, 194, 255, 0.30);
    color: white;
}


/* =========================================================
   COSMIC BACKGROUND
   ========================================================= */

.space-background {
    position: fixed;
    inset: 0;

    pointer-events: none;
    overflow: hidden;

    z-index: -2;
}

.stars {
    position: absolute;
    inset: -100px;

    background-image:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.75) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle,
            rgba(130, 190, 255, 0.45) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle,
            rgba(244, 139, 220, 0.35) 1px,
            transparent 1px
        );

    background-size:
        95px 95px,
        155px 155px,
        220px 220px;

    background-position:
        20px 30px,
        60px 100px,
        120px 40px;

    opacity: 0.25;

    animation:
        starsDrift 35s linear infinite;
}

.stars-two {
    opacity: 0.13;

    transform: scale(1.4);

    animation-duration: 55s;
    animation-direction: reverse;
}

.nebula {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(110px);

    opacity: 0.16;

    animation:
        nebulaFloat 12s ease-in-out infinite;
}

.nebula-one {
    background: #1769ff;

    top: 5%;
    left: -220px;
}

.nebula-two {
    background: #7c3aed;

    right: -220px;
    top: 48%;

    animation-delay: -5s;
}

.floating-spark {
    position: absolute;

    color: rgba(140, 200, 255, 0.72);

    font-size: 15px;

    filter:
        drop-shadow(
            0 0 10px rgba(100, 180, 255, 0.75)
        );

    animation:
        kawaiiFloat 5s ease-in-out infinite;
}

.spark-one {
    top: 22%;
    left: 9%;
}

.spark-two {
    top: 63%;
    left: 4%;

    animation-delay: -2s;
}

.spark-three {
    top: 30%;
    right: 8%;

    color: rgba(255, 170, 235, 0.75);

    animation-delay: -3s;
}

.spark-four {
    top: 78%;
    right: 12%;

    animation-delay: -1s;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    width: min(1180px, calc(100% - 40px));

    margin: 20px auto 0;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(9, 15, 32, 0.86),
            rgba(7, 11, 25, 0.72)
        );

    backdrop-filter: blur(22px);

    border-radius: 20px;

    position: sticky;
    top: 16px;

    z-index: 100;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);

    animation:
        navbarIn 0.7s ease both;
}

.brand {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 220px;
}

.brand-orbit {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at 35% 30%,
            #b5e4ff,
            #3d8bff 40%,
            #7044df 85%
        );

    box-shadow:
        0 0 25px rgba(77, 163, 255, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.25);

    font-size: 19px;

    animation:
        orbitPulse 3s ease-in-out infinite;
}

.brand-orbit span {
    animation:
        sparkleSpin 5s linear infinite;
}

.brand h1 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 15px;

    letter-spacing: -0.3px;
}

.brand p {
    color: var(--text-muted);

    font-size: 10px;

    margin-top: 2px;
}

nav {
    display: flex;

    gap: 5px;
}

.nav-link {
    border: 0;

    background: transparent;

    color: var(--text-secondary);

    padding: 9px 15px;

    border-radius: 11px;

    cursor: pointer;

    font-size: 13px;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;

    background:
        rgba(77, 163, 255, 0.11);

    box-shadow:
        0 0 25px rgba(77, 163, 255, 0.08);
}

.nav-link.active {
    box-shadow:
        inset 0 0 0 1px rgba(117, 194, 255, 0.08),
        0 0 25px rgba(77, 163, 255, 0.08);
}

.theme-button {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 13px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.035);

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition: var(--transition);
}

.theme-button:hover {
    border-color: var(--border-hover);

    box-shadow:
        0 0 25px var(--glow);

    transform:
        rotate(20deg)
        scale(1.05);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding:
        100px 20px 50px;
}

.hero-content {
    width: min(850px, 100%);

    animation:
        heroIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border-radius: 50px;

    border: 1px solid var(--border);

    background:
        rgba(77, 163, 255, 0.055);

    color: var(--primary-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    box-shadow:
        0 0 25px rgba(77, 163, 255, 0.06);
}

.tiny-sparkle {
    color: var(--pink);

    animation:
        sparklePulse 1.8s ease-in-out infinite;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #4ade80;

    box-shadow:
        0 0 10px #4ade80;

    animation:
        statusPulse 2s ease-in-out infinite;
}

.hero h2 {
    margin-top: 24px;

    font-family: 'Space Grotesk', sans-serif;

    font-size:
        clamp(48px, 8vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;
}

.hero h2 span,
.page-header h2 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #75c2ff,
            #5b9dff,
            #a47bff,
            #f48bdc
        );

    background-size: 250% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        gradientFlow 7s ease infinite;
}

.hero-description {
    max-width: 650px;

    margin:
        26px auto 32px;

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-wrapper {
    width: min(650px, 100%);

    height: 64px;

    margin: auto;

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-radius: 18px;

    border: 1px solid var(--border-hover);

    background:
        rgba(11, 16, 34, 0.76);

    backdrop-filter: blur(20px);

    box-shadow:
        0 0 50px rgba(77, 163, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.015);

    transition: var(--transition);
}

.search-wrapper:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 50px rgba(77, 163, 255, 0.10);
}

.search-wrapper:focus-within {
    border-color:
        rgba(117, 194, 255, 0.7);

    box-shadow:
        0 0 50px rgba(77, 163, 255, 0.18),
        0 0 100px rgba(139, 92, 246, 0.06);
}

.search-icon {
    font-size: 26px;

    color: var(--text-muted);

    margin-right: 12px;
}

.search-wrapper input {
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-size: 15px;
}

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

.clear-search {
    border: 0;

    background: transparent;

    color: var(--text-muted);

    font-size: 23px;

    cursor: pointer;

    transition: 0.2s;
}

.clear-search:hover {
    color: white;

    transform:
        rotate(90deg)
        scale(1.1);
}

.search-hint {
    margin-top: 13px;

    color: var(--text-muted);

    font-size: 11px;
}

.search-hint span {
    color: var(--primary-light);
}


/* =========================================================
   MAIN SECTIONS
   ========================================================= */

.category-section,
.tools-section,
.page-section {
    width: min(1180px, calc(100% - 40px));

    margin: auto;
}

.section-heading {
    display: flex;

    align-items: end;

    justify-content: space-between;

    margin-bottom: 22px;
}

.section-label {
    display: block;

    color: var(--primary-light);

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 700;

    margin-bottom: 6px;
}

.section-heading h3 {
    font-family: 'Space Grotesk', sans-serif;

    font-size: 28px;
}

.tool-count {
    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding-bottom: 20px;

    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    white-space: nowrap;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-secondary);

    padding:
        9px 15px;

    border-radius: 50px;

    cursor: pointer;

    font-size: 12px;

    transition: var(--transition);
}

.category:hover,
.category.active {
    color: white;

    border-color:
        rgba(77, 163, 255, 0.5);

    background:
        rgba(77, 163, 255, 0.10);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(77, 163, 255, 0.06);
}


/* =========================================================
   TOOL GRID
   ========================================================= */

.tools-section {
    padding-top: 10px;

    padding-bottom: 120px;
}

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;
}


/* =========================================================
   TOOL CARD
   ========================================================= */

.tool-card {
    position: relative;

    padding: 22px;

    min-height: 285px;

    border-radius: var(--radius);

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(18, 27, 55, 0.78),
            rgba(8, 12, 27, 0.74)
        );

    backdrop-filter: blur(15px);

    overflow: hidden;

    cursor: pointer;

    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s,
        box-shadow 0.3s;

    animation:
        cardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}


/* More cards = more staggered kawaii entrance */

.tool-card:nth-child(1)  { animation-delay: 0.02s; }
.tool-card:nth-child(2)  { animation-delay: 0.04s; }
.tool-card:nth-child(3)  { animation-delay: 0.06s; }
.tool-card:nth-child(4)  { animation-delay: 0.08s; }
.tool-card:nth-child(5)  { animation-delay: 0.10s; }
.tool-card:nth-child(6)  { animation-delay: 0.12s; }
.tool-card:nth-child(7)  { animation-delay: 0.14s; }
.tool-card:nth-child(8)  { animation-delay: 0.16s; }
.tool-card:nth-child(9)  { animation-delay: 0.18s; }
.tool-card:nth-child(10) { animation-delay: 0.20s; }
.tool-card:nth-child(11) { animation-delay: 0.22s; }
.tool-card:nth-child(12) { animation-delay: 0.24s; }
.tool-card:nth-child(13) { animation-delay: 0.26s; }
.tool-card:nth-child(14) { animation-delay: 0.28s; }
.tool-card:nth-child(15) { animation-delay: 0.30s; }
.tool-card:nth-child(16) { animation-delay: 0.32s; }
.tool-card:nth-child(17) { animation-delay: 0.34s; }
.tool-card:nth-child(18) { animation-delay: 0.36s; }
.tool-card:nth-child(19) { animation-delay: 0.38s; }
.tool-card:nth-child(20) { animation-delay: 0.40s; }


.tool-card::before {
    content: '';

    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background:
        var(--card-glow, #4da3ff);

    filter: blur(80px);

    opacity: 0.08;

    right: -60px;
    top: -60px;

    transition: 0.4s;
}

.tool-card::after {
    content: '✦';

    position: absolute;

    right: 18px;
    bottom: 15px;

    color:
        rgba(255, 255, 255, 0.06);

    font-size: 26px;

    transform: rotate(-15deg);

    transition: 0.3s;
}

.tool-card:hover {
    transform:
        translateY(-8px)
        rotateX(1deg);

    border-color:
        var(--border-hover);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 35px var(--glow);
}

.tool-card:hover::before {
    opacity: 0.17;

    transform:
        scale(1.25);
}

.tool-card:hover::after {
    color:
        rgba(255, 255, 255, 0.18);

    transform:
        rotate(10deg)
        scale(1.15);
}


/* =========================================================
   TOOL CONTENT
   ========================================================= */

.tool-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.tool-logo {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid var(--border);

    font-size: 19px;

    font-weight: 700;

    transition: 0.3s;
}

.tool-card:hover .tool-logo {
    transform:
        rotate(-5deg)
        scale(1.08);

    box-shadow:
        0 0 25px var(--glow);
}

.tool-category {
    color: var(--text-muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.tool-card h4 {
    margin-top: 25px;

    font-family: 'Space Grotesk', sans-serif;

    font-size: 19px;
}

.tool-description {
    margin-top: 9px;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.6;

    min-height: 53px;
}

.tool-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 15px;
}

.tool-tag {
    padding:
        5px 8px;

    border-radius: 7px;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text-muted);

    font-size: 9px;

    transition: 0.2s;
}

.tool-card:hover .tool-tag {
    background:
        rgba(77, 163, 255, 0.08);

    color:
        var(--text-secondary);
}

.tool-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 18px;
}

.free-badge {
    color: var(--success);

    font-size: 9px;
}

.compare-add {
    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.04);

    color:
        var(--text-secondary);

    border-radius: 8px;

    padding:
        6px 9px;

    font-size: 9px;

    cursor: pointer;

    transition: 0.2s;
}

.compare-add:hover {
    color: white;

    border-color:
        var(--primary);

    background:
        rgba(77, 163, 255, 0.08);

    transform:
        translateY(-1px);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    text-align: center;

    padding:
        80px 20px;
}

.empty-icon {
    font-size: 40px;

    color:
        var(--primary);

    margin-bottom: 15px;

    animation:
        kawaiiFloat 3s ease-in-out infinite;
}

.empty-state h3 {
    font-family:
        'Space Grotesk', sans-serif;

    font-size: 24px;
}

.empty-state p {
    margin:
        10px auto 20px;

    color:
        var(--text-secondary);

    font-size: 13px;
}


/* =========================================================
   PAGE SECTIONS
   ========================================================= */

.page-section {
    display: none;

    padding-top: 120px;

    padding-bottom: 150px;
}

.page-section.active-section {
    display: block;

    animation:
        pageIn 0.55s ease both;
}

.page-header {
    max-width: 700px;

    margin-bottom: 50px;
}

.page-header h2 {
    font-family:
        'Space Grotesk', sans-serif;

    font-size:
        clamp(45px, 7vw, 72px);

    line-height: 1;

    letter-spacing: -3px;
}

.page-header p {
    margin-top: 22px;

    color:
        var(--text-secondary);

    line-height: 1.7;

    font-size: 14px;
}


/* =========================================================
   COMPARE SELECTOR
   ========================================================= */

.compare-selector {
    padding: 25px;

    border:
        1px solid var(--border);

    background:
        rgba(10, 15, 31, 0.65);

    border-radius:
        var(--radius);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12);
}

.compare-selection-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    font-size: 13px;
}

.compare-selection-header > div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.selection-subtitle {
    color:
        var(--text-muted);

    font-size: 9px;
}

.compare-selection-header > span {
    color:
        var(--text-muted);

    padding:
        7px 10px;

    border-radius: 20px;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);
}

.compare-tools {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.compare-tool {
    position: relative;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--text-secondary);

    padding: 15px;

    border-radius: 14px;

    text-align: left;

    cursor: pointer;

    transition: var(--transition);

    overflow: hidden;
}

.compare-tool::after {
    content: '♡';

    position: absolute;

    right: 10px;
    top: 8px;

    color:
        rgba(255, 255, 255, 0.08);

    transition: 0.2s;
}

.compare-tool:hover,
.compare-tool.selected {
    border-color:
        var(--primary);

    background:
        linear-gradient(
            135deg,
            rgba(77, 163, 255, 0.11),
            rgba(139, 92, 246, 0.08)
        );

    color: white;

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 30px rgba(77, 163, 255, 0.08);
}

.compare-tool.selected::after {
    content: '✓';

    color:
        var(--success);

    font-weight: 800;
}

.compare-tool strong {
    display: block;

    margin-bottom: 4px;
}

.compare-tool small {
    color:
        var(--text-muted);

    font-size: 9px;

    line-height: 1.4;
}


/* =========================================================
   COMPARISON RESULT
   ========================================================= */

.comparison-result {
    margin-top: 25px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        rgba(8, 12, 27, 0.78);

    overflow: hidden;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.22);

    animation:
        comparisonIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.comparison-heading {
    padding:
        24px 25px 18px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    border-bottom:
        1px solid var(--border);
}

.comparison-heading h3 {
    font-family:
        'Space Grotesk', sans-serif;

    font-size: 22px;
}

.comparison-heading p {
    color:
        var(--text-muted);

    font-size: 10px;

    margin-top: 5px;
}

.pricing-verified {
    white-space: nowrap;

    color:
        var(--success);

    font-size: 9px;

    padding:
        7px 10px;

    border-radius: 20px;

    background:
        rgba(114, 230, 161, 0.06);

    border:
        1px solid rgba(114, 230, 161, 0.14);
}

.comparison-scroll {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}

.comparison-table th,
.comparison-table td {
    padding: 18px;

    border-bottom:
        1px solid var(--border);

    text-align: left;

    font-size: 12px;

    vertical-align: top;
}

.comparison-table thead th {
    color: white;

    font-family:
        'Space Grotesk', sans-serif;

    font-size: 14px;

    background:
        rgba(255, 255, 255, 0.018);

    min-width: 190px;
}

.comparison-table thead th:first-child {
    min-width: 150px;

    color:
        var(--text-muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.comparison-tool-name {
    display: flex;

    align-items: center;

    gap: 10px;
}

.comparison-tool-icon {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid var(--border);

    font-size: 14px;
}

.comparison-table tbody tr {
    transition: 0.2s;
}

.comparison-table tbody tr:hover {
    background:
        rgba(77, 163, 255, 0.025);
}

.comparison-table tbody td {
    color:
        var(--text-secondary);

    line-height: 1.55;
}

.comparison-table tbody td:first-child {
    color:
        var(--primary-light);

    font-weight: 600;

    font-size: 11px;

    position: sticky;

    left: 0;

    background:
        rgba(8, 12, 27, 0.96);

    z-index: 2;
}

.table-value {
    max-width: 260px;
}

.plan-yes {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--success);

    font-weight: 700;
}

.plan-no {
    color:
        var(--text-muted);
}

.starting-price {
    display: inline-flex;

    align-items: baseline;

    gap: 4px;

    color: white;

    font-family:
        'Space Grotesk', sans-serif;

    font-size: 18px;

    font-weight: 700;
}

.starting-price small {
    color:
        var(--text-muted);

    font-family:
        'Inter', sans-serif;

    font-size: 9px;

    font-weight: 400;
}

.price-note {
    margin-top: 5px;

    color:
        var(--text-muted);

    font-size: 8px;

    line-height: 1.4;
}

.strength-value {
    color:
        #c8b6ff;

    font-weight: 600;
}

.limitation-value {
    color:
        var(--text-secondary);
}

.open-ai-button {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    border:
        1px solid var(--border);

    background:
        rgba(77, 163, 255, 0.06);

    color:
        var(--primary-light);

    padding:
        8px 11px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    transition: 0.25s;
}

.open-ai-button:hover {
    color: white;

    border-color:
        var(--primary);

    background:
        rgba(77, 163, 255, 0.12);

    transform:
        translateY(-2px);
}


/* =========================================================
   RECOMMENDATION
   ========================================================= */

.problem-card {
    max-width: 900px;

    padding: 30px;

    border:
        1px solid var(--border-hover);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(25, 40, 80, 0.55),
            rgba(10, 14, 29, 0.75)
        );

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.25);

    position: relative;

    overflow: hidden;
}

.problem-card::after {
    content: '♡';

    position: absolute;

    right: 25px;
    top: 18px;

    color:
        rgba(244, 139, 220, 0.08);

    font-size: 70px;

    transform:
        rotate(12deg);

    pointer-events: none;
}

.problem-icon {
    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        rgba(77, 163, 255, 0.10);

    color:
        var(--primary-light);

    margin-bottom: 20px;

    animation:
        kawaiiFloat 3s ease-in-out infinite;
}

.problem-card label {
    display: block;

    font-family:
        'Space Grotesk', sans-serif;

    font-size: 18px;

    margin-bottom: 12px;
}

.problem-card textarea {
    width: 100%;

    min-height: 180px;

    resize: vertical;

    padding: 18px;

    border-radius: 14px;

    border:
        1px solid var(--border);

    background:
        rgba(0, 0, 0, 0.2);

    color: white;

    outline: none;

    font: inherit;

    font-size: 13px;

    line-height: 1.7;

    transition: 0.25s;
}

.problem-card textarea::placeholder {
    color:
        var(--text-muted);
}

.problem-card textarea:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 30px rgba(77, 163, 255, 0.08);
}

.problem-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 15px;
}

.problem-footer span {
    color:
        var(--text-muted);

    font-size: 10px;
}

.primary-button {
    border: 0;

    padding:
        12px 18px;

    border-radius: 11px;

    background:
        linear-gradient(
            100deg,
            #318cf7,
            #7854df,
            #d16bc3
        );

    background-size:
        200% 100%;

    color: white;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(77, 163, 255, 0.18);

    transition: var(--transition);

    animation:
        buttonGradient 5s ease infinite;
}

.primary-button:hover {
    transform:
        translateY(-3px)
        scale(1.02);

    box-shadow:
        0 15px 35px rgba(77, 163, 255, 0.28);
}

.recommendations {
    margin-top: 30px;
}

.recommendations h3 {
    margin-bottom: 15px;

    font-family:
        'Space Grotesk', sans-serif;
}

.recommendation-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.recommendation-card {
    padding: 22px;

    border:
        1px solid var(--border-hover);

    border-radius:
        var(--radius);

    background:
        rgba(12, 18, 38, 0.75);

    transition: 0.3s;

    animation:
        cardIn 0.5s ease both;
}

.recommendation-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2);
}

.recommendation-card .match {
    color:
        var(--success);

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 10px;
}

.recommendation-card h4 {
    font-family:
        'Space Grotesk', sans-serif;

    font-size: 20px;
}

.recommendation-card p {
    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.6;

    margin-top: 8px;
}


/* =========================================================
   THEME PANEL
   ========================================================= */

.theme-panel {
    position: fixed;

    top: 0;

    right: -390px;

    width: min(370px, 92vw);

    height: 100vh;

    padding: 30px;

    background:
        rgba(8, 12, 25, 0.97);

    backdrop-filter:
        blur(25px);

    border-left:
        1px solid var(--border);

    z-index: 200;

    transition:
        0.35s cubic-bezier(0.2, 0.8, 0.2, 1);

    overflow-y: auto;
}

.theme-panel.open {
    right: 0;
}

.theme-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 35px;
}

.theme-header h3 {
    font-family:
        'Space Grotesk', sans-serif;

    font-size: 18px;
}

.close-button {
    border: 0;

    background: transparent;

    color:
        var(--text-muted);

    font-size: 25px;

    cursor: pointer;

    transition: 0.2s;
}

.close-button:hover {
    color: white;

    transform:
        rotate(90deg);
}

.theme-options {
    display: grid;

    gap: 10px;
}

.theme-option {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    border-radius: 13px;

    border:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    color:
        var(--text-secondary);

    cursor: pointer;

    text-align: left;

    transition: 0.25s;
}

.theme-option:hover,
.theme-option.active {
    color: white;

    border-color:
        var(--primary);

    transform:
        translateX(-3px);

    box-shadow:
        0 10px 25px rgba(77, 163, 255, 0.06);
}

.theme-preview {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 11px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   8 THEME PREVIEWS
   ========================================================= */

.cosmic-preview {
    background:
        linear-gradient(
            135deg,
            #050711,
            #348cff,
            #8157e8
        );
}

.midnight-preview {
    background:
        linear-gradient(
            135deg,
            #03152a,
            #0084ff,
            #35d4ff
        );
}

.pastel-preview {
    background:
        linear-gradient(
            135deg,
            #ffd6f8,
            #c7d7ff,
            #bff6ff
        );
}

.light-preview {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #e5edff,
            #9ecbff
        );
}

.lavender-preview {
    background:
        linear-gradient(
            135deg,
            #20152f,
            #9d7cff,
            #e7b7ff
        );
}

.rose-preview {
    background:
        linear-gradient(
            135deg,
            #351724,
            #ff7eb6,
            #ffc1dc
        );
}

.golden-preview {
    background:
        linear-gradient(
            135deg,
            #211707,
            #d6a33a,
            #ffe49b
        );
}

.mint-preview {
    background:
        linear-gradient(
            135deg,
            #071e1a,
            #4dd9b0,
            #a7ffe4
        );
}


/* =========================================================
   OVERLAY
   ========================================================= */

.overlay {
    position: fixed;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.35);

    z-index: 150;

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;
}

.overlay.open {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    width:
        min(1180px, calc(100% - 40px));

    margin: auto;

    padding:
        30px 0 40px;

    border-top:
        1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    color:
        var(--text-muted);

    font-size: 10px;
}

.footer-brand {
    color: white;

    font-weight: 700;
}

.footer-brand span {
    color:
        var(--primary);

    margin-right: 3px;
}

.footer-status {
    color:
        var(--success);
}


/* =========================================================
   UTILITY
   ========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   THEME SYSTEM
   ========================================================= */

/* ---------------------------------------------------------
   MIDNIGHT BLUE
   --------------------------------------------------------- */

body[data-theme="midnight"] {
    --background: #020b18;
    --background-secondary: #061526;

    --primary: #22b6ff;
    --primary-light: #66d7ff;

    --secondary: #008cff;

    --glow:
        rgba(34, 182, 255, 0.22);

    --border:
        rgba(70, 190, 255, 0.18);
}


/* ---------------------------------------------------------
   PASTEL DREAM
   --------------------------------------------------------- */

body[data-theme="pastel"] {
    --background: #171521;
    --background-secondary: #211d2c;

    --card:
        rgba(45, 38, 62, 0.74);

    --primary: #a7c7ff;
    --primary-light: #d2c1ff;

    --secondary: #ff9ed8;

    --glow:
        rgba(213, 161, 255, 0.20);

    --border:
        rgba(210, 190, 255, 0.17);
}


/* ---------------------------------------------------------
   LAVENDER
   --------------------------------------------------------- */

body[data-theme="lavender"] {
    --background: #100b1b;
    --background-secondary: #1a1029;

    --card:
        rgba(31, 20, 48, 0.78);

    --primary: #a78bfa;
    --primary-light: #d8b4fe;

    --secondary: #e879f9;

    --pink: #f0abfc;

    --glow:
        rgba(167, 139, 250, 0.25);

    --border:
        rgba(196, 181, 253, 0.18);
}


/* ---------------------------------------------------------
   ROSE
   --------------------------------------------------------- */

body[data-theme="rose"] {
    --background: #180912;
    --background-secondary: #260d1b;

    --card:
        rgba(48, 18, 34, 0.76);

    --primary: #fb7185;
    --primary-light: #fda4af;

    --secondary: #f472b6;

    --pink: #ff9ac0;

    --glow:
        rgba(251, 113, 133, 0.22);

    --border:
        rgba(251, 164, 180, 0.18);
}


/* ---------------------------------------------------------
   GOLDEN
   --------------------------------------------------------- */

body[data-theme="golden"] {
    --background: #120d04;
    --background-secondary: #1d1507;

    --card:
        rgba(39, 29, 10, 0.78);

    --primary: #eab308;
    --primary-light: #fde68a;

    --secondary: #f59e0b;

    --pink: #fbbf24;

    --glow:
        rgba(234, 179, 8, 0.22);

    --border:
        rgba(253, 230, 138, 0.18);
}


/* ---------------------------------------------------------
   MINT
   --------------------------------------------------------- */

body[data-theme="mint"] {
    --background: #061311;
    --background-secondary: #091f1a;

    --card:
        rgba(10, 34, 29, 0.76);

    --primary: #34d399;
    --primary-light: #99f6e4;

    --secondary: #2dd4bf;

    --pink: #86efac;

    --glow:
        rgba(52, 211, 153, 0.22);

    --border:
        rgba(153, 246, 228, 0.18);
}


/* ---------------------------------------------------------
   LIGHT
   --------------------------------------------------------- */

body[data-theme="light"] {
    --background: #eef3fb;
    --background-secondary: #ffffff;

    --card:
        rgba(255, 255, 255, 0.82);

    --card-solid: #ffffff;

    --text: #182033;
    --text-secondary: #58657d;
    --text-muted: #7d8799;

    --primary: #347ef0;
    --primary-light: #347ef0;

    --border:
        rgba(45, 88, 150, 0.15);

    --border-hover:
        rgba(45, 88, 150, 0.32);

    --glow:
        rgba(52, 126, 240, 0.15);
}


/* =========================================================
   LIGHT THEME OVERRIDES
   ========================================================= */

body[data-theme="light"] .navbar {
    background:
        rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .tool-card,
body[data-theme="light"] .compare-selector,
body[data-theme="light"] .problem-card,
body[data-theme="light"] .comparison-result,
body[data-theme="light"] .recommendation-card {
    background:
        rgba(255, 255, 255, 0.74);
}

body[data-theme="light"] .search-wrapper {
    background:
        rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .stars {
    opacity: 0.08;
}

body[data-theme="light"] .comparison-table tbody td:first-child {
    background:
        rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .theme-panel {
    background:
        rgba(248, 251, 255, 0.97);

    color:
        var(--text);
}

body[data-theme="light"] .close-button {
    color:
        var(--text-muted);
}

body[data-theme="light"] .close-button:hover {
    color:
        var(--text);
}

body[data-theme="light"] .tool-card::after {
    color:
        rgba(20, 50, 100, 0.08);
}


/* =========================================================
   KAWAII MICRO-INTERACTIONS
   ========================================================= */

.tool-card,
.compare-tool,
.category,
.theme-option,
.primary-button,
.nav-link,
.theme-button {
    -webkit-user-select: none;
    user-select: none;
}

.tool-card:active,
.compare-tool:active,
.category:active,
.primary-button:active {
    transform:
        scale(0.98);
}

.category.active::before {
    content: '✦';

    margin-right: 5px;

    color:
        var(--primary-light);

    animation:
        sparklePulse 1.8s ease-in-out infinite;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes heroIn {
    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes navbarIn {
    from {
        opacity: 0;

        transform:
            translateY(-20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes pageIn {
    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes comparisonIn {
    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.99);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes starsDrift {
    from {
        transform:
            translate3d(0, 0, 0);
    }

    to {
        transform:
            translate3d(-80px, -50px, 0);
    }
}

@keyframes nebulaFloat {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    50% {
        transform:
            translate3d(35px, -25px, 0)
            scale(1.08);
    }
}

@keyframes kawaiiFloat {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(-2deg);
    }

    50% {
        transform:
            translateY(-9px)
            rotate(3deg);
    }
}

@keyframes sparkleSpin {
    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes sparklePulse {
    0%,
    100% {
        opacity: 0.5;

        transform:
            scale(0.9);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.2);
    }
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 0.7;

        transform:
            scale(0.85);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.15);
    }
}

@keyframes orbitPulse {
    0%,
    100% {
        box-shadow:
            0 0 25px rgba(77, 163, 255, 0.35);
    }

    50% {
        box-shadow:
            0 0 38px rgba(77, 163, 255, 0.55);
    }
}

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

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

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

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

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

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


/* =========================================================
   RESPONSIVE — LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .tools-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .compare-tools {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE — TABLETS
   ========================================================= */

@media (max-width: 850px) {

    .navbar {
        width:
            calc(100% - 28px);
    }

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

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

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

    .hero {
        min-height: 570px;
    }

    .hero h2 {
        font-size:
            clamp(46px, 8vw, 68px);
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        width:
            calc(100% - 20px);

        padding:
            11px 12px;

        top: 10px;
    }

    .brand {
        min-width: 0;

        gap: 9px;
    }

    .brand-orbit {
        width: 37px;
        height: 37px;

        font-size: 16px;
    }

    .brand h1 {
        font-size: 12px;
    }

    .brand p {
        font-size: 8px;
    }

    nav {
        display: none;
    }

    .theme-button {
        width: 37px;
        height: 37px;
    }

    .hero {
        min-height: 550px;

        padding:
            70px 18px 40px;
    }

    .hero h2 {
        font-size: 48px;

        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 1.7;
    }

    .search-wrapper {
        height: 58px;

        padding:
            0 15px;
    }

    .search-wrapper input {
        font-size: 13px;
    }

    .category-section,
    .tools-section,
    .page-section {
        width:
            calc(100% - 24px);
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .section-heading h3 {
        font-size: 25px;
    }

    .tools-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .tool-card {
        min-height: 255px;

        padding: 20px;
    }

    .compare-tools {
        grid-template-columns: 1fr;
    }

    .compare-selector {
        padding: 18px;
    }

    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding-top: 80px;

        padding-bottom: 100px;
    }

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

    .page-header h2 {
        font-size: 45px;

        letter-spacing: -2px;
    }

    .problem-card {
        padding: 22px;
    }

    .problem-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .problem-footer .primary-button {
        width: 100%;
    }

    .comparison-heading {
        flex-direction: column;
    }

    .pricing-verified {
        align-self: flex-start;
    }

    footer {
        width:
            calc(100% - 24px);

        flex-direction: column;

        gap: 12px;

        text-align: center;
    }

    .floating-spark {
        display: none;
    }

    .theme-panel {
        width:
            min(350px, 92vw);

        padding:
            24px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .hero h2 {
        font-size: 41px;

        letter-spacing: -2px;
    }

    .eyebrow {
        font-size: 8px;

        letter-spacing: 1.1px;
    }

    .search-hint {
        font-size: 10px;
    }

    .tool-card h4 {
        font-size: 18px;
    }

    .page-header h2 {
        font-size: 39px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
    }
}