@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f43f5e;
    --amber: #f59e0b;
    --sky: #0ea5e9;
    --rose: #f43f5e;

    --bg: #09090b;
    --bg-elevated: #18181b;
    --bg-card: #1c1c21;
    --surface: #27272a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 999px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --surface: #f4f4f5;
    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);
    --text: #09090b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ===== HEADER ===== */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

body.light-mode .saas-header {
    background: rgba(250, 250, 250, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.logo-text {
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.saas-hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}

.pill-sm {
    font-size: 0.78rem;
    padding: 5px 14px;
}

.saas-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ===== TRUST BAR ===== */
.trust-bar {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    background: var(--bg-elevated);
}

.trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-item i {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* ===== TOOL SECTIONS ===== */
.tool-section {
    padding: 64px 0 0;
}

.tool-section:first-child {
    padding-top: 80px;
    scroll-margin-top: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-icon-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
}

.section-icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary);
}

.section-icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
}

.section-icon-sky {
    background: rgba(14, 165, 233, 0.12);
    color: var(--sky);
}

.section-icon-rose {
    background: rgba(244, 63, 94, 0.12);
    color: var(--rose);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Tool Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-content: center;
    gap: 16px;
}

/* Tool Cards */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tool-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
    opacity: 1;
}

.tc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tc-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
}

.tc-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary);
}

.tc-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber);
}

.tc-sky {
    background: rgba(14, 165, 233, 0.12);
    color: var(--sky);
}

.tc-rose {
    background: rgba(244, 63, 94, 0.12);
    color: var(--rose);
}

.tool-card:hover .tc-indigo {
    background: var(--primary);
    color: white;
}

.tool-card:hover .tc-emerald {
    background: var(--secondary);
    color: white;
}

.tool-card:hover .tc-amber {
    background: var(--amber);
    color: white;
}

.tool-card:hover .tc-sky {
    background: var(--sky);
    color: white;
}

.tool-card:hover .tc-rose {
    background: var(--rose);
    color: white;
}

.tool-card h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.tool-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tc-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.tc-link i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.tool-card:hover .tc-link i {
    transform: translateX(4px);
}

/* ===== SECTION CENTER HEADERS ===== */
.section-center-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-center-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-center-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how-section {
    padding: 96px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 64px;
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===== BLOG ===== */
.blog-section {
    padding: 96px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.blog-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.15);
}

.blog-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.blog-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.blog-body p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.blog-read {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.blog-card:hover .blog-read i {
    transform: translateX(4px);
}

.blog-read i {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--primary-light);
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), #7c3aed);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.06), transparent 50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ===== AD SLOT ===== */
.ad-slot {
    text-align: center;
    min-height: 100px;
    max-width: 100%;
    overflow: hidden;
    margin: 2rem auto;
}

.ad-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== FOOTER ===== */
.saas-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 0.9rem;
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.78rem;
}

/* ===== SEARCH MODAL ===== */
/* @import url('components.css'); // removed due to invalid placement */

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 99;
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .steps-row {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .saas-hero h1 {
        font-size: 2rem;
    }

    .saas-hero {
        padding: 60px 0 48px;
    }
}

@media (max-width: 480px) {
    .saas-hero h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .trust-items {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== PRINT ===== */
@media print {

    .saas-header,
    .saas-footer,
    .cta-banner,
    .ad-slot,
    .search-modal-overlay,
    .menu-toggle,
    .hero-actions,
    .nav-links,
    .trust-bar {
        display: none !important;
    }

    body {
        background: white !important;
        color: #111 !important;
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-elevated);
    backdrop-filter: blur(16px);
    color: var(--text);
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    margin-right: 2rem;
}

.cookie-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
}

.btn-cookie-decline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .cookie-content {
        margin-right: 0;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =========================================================================
   LEGACY/TOOL PAGES STYLES
   Restored for tools running outside the SaaS layout
========================================================================= */

/* Main Header for Tools */
.main-header {
    background-color: var(--bg-card, #ffffff);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color, #4f46e5);
    text-decoration: none;
    gap: 10px;
}

.brand-logo:hover {
    color: var(--primary-hover, #4338ca);
}

.brand-logo i {
    font-size: 1.8rem;
}

/* Tool Footer */
.main-footer {
    background-color: var(--bg-card, #ffffff);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

/* Search Modal Overlay */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-modal-overlay.active {
    display: flex;
}

.search-container {
    background-color: var(--bg-card, #ffffff);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

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

.search-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.search-header i {
    color: var(--text-muted, #94a3b8);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    background: transparent;
    color: var(--text-color, #1e293b);
}

.close-search {
    background: var(--bg-light, #f1f5f9);
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
}

.close-search:hover {
    background: var(--border-color, #e2e8f0);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    text-decoration: none;
    color: var(--text-color, #1e293b);
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: var(--bg-light, #f1f5f9);
}

.search-result-item i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-light, #e0e7ff);
    color: var(--primary-color, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.search-result-text {
    flex-grow: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
}
