/* ============================================================
   Bizclaw Design System — Premium SaaS UI
   ============================================================ */

/* CSS Variables - Modern AI SaaS Theme */
html { scroll-behavior: smooth; }
:root {
    --bg-primary: #09090b;
    /* Zinc 950 */
    --bg-secondary: #0c0c0e;
    --bg-card: #141417;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #fafafa;
    --text-secondary: #d1d5db;
    /* Zinc 300 / was a1a1aa */
    --text-muted: #9ca3af;
    /* Zinc 400 / was 52525b */
    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-secondary: #8b5cf6;
    /* Violet 500 */
    --accent-tertiary: #a855f7;
    /* Purple 500 */
    --accent-glow: rgba(99, 102, 241, 0.25);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    /* Reserve only for specific icons/badges */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --transition: all 0.2s ease-out;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Background Effects */
.bg-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.08;
    animation: float 30s ease-in-out infinite;
}

.glow-orb.primary {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -150px;
    right: -150px;
}

.glow-orb.secondary {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    /* White instead of neon yellow for a cleaner look */
    bottom: -150px;
    left: -150px;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 24px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.logo .text-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.nav-toggle-box {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
}

.nav-toggle-line {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-line:nth-child(1) {
    top: 0;
}

.nav-toggle-line:nth-child(2) {
    top: 6px;
}

.nav-toggle-line:nth-child(3) {
    top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Glass Panel */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* Inputs */
.glass-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

textarea.glass-input {
    resize: vertical;
    min-height: 80px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Cards */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px 24px 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.tool-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.tool-card .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.tool-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: none;
}

.tool-card .card-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    filter: none;
}

.tool-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.tool-card .card-category {
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
}

.tool-card .card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.tool-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-tertiary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tag.tech {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.2);
}


/* Grid Layouts */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
}

.text-gradient {
    color: var(--accent-primary);
}

.text-underline {
    position: relative;
    display: inline-block;
}

.text-underline::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-primary);
    z-index: -1;
    opacity: 0.3;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Page Header */
.page-header {
    padding: 100px 0 40px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-secondary);
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 32px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Chat Interface */
.chat-container {
    max-width: 100% !important;
    width: 100%;
    padding: 0;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    padding: 24px 0 180px 0;
    /* Padding bottom prevents messages hidden behind fixed input */
    margin: 0;
    width: 100%;
}

.chat-block {
    display: flex;
    gap: 16px;
    padding: 24px 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.chat-block.user {
    color: var(--text-primary);
    font-weight: 500;
}

.chat-block.ai {
    color: var(--text-primary);
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    background: transparent;
    border: none;
}

.chat-block.ai .chat-avatar {
    background: transparent;
    border: none;
    color: white;
}

.chat-content {
    flex: 1;
    min-width: 0;
}

.chat-content p {
    margin-bottom: 12px;
}

.chat-content p:last-child {
    margin-bottom: 0;
}

.chat-block.ai h1,
.chat-block.ai h2,
.chat-block.ai h3 {
    font-size: 1rem;
    margin: 12px 0 6px;
}

.chat-block.ai ul,
.chat-block.ai ol {
    padding-left: 20px;
    margin: 8px 0;
}

.chat-block.ai li {
    margin-bottom: 4px;
}

.chat-block.ai strong {
    color: var(--accent-tertiary);
}

.chat-block.ai code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.chat-block.ai table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.85rem;
    overflow-x: auto;
    display: block;
}

.chat-block.ai th,
.chat-block.ai td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border-glass);
}

.chat-block.ai th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
}

.chat-block.ai tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

/* Chat Input ChatGPT Style */
.chat-input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 30%);
    padding: 30px 20px 16px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-input-row {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 800px;
    background: var(--bg-card);
    padding: 8px 8px 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}

.chat-input-row .glass-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
}

.chat-input-row .glass-input:focus {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
}

.chat-input-row .btn {
    border-radius: var(--radius-full);
    padding: 10px 24px;
}

.chat-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.suggestion-chips {
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Page */
.submit-container {
    max-width: 700px;
    margin: 0 auto;
}

.progress-tracker {
    margin: 24px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.progress-step.active {
    color: var(--accent-primary);
}

.progress-step.done {
    color: var(--success);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active .progress-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.progress-step.done .progress-dot {
    background: var(--success);
}

.result-card {
    padding: 24px;
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

.result-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.result-section {
    margin-bottom: 16px;
}

.result-section h4 {
    font-size: 0.9rem;
    color: var(--accent-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-section p,
.result-section ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-section ul {
    list-style: none;
}

.result-section ul li::before {
    content: "→ ";
    color: var(--accent-primary);
}

/* Tool Detail Page */
.tool-detail {
    max-width: 900px;
    margin: 0 auto;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.tool-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0f172a;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: none;
}

.tool-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: none;
}

.tool-meta {
    flex: 1;
}

.tool-meta h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.tool-meta .category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-tertiary);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.detail-section {
    padding: 20px;
    margin-bottom: 16px;
}

.detail-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent-tertiary);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

/* Admin Page */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-processed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.btn-primary .spinner {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: var(--bg-primary);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-pulse {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-pulse .spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    border-color: var(--accent-primary);
    border-top-color: transparent;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-glass);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-number {
    position: absolute;
    left: -58px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:last-child .timeline-number {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Visibility Audit Style (Stats Alternative) */
.audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.audit-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    transition: var(--transition);
}

.audit-card:hover {
    border-color: var(--accent-primary);
    background: #1a1a1a;
}

.audit-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
    display: block;
}

.audit-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.audit-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Domain Search Bar (Hero) */
.hero-search {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.hero-search:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 24px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.hero-search .btn {
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar {
        padding: 0 16px;
    }

    .nav-content {
        height: 64px;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.45rem);
        line-height: 1.12;
        letter-spacing: 0;
        max-width: 100%;
        word-break: normal;
    }

    .hero-title br {
        display: none;
    }

    .hero-title .text-gradient-animated {
        display: block;
    }

    .hero-subtitle {
        max-width: 100% !important;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-badge {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
        background: rgba(9, 9, 11, 0.98);
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
        flex-direction: column;
        gap: 6px;
        z-index: 99;
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links a {
        display: flex !important;
        align-items: center;
        min-height: 46px;
        padding: 0 14px;
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        font-size: 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(99, 102, 241, 0.12);
        color: var(--text-primary);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: min(100%, 280px);
    }

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

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

    .stats-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline-number {
        left: -38px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 16px;
    }

    .hero-search input {
        padding: 12px 0;
        text-align: center;
    }
}

/* ============================================================
   Homepage — Redesigned Sections
   ============================================================ */

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 24px;
}

/* Animated gradient text */
.text-gradient-animated {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero trust signals */
.hero-trust-signals {
    margin-top: 32px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-trust-signals span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust-signals svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 12px;
}

/* Steps Grid (How It Works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Vertical Steps */
.steps-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-card-v {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    width: 100%;
}

.step-card-v:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-card-v h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card-v p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    opacity: 0.6;
}

/* Vertical Steps */
.steps-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.step-card-v {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    width: 100%;
}

.step-card-v:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-card-v h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card-v p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow-v {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    opacity: 0.6;
}

/* How It Works — Horizontal Steps */
.hiw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 56px;
}

.hiw-step {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 0 24px;
}

.hiw-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff5500);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(255, 115, 0, 0.35);
}

.hiw-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hiw-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hiw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hiw-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .hiw-step {
        max-width: 420px;
    }
    .hiw-connector {
        padding-top: 0;
        transform: rotate(90deg);
        margin: 8px 0;
    }
}

/* Featured Companies Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-card {
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.featured-card-top {
    position: relative;
    margin-bottom: 16px;
}

.featured-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    box-shadow: none;
}

.featured-logo img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    border-radius: 8px;
    filter: none;
}

.verified-badge {
    position: absolute;
    top: -4px;
    right: -8px;
}

.featured-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.featured-category {
    font-size: 0.78rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.featured-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.featured-footer {
    margin-top: auto;
}

/* Platform Features Grid */
.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pf-card {
    padding: 24px;
    transition: var(--transition);
}

.pf-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.pf-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.pf-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pf-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Menu Preview Grid */
.menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.menu-card {
    padding: 32px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.menu-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.menu-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.menu-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.menu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.menu-card-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.level-crawled {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.level-email {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.level-human {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.level-trusted {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.menu-card-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.example-query {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-primary);
}

/* Tagline CTA Section */
.tagline-section {
    padding: 100px 0;
}

.tagline-block {
    max-width: 700px;
    margin: 0 auto;
}

.tagline-lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tagline-main {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

/* Home Footer */
.home-footer {
    border-top: 1px solid var(--border-glass);
    padding: 72px 0 40px;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Homepage Responsive */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .platform-features-grid {
        grid-template-columns: 1fr;
    }

    .menu-preview-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand .footer-tagline {
        max-width: 100%;
    }

    .hero-trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0 4px;
        text-align: center;
    }

    .tagline-main {
        font-size: 2rem;
    }

    .tagline-lead {
        font-size: 1rem;
    }
}
/* Mobile performance safeguards */
@media (max-width: 768px) {
    .bg-elements {
        display: none;
    }

    .navbar,
    .glass-panel {
        backdrop-filter: none;
    }

    .tool-card:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glow-orb,
    .text-gradient-animated {
        animation: none !important;
    }

    * {
        transition: none !important;
    }
}
