/* ===== LEADGEN AI - WHITE & ORANGE THEME ===== */
:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 0.75rem;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gradient-text {
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 80px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.shadow { 
    height: 72px;
    background: var(--white);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); 
    border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { 
    font-size: 1.6rem; font-weight: 850; text-decoration: none; color: var(--gray-900);
    display: flex; align-items: center; gap: 8px;
    letter-spacing: -0.02em;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--orange);
    border-radius: 8px; display: grid; place-items: center;
    color: white; font-size: 1.2rem; transform: rotate(-10deg);
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-icon { transform: rotate(0deg) scale(1.1); box-shadow: 0 6px 16px rgba(249,115,22,0.4); }
.logo span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; text-decoration: none;
    color: var(--gray-600); font-weight: 600; font-size: 0.9375rem;
    transition: all 0.25s ease;
    position: relative;
}
.nav-links a:hover { color: var(--gray-900); background: var(--gray-50); }
.nav-links a.active { color: var(--orange); background: var(--orange-light); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
    height: 2px; background: var(--orange); border-radius: 2px;
}

/* ── MOBILE MENU ── */
.mobile-toggle {
    display: none; width: 40px; height: 40px; border-radius: 8px;
    background: var(--gray-50); border: 1px solid var(--gray-200);
    color: var(--gray-900); cursor: pointer; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.mobile-toggle:hover { background: var(--gray-100); }

@media (max-width: 991px) {
    .navbar { height: 72px; }
    .mobile-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px);
        background: white; flex-direction: column; padding: 40px 24px;
        gap: 16px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999; border-top: 1px solid var(--gray-100);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { width: 100%; font-size: 1.1rem; padding: 16px 20px; }
    .nav-links .btn { margin-top: 12px; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.9375rem;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
}
.btn-primary {
    background: var(--orange); color: white;
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}
.btn-primary:hover {
    background: var(--orange-dark); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--white); color: var(--gray-900);
    border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--gray-400); background: var(--gray-50); transform: translateY(-1px); }

.btn-outline {
    background: transparent; color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; border-radius: 10px; }

/* ── HERO ── */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--white) 60%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1.5px solid var(--gray-200);
    padding: 6px 16px; border-radius: 100px; font-size: 0.8125rem;
    font-weight: 600; color: var(--orange); margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.03em; margin-bottom: 20px;
    color: var(--gray-900);
}
.hero h1 .highlight { color: var(--orange); }
.hero p {
    font-size: 1.125rem; color: var(--gray-600);
    max-width: 560px; margin: 0 auto 40px;
}

/* ── SEARCH BOX ── */
.search-box {
    max-width: 680px; margin: 0 auto 16px;
    display: flex; gap: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.1), var(--shadow-lg);
}
.search-input {
    flex: 1; padding: 16px 20px;
    border: none; outline: none;
    font-size: 1rem; background: transparent;
    color: var(--gray-900);
}
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
    padding: 12px 24px; background: var(--orange); color: white;
    border: none; cursor: pointer; font-weight: 700; font-size: 0.9375rem;
    transition: background 0.15s; white-space: nowrap;
}
.search-btn:hover { background: var(--orange-dark); }
.hero-note { font-size: 0.8125rem; color: var(--gray-400); }
.hero-note a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* ── RESULTS PANEL ── */
#results-panel {
    max-width: 900px; margin: 40px auto 0;
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.results-header {
    padding: 16px 24px; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
}
.results-table { width: 100%; border-collapse: collapse; }
.results-table th {
    padding: 12px 16px; text-align: left; font-size: 0.75rem;
    font-weight: 700; color: var(--gray-400); text-transform: uppercase;
    letter-spacing: 0.05em; background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.results-table td {
    padding: 14px 16px; font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--gray-50); }
.badge-rating {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--orange-light); color: var(--orange-dark);
    padding: 2px 8px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}

/* ── SECTIONS ── */
.section { padding: 96px 24px; }
.section-alt { background: var(--gray-50); }
.section-padding { padding: 100px 0 60px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
    display: inline-block; color: var(--orange); font-weight: 700;
    font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
    letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 1.0625rem; color: var(--gray-600); max-width: 560px; }

/* ── FEATURE CARDS ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 56px;
}
.feature-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 32px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--orange-light); color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 56px; align-items: start;
}
.pricing-card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 36px;
}
.pricing-card.featured {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.1), var(--shadow-xl);
}
.pricing-badge {
    background: var(--orange); color: white;
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 4px 12px; border-radius: 100px;
    display: inline-block; margin-bottom: 16px;
}
.pricing-price {
    font-size: 3rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--gray-900); line-height: 1;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.pricing-features { list-style: none; margin: 28px 0; }
.pricing-features li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; font-size: 0.9375rem; color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--orange); font-weight: 700; flex-shrink: 0; }
.pricing-features .cross { color: var(--gray-300); flex-shrink: 0; }

/* ── DASHBOARD LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--white); border-right: 1px solid var(--gray-200);
    display: flex; flex-direction: column; padding: 24px;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
}
.sidebar-logo { margin-bottom: 32px; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none; font-weight: 500; font-size: 0.9375rem;
    color: var(--gray-600); transition: all 0.15s;
}
.sidebar-link:hover { color: var(--gray-900); background: var(--gray-100); }
.sidebar-link.active { color: var(--orange); background: var(--orange-light); font-weight: 600; }
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-footer {
    border-top: 1px solid var(--gray-200); padding-top: 16px; margin-top: 16px;
}
.app-main { margin-left: 260px; flex: 1; background: var(--gray-50); min-height: 100vh; }
.app-topbar {
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 16px 32px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
.app-content { padding: 32px; }

/* ── CARDS ── */
.card {
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 0.8125rem; color: var(--gray-400); font-weight: 500; }
.stat-change { font-size: 0.8125rem; color: #10b981; font-weight: 600; }

/* ── FORMS ── */
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--gray-700, #374151); }
.form-input {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
    border-radius: 8px; font-size: 0.9375rem; background: var(--white);
    color: var(--gray-900); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.form-group { margin-bottom: 20px; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 10px 16px; text-align: left; font-size: 0.75rem; font-weight: 700;
    color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
}
.data-table td {
    padding: 12px 16px; font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100); color: var(--gray-600);
}
.data-table tbody tr:hover td { background: var(--gray-50); }

/* ── KEY DISPLAY ── */
.api-key-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--gray-50); border: 1.5px solid var(--gray-200);
    border-radius: 8px; padding: 12px 16px;
}
.api-key-text { flex: 1; font-family: monospace; font-size: 0.875rem; color: var(--orange-dark); word-break: break-all; }

/* ── FOOTER ── */
.footer {
    background: var(--white); color: var(--gray-900); padding: 100px 24px 40px;
    position: relative; overflow: hidden;
    border-top: 1px solid var(--gray-200);
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--orange);
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 64px;
    margin-bottom: 80px;
}
.footer-brand .logo { color: var(--gray-900); margin-bottom: 24px; display: inline-flex; font-size: 1.8rem; }
.footer-brand p { color: var(--gray-600); font-size: 1rem; line-height: 1.7; max-width: 340px; }
.footer-col h4 { 
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase; 
    letter-spacing: 0.15em; color: var(--orange); margin-bottom: 28px; 
}
.footer-col a { 
    display: block; color: var(--gray-600); text-decoration: none; 
    font-size: 0.9375rem; margin-bottom: 16px; transition: all 0.25s ease;
    width: fit-content;
}
.footer-col a:hover { color: var(--orange); transform: translateX(6px); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding-top: 40px;
    border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center;
    color: var(--gray-400); font-size: 0.875rem;
}
.footer-newsletter p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 20px; }
.footer-newsletter form {
    display: flex; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 6px; transition: border-color 0.3s;
}
.footer-newsletter form:focus-within { border-color: var(--orange); }
.footer-newsletter input {
    background: transparent; border: none; color: var(--gray-900); padding: 10px 14px; flex: 1; outline: none; font-size: 0.9rem;
}
.footer-newsletter button {
    background: var(--orange); color: white; border: none; width: 40px; height: 40px;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.footer-newsletter button:hover { background: var(--orange-dark); transform: scale(1.05); }

/* ── AUTH ── */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at top left, var(--orange-light) 0%, var(--white) 100%);
    padding: 0;
}
.auth-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 20px; padding: 48px; width: 100%; max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 32px; }

/* ── UTILS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-400); }
.text-orange { color: var(--orange); }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.chip {
    display: inline-block; padding: 4px 12px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}
.chip-orange { background: var(--orange-light); color: var(--orange-dark); }
.chip-green { background: #f0fdf4; color: #15803d; }
.chip-gray { background: var(--gray-100); color: var(--gray-600); }

/* ── PROGRESS ── */
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 100px; transition: width 0.3s; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }
.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 120px 16px 80px; }
    .search-box { flex-direction: column; }
    .search-btn { border-radius: 0 0 10px 10px; padding: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .app-main { margin-left: 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Spinner */
.spinner {
    border-radius: 50%;
    border: 3px solid rgba(249, 115, 22, 0.1);
    border-top: 3px solid var(--orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -- FORMS -- */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input, .form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--gray-900);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.form-input:focus, .form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}
.form-input::placeholder, .form-control::placeholder {
    color: var(--gray-400);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

