/* =====================================================================
   EasyGetInvoice — Modern SaaS theme (Resend/Vercel inspired)
   - Inter font, indigo accent, generous whitespace
   - Numbered feature cards, hover-lift, subtle gradients
   - All legacy class names preserved for backwards compatibility
   ===================================================================== */

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

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

:root {
    --primary:            #4F46E5;
    --primary-hover:      #4338CA;
    --primary-soft:       #EEF2FF;
    --primary-color:      #4F46E5;     /* legacy alias */
    --secondary-color:    #64748B;     /* legacy alias */
    --background:         #FFFFFF;
    --background-muted:   #F8FAFC;
    --bg-color:           #FFFFFF;     /* legacy alias */
    --card-bg:            #FFFFFF;
    --foreground:         #0F172A;
    --text-color:         #0F172A;     /* legacy alias */
    --muted:              #64748B;
    --muted-2:            #94A3B8;
    --border:             #E2E8F0;
    --border-color:       #E2E8F0;     /* legacy alias */
    --success:            #10B981;
    --success-color:      #10B981;
    --error:              #EF4444;
    --error-color:        #EF4444;
    --warning:            #F59E0B;
    --info:               #3B82F6;
    --info-color:         #3B82F6;
    --radius-sm:          8px;
    --radius:             12px;
    --radius-lg:          16px;
    --shadow-sm:          0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow:             0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg:          0 24px 48px -16px rgba(15, 23, 42, 0.16);
    --gradient-hero:      radial-gradient(1200px 600px at 50% -10%, #EEF2FF 0%, transparent 60%),
                          linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: "cv11", "ss01", "ss03", "tnum";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
}

code, kbd, pre, samp {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-hover); }

img, svg { max-width: 100%; display: block; }

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

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
}
.logo::before {
    content: "";
    display: inline-block;
    width: 22px; height: 22px;
    margin-right: 8px;
    vertical-align: -5px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.nav-menu { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-menu a:not(.btn-primary):not(.btn-secondary):not(.btn-danger) {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-menu a:not(.btn-primary):not(.btn-secondary):not(.btn-danger):hover { color: var(--foreground); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    margin: 16px auto;
    max-width: 1200px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    line-height: 1;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(79, 70, 229, .55);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); color: #fff; }
.btn-secondary {
    background: #fff;
    color: var(--foreground);
    border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--muted-2); transform: translateY(-1px); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #DC2626; transform: translateY(-1px); color: #fff; }
.btn-block { width: 100%; }
.btn-large { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-small { padding: 7px 12px; font-size: 0.8125rem; }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 96px 0 80px;
    background: var(--gradient-hero);
    color: var(--foreground);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 999px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-trust .stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--foreground);
    font-feature-settings: "tnum";
}
.hero-trust .stat-label {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------- Features (numbered) ---------- */
.features { padding: 96px 0; background: var(--background); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header .kicker {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.features h2, .cta h2, .pricing-section h1, .section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}
.section-header p { color: var(--muted); font-size: 1.0625rem; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}
.feature-card .num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}
.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.feature-card p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 96px 0; background: var(--background-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.testimonial-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.testimonial-card .quote {
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 20px;
    line-height: 1.6;
}
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #EC4899);
    color: #fff; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
}
.testimonial-card .name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-card .role { color: var(--muted); font-size: 0.8125rem; }

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    padding: 96px 0;
    background:
        radial-gradient(800px 300px at 50% 100%, rgba(79,70,229,.12) 0%, transparent 70%),
        var(--background);
}
.cta p { color: var(--muted); margin-bottom: 28px; font-size: 1.0625rem; }

/* ---------- Auth ---------- */
.auth-section {
    padding: 64px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--background-muted);
}
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.auth-card h2 {
    margin-bottom: 28px;
    text-align: center;
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--foreground);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.auth-footer { text-align: center; margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dashboard { padding: 56px 0; min-height: 70vh; }
.dashboard h1 {
    margin-bottom: 32px;
    font-size: 2rem;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card h3 {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    font-weight: 600;
}
.stat-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
}
.subscription-info, .upgrade-prompt, .quick-actions, .create-url-form, .urls-list, .contact-info, .contact-form {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.create-url-form .form-group { display: flex; gap: 12px; margin-bottom: 0; }
.create-url-form input { flex: 1; }

/* ---------- Tables ---------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}
.data-table th {
    background: var(--background-muted);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td a { word-break: break-all; }
.truncate { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Status badges ---------- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.status-active  { background: #ECFDF5; color: #065F46; }
.status-warning { background: #FFFBEB; color: #92400E; }
.status-error   { background: #FEF2F2; color: #991B1B; }

/* ---------- Pricing ---------- */
.pricing-section { padding: 96px 0; background: var(--background); }
.pricing-section h1 { text-align: center; margin-bottom: 14px; }
.pricing-section > .container > p { text-align: center; margin-bottom: 56px; color: var(--muted); font-size: 1.0625rem; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.pricing-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.01em; }
.pricing-card.current-plan, .pricing-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: 0 20px 40px -12px rgba(79,70,229,.25); }
.current-plan-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 12px;
}
.price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 20px 0 4px;
    color: var(--foreground);
    font-feature-settings: "tnum";
}
.price .currency { font-size: 1.125rem; color: var(--muted); font-weight: 600; vertical-align: 14px; margin-right: 2px; }
.price .period   { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.pricing-card .features { list-style: none; margin: 24px 0; padding: 0; }
.pricing-card .features li { padding: 8px 0; color: var(--muted); font-size: 0.9375rem; display: flex; align-items: flex-start; gap: 10px; }
.pricing-card .features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Success ---------- */
.success-section { padding: 64px 0; min-height: 60vh; display: flex; align-items: center; background: var(--background-muted); }
.success-card {
    max-width: 600px; margin: 0 auto;
    background: #fff; padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.success-icon { font-size: 3.5rem; color: var(--success); margin-bottom: 16px; }
.success-details { background: var(--background-muted); padding: 20px; border-radius: var(--radius-sm); margin: 24px 0; text-align: left; }

/* ---------- Static pages ---------- */
.page-section { padding: 64px 0; min-height: 70vh; max-width: 800px; margin: 0 auto; }
.page-section h1 { margin-bottom: 24px; font-size: 2.25rem; letter-spacing: -0.02em; font-weight: 800; }
.page-section h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
.page-section h3 { margin-top: 20px; margin-bottom: 8px; font-size: 1.0625rem; font-weight: 600; }
.page-section p, .page-section li { color: #334155; }
.page-section ul { margin-left: 24px; margin-bottom: 14px; }
.page-section li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer {
    background: #0F172A;
    color: #CBD5E1;
    padding: 64px 0 28px;
    margin-top: 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 960px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-content { grid-template-columns: 1fr; }
}
.footer-brand .logo.logo-light {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}
.footer-brand p {
    color: #94A3B8;
    font-size: 0.9375rem;
    max-width: 260px;
    margin-bottom: 18px;
}
.footer-section h4 { color: #fff; margin-bottom: 16px; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.footer-section p { color: #94A3B8; font-size: 0.9375rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; font-size: 0.9375rem; }
.footer-section a { color: #CBD5E1; }
.footer-section a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1E293B;
    color: #64748B;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero { padding: 64px 0 56px; }
    .hero h1 { font-size: 2.25rem; }
    .hero p  { font-size: 1.05rem; }
    .features, .testimonials, .cta, .pricing-section { padding: 64px 0; }

    .nav-menu { gap: 14px; }
    .nav-menu li:not(:last-child):not(:nth-last-child(2)) { display: none; }

    .pricing-grid, .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }

    .data-table thead { display: none; }
    .data-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 14px;
        background: #fff;
    }
    .data-table td {
        display: block;
        padding: 4px 0;
        border-bottom: none;
        text-align: left;
    }
    .data-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--muted);
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    .truncate { max-width: 100%; white-space: normal; word-break: break-all; }
    .create-url-form .form-group { flex-direction: column; }
}

/* =====================================================================
   Lovable-preview-inspired sections (hero code card, logos, use cases)
   ===================================================================== */

/* ---------- Hero code mockup ---------- */
.hero-code {
    margin: 56px auto 0;
    max-width: 760px;
    text-align: left;
    background: #0B1020;
    color: #E2E8F0;
    border: 1px solid #1E293B;
    border-radius: 14px;
    box-shadow:
        0 30px 60px -20px rgba(15, 23, 42, .35),
        0 0 0 1px rgba(99, 102, 241, .15) inset;
    overflow: hidden;
    position: relative;
}
.hero-code::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(99,102,241,.45), rgba(236,72,153,.25), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.hero-code-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #1E293B;
    background: rgba(255,255,255,.02);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #94A3B8;
}
.hero-code-bar .dotgroup { display: inline-flex; gap: 6px; }
.hero-code-bar .dotgroup i {
    width: 10px; height: 10px; border-radius: 50%;
    background: #334155; display: inline-block;
}
.hero-code-bar .dotgroup i:nth-child(1) { background: #EF4444; }
.hero-code-bar .dotgroup i:nth-child(2) { background: #F59E0B; }
.hero-code-bar .dotgroup i:nth-child(3) { background: #10B981; }
.hero-code-bar .tabs { display: flex; gap: 4px; margin-left: 8px; }
.hero-code-bar .tab {
    padding: 4px 10px; border-radius: 6px;
    color: #64748B; font-size: 0.75rem; font-weight: 500;
}
.hero-code-bar .tab.active {
    background: rgba(99,102,241,.15);
    color: #C7D2FE;
}
.hero-code-bar .copy {
    margin-left: auto;
    color: #64748B;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid #1E293B;
    border-radius: 6px;
}
.hero-code-bar .copy:hover { color: #E2E8F0; border-color: #334155; }

.hero-code-body {
    margin: 0;
    padding: 22px 24px 26px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #E2E8F0;
    overflow-x: auto;
    white-space: pre;
}
.hero-code-body .kw  { color: #C084FC; }
.hero-code-body .fn  { color: #60A5FA; }
.hero-code-body .str { color: #34D399; }
.hero-code-body .num { color: #FBBF24; }

/* ---------- Logo strip ---------- */
.logos {
    padding: 56px 0 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}
.logos-title {
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    justify-content: center;
    align-items: center;
}
.logos-row span {
    color: #94A3B8;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1.125rem;
    opacity: .8;
    transition: opacity .2s ease, color .2s ease;
}
.logos-row span:hover { opacity: 1; color: var(--foreground); }

/* ---------- Use cases ---------- */
.use-cases {
    padding: 96px 0;
    background: var(--background);
}
.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.use-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(99,102,241,.06), transparent 60%),
        var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}
.use-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #C7D2FE;
}
.use-card .use-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
}
.use-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}
.use-card p {
    color: var(--muted);
    font-size: 0.9375rem;
    margin-bottom: 18px;
}
.use-card .use-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}
.use-card .use-link:hover { color: var(--primary-hover); }

/* ---------- Hero trust 4-col tweak ---------- */
.hero-trust { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-width: 920px; }

@media (max-width: 640px) {
    .hero-code-body { font-size: 0.78rem; padding: 16px 18px; }
    .hero-code-bar .tabs { display: none; }
}
