/* ============================================
   TICKET911.CA — DEMO PLATFORM CSS
   Modern AI-Powered Legal Platform
   ============================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --primary-dark: #0f2440;
    --accent: #e63946;
    --accent-light: #ff4d5a;
    --accent-dark: #c1121f;
    --gold: #d4a843;
    --gold-light: #f0d060;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-lighter: #e2e8f0;
    --gray-bg: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

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

/* ============ TOPBAR ============ */
.topbar {
    background: var(--dark);
    color: var(--gray-light);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left a { color: var(--gray-light); }
.topbar-left a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right .lang-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.topbar-right .lang-btn:hover { background: rgba(255,255,255,0.2); }
.topbar-right .lang-btn.active { background: var(--accent); }

/* ============ HEADER / NAV ============ */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}
.logo .t9 { color: var(--accent); }
.logo img { height: 42px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav .dropdown {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-3);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav a:hover, .nav .dropdown:hover { background: var(--gray-bg); color: var(--primary); }
.nav .dropdown { cursor: pointer; }
.nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 240px;
    z-index: 100;
}
.nav .dropdown:hover .dropdown-menu { display: block; }
.nav .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}
.nav .dropdown-menu a:hover { background: var(--gray-bg); }

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; transform: translateY(-1px); }

.nav-login {
    border: 2px solid var(--primary) !important;
    border-radius: 50px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}
.nav-login:hover { background: var(--primary) !important; color: white !important; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(160deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,168,67,0.1), transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,168,67,0.15);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 12px;
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero h1 { font-size: 48px; font-weight: 900; line-height: 1.1; margin-bottom: 18px; }
.hero h1 span { color: var(--accent-light); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 30px; max-width: 520px; }
.hero-stats { display: flex; gap: 30px; margin-top: 35px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 32px; font-weight: 900; color: var(--gold-light); display: block; }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 14px; }

/* ============ AI SCANNER WIDGET (Hero Right) ============ */
.ai-scanner {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
}
.ai-scanner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.ai-scanner-header .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.ai-scanner-header span { color: rgba(255,255,255,0.7); font-size: 13px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.upload-zone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 18px;
}
.upload-zone:hover { border-color: var(--accent); background: rgba(230,57,70,0.05); }
.upload-zone .icon { font-size: 48px; margin-bottom: 10px; display: block; }
.upload-zone p { color: rgba(255,255,255,0.6); font-size: 14px; }
.upload-zone .or { font-size: 12px; color: rgba(255,255,255,0.3); margin: 8px 0; }
.scanner-features { display: flex; gap: 10px; flex-wrap: wrap; }
.scanner-feat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}
.scanner-feat .ico { color: var(--success); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,57,70,0.3); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: white; }
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); color: white; }
.section-gray { background: var(--gray-bg); }
.section-primary { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: white; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header .badge {
    display: inline-block;
    background: rgba(230,57,70,0.1);
    color: var(--accent);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 16px; color: var(--gray); }
.section-dark .section-header p { color: var(--gray-light); }

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-lighter);
    padding: 28px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.card-icon.red { background: rgba(230,57,70,0.1); color: var(--accent); }
.card-icon.blue { background: rgba(59,130,246,0.1); color: var(--info); }
.card-icon.green { background: rgba(34,197,94,0.1); color: var(--success); }
.card-icon.gold { background: rgba(212,168,67,0.1); color: var(--gold); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============ PRICING ============ */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-lighter);
    padding: 35px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pricing-card.popular { border-color: var(--accent); }
.pricing-card.popular::before {
    content: 'POPULAIRE';
    position: absolute;
    top: 18px;
    right: -30px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 36px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}
.pricing-card .region { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--gray); font-weight: 700; margin-bottom: 8px; }
.pricing-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.pricing-card .points { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.pricing-card .price { font-size: 48px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.pricing-card .price sup { font-size: 20px; vertical-align: top; }
.pricing-card .price-note { font-size: 12px; color: var(--gray); margin-bottom: 20px; }
.pricing-card ul { text-align: left; margin-bottom: 24px; }
.pricing-card li { padding: 8px 0; font-size: 13px; color: var(--dark-3); border-bottom: 1px solid var(--gray-lighter); display: flex; align-items: center; gap: 8px; }
.pricing-card li .ck { color: var(--success); font-weight: 700; }

/* ============ PROCESS / STEPS ============ */
.process-steps { display: flex; gap: 0; position: relative; }
.process-step {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    position: relative;
}
.process-step::after {
    content: '';
    position: absolute;
    top: 38px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--gray-lighter);
    z-index: 0;
}
.process-step:last-child::after { display: none; }
.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}
.process-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 12px; color: var(--gray); }

/* ============ TEAM ============ */
.team-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.team-card:hover { background: var(--gray-bg); }
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 800;
}
.team-card h4 { font-size: 16px; font-weight: 700; }
.team-card .role { font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card p { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-lighter);
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 14px; color: var(--dark-3); font-style: italic; margin-bottom: 14px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.testimonial-author .name { font-size: 14px; font-weight: 700; }
.testimonial-author .source { font-size: 11px; color: var(--gray); }

/* ============ AI DEMO SECTION ============ */
.ai-demo {
    background: linear-gradient(160deg, #0a0e27, #141b3d, #0f172a);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin: 0 24px;
    position: relative;
    overflow: hidden;
}
.ai-demo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(230,57,70,0.08), transparent 70%);
}
.ai-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.ai-demo h2 { font-size: 30px; font-weight: 800; color: white; margin-bottom: 12px; }
.ai-demo p { color: var(--gray-light); font-size: 15px; margin-bottom: 20px; }
.ai-result-preview {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
}
.ai-result-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ai-result-item:last-child { border: none; }
.ai-result-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.ai-result-value { font-size: 16px; color: white; font-weight: 600; margin-top: 2px; }
.ai-score {
    text-align: center;
    padding: 20px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: var(--radius);
    margin-top: 14px;
}
.ai-score .score-num { font-size: 48px; font-weight: 900; color: var(--success); }
.ai-score .score-lbl { font-size: 12px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 1px; }

/* ============ FAQ ============ */
.faq-item {
    border-bottom: 1px solid var(--gray-lighter);
    padding: 18px 0;
}
.faq-q {
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 300; }
.faq-q.active::after { content: '−'; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}
.faq-a.open { max-height: 500px; padding-top: 12px; }

/* ============ CHATBOT ============ */
.chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.chatbot-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(230,57,70,0.4);
    transition: var(--transition);
    position: relative;
}
.chatbot-btn:hover { transform: scale(1.08); }
.chatbot-btn .badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}
.chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    flex-direction: column;
}
.chatbot-window.open { display: flex; }
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chatbot-header .ai-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
.chatbot-header h4 { font-size: 15px; font-weight: 700; }
.chatbot-header p { font-size: 11px; color: rgba(255,255,255,0.6); }
.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-msg.bot {
    background: var(--gray-bg);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chatbot-input {
    padding: 14px;
    border-top: 1px solid var(--gray-lighter);
    display: flex;
    gap: 8px;
}
.chatbot-input input {
    flex: 1;
    border: 1px solid var(--gray-lighter);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    outline: none;
}
.chatbot-input input:focus { border-color: var(--primary); }
.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* ============ PAYMENT SECTION ============ */
.payment-methods { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.payment-method {
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.payment-method:hover { border-color: var(--primary); background: var(--gray-bg); }
.payment-method.selected { border-color: var(--accent); background: rgba(230,57,70,0.03); }
.payment-method .pm-icon { font-size: 24px; }

/* ============ DASHBOARD PREVIEW ============ */
.dash-preview {
    background: var(--gray-bg);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.dash-topbar {
    background: var(--primary-dark);
    padding: 10px 20px;
    display: flex;
    gap: 8px;
}
.dash-dot { width: 12px; height: 12px; border-radius: 50%; }
.dash-dot.r { background: #ff5f57; }
.dash-dot.y { background: #ffbd2e; }
.dash-dot.g { background: #28ca42; }
.dash-content { padding: 20px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--gray-lighter);
}
.stat-card .stat-num { font-size: 28px; font-weight: 900; color: var(--primary); display: block; }
.stat-card .stat-lbl { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: white; font-size: 16px; margin-bottom: 16px; }
.footer p, .footer a { font-size: 13px; color: var(--gray-light); line-height: 2; }
.footer a:hover { color: var(--gold); }
.footer-logo { font-size: 24px; font-weight: 900; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.footer-social a:hover { background: var(--accent); color: white; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark-3); }
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ============ MISC ============ */
.badge-ai { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: white; padding: 3px 10px; border-radius: 50px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: var(--accent); color: white; padding: 3px 10px; border-radius: 50px; font-size: 10px; font-weight: 700; }
.badge-auto { background: var(--success); color: white; padding: 3px 10px; border-radius: 50px; font-size: 10px; font-weight: 700; }

.divider { height: 1px; background: var(--gray-lighter); margin: 40px 0; }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.fw-900 { font-weight: 900; }

/* ============ MOBILE MENU BUTTON ============ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

/* ============ RESPONSIVE — TABLET (968px) ============ */
@media (max-width: 968px) {
    /* Topbar — hide all links except first phone number */
    .topbar { overflow: hidden !important; max-width: 100vw !important; }
    .topbar .container { flex-direction: row !important; justify-content: space-between !important; flex-wrap: nowrap !important; overflow: hidden !important; }
    .topbar-left { overflow: hidden !important; flex-shrink: 1 !important; min-width: 0 !important; }
    .topbar-left a + a { display: none !important; }
    .topbar-right { gap: 6px; flex-shrink: 0 !important; }

    /* Header */
    .logo { font-size: 22px; }
    .logo img { height: 34px; }
    .nav { display: none; }
    .mobile-menu-btn { display: block; }

    /* Hero */
    .hero { padding: 50px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .ai-scanner { display: none; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .hero-btns { flex-wrap: wrap; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }

    /* Grids */
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Cards & sections */
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .section-header h2 { font-size: 28px; }
    .section { padding: 60px 0; }
    .process-steps { flex-direction: column; }
    .process-step::after { display: none; }

    /* AI demo */
    .ai-demo { padding: 30px 20px; margin: 0 16px; }
    .ai-demo-grid { grid-template-columns: 1fr; gap: 24px; }
    .ai-demo h2 { font-size: 24px; }

    /* Chatbot */
    .chatbot-window { width: 320px; height: 450px; }

    /* Inline grids — force 1 column for comparison table */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] { gap: 20px !important; }

    /* Dashboard table — allow scroll */
    .dash-content { overflow-x: auto; }
}

/* ============ RESPONSIVE — MOBILE (640px) ============ */
@media (max-width: 640px) {
    /* Container */
    .container { padding: 0 16px; }

    /* Topbar — phone number only, everything else hidden */
    .topbar { font-size: 12px !important; padding: 4px 0 !important; overflow: hidden !important; max-width: 100vw !important; }
    .topbar .container { justify-content: center !important; flex-wrap: nowrap !important; overflow: hidden !important; }
    .topbar-left { overflow: hidden !important; white-space: nowrap !important; }
    .topbar-left a { white-space: nowrap !important; }
    .topbar-left a + a { display: none !important; }
    .topbar-right { display: none !important; }

    /* Header */
    .header .container { padding: 8px 16px; }
    .logo { font-size: 20px; gap: 6px; }
    .logo img { height: 28px; }

    /* Hero */
    .hero { padding: 35px 0 45px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; margin-bottom: 20px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 14px; }
    .hero-stat .num { font-size: 24px; }
    .hero-stat .lbl { font-size: 10px; }
    .hero-badge { font-size: 10px; padding: 5px 12px; }

    /* Grids — all single column */
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    /* Sections */
    .section { padding: 40px 0; }
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 14px; }

    /* Cards */
    .card { padding: 20px; }
    .card h3 { font-size: 16px; }
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px; }
    .stat-card .stat-num { font-size: 22px; }

    /* Pricing */
    .pricing-card { padding: 24px 18px; }
    .pricing-card .price { font-size: 38px; }

    /* Buttons */
    .btn { padding: 12px 24px; font-size: 14px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .btn-sm { padding: 8px 18px; font-size: 12px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }

    /* FAQ */
    .faq-q { font-size: 14px; }

    /* Forms */
    .form-control { padding: 10px 14px; font-size: 13px; }

    /* AI Demo */
    .ai-demo { padding: 24px 16px; margin: 0; border-radius: var(--radius); }
    .ai-demo-grid { grid-template-columns: 1fr; }
    .ai-demo h2 { font-size: 22px; }
    .ai-score .score-num { font-size: 36px; }

    /* Payment */
    .payment-methods { gap: 10px; }
    .payment-method { padding: 12px 16px; font-size: 13px; }

    /* Team */
    .team-avatar { width: 80px; height: 80px; font-size: 28px; }

    /* Chatbot */
    .chatbot { bottom: 16px; right: 16px; }
    .chatbot-btn { width: 52px; height: 52px; font-size: 22px; }
    .chatbot-window { width: calc(100vw - 32px); right: -8px; height: 400px; }

    /* Dashboard table — horizontal scroll wrapper */
    .dash-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-content table { min-width: 600px; font-size: 11px !important; }

    /* Inline grids override — comparison table, key advantages, etc. */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }

    /* CTA buttons — stack vertically */
    .section-primary [style*="display:flex"][style*="gap"],
    .section-dark [style*="display:flex"][style*="justify-content:center"] { flex-direction: column !important; align-items: center !important; }
    .section-primary .btn-lg,
    .section-dark .btn-lg { width: 100% !important; max-width: 320px; justify-content: center; }

    /* Guarantee section */
    .section-primary h2 { font-size: 24px !important; }
    .section-primary p { font-size: 15px !important; }

    /* Payment methods — stack */
    .payment-methods { flex-direction: column; align-items: center; }
    .payment-method { width: 100%; max-width: 320px; }

    /* Team cards — 2 per row */
    .team-avatar { width: 70px; height: 70px; font-size: 24px; }

    /* Testimonial cards */
    .testimonial-card blockquote { font-size: 13px; }

    /* Comparison table inside section with inline styles */
    .section [style*="grid-template-columns"] .card,
    .section [style*="grid-template-columns"] [style*="border-radius:16px"] { padding: 20px !important; }

    /* Key advantage big numbers */
    [style*="font-size:48px"] { font-size: 32px !important; }
}

/* ============ MOBILE MENU — OPEN STATE ============ */
.nav.nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    z-index: 999;
    gap: 4px;
    max-height: 80vh;
    overflow-y: auto;
}
.nav.nav-open a,
.nav.nav-open .dropdown {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    width: 100%;
}
.nav.nav-open a:hover,
.nav.nav-open .dropdown:hover { background: var(--gray-bg); }
.nav.nav-open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: auto;
}
.nav.nav-open .nav-cta {
    background: var(--accent) !important;
    color: white !important;
    text-align: center;
    border-radius: 50px !important;
    margin-top: 8px;
}
.nav.nav-open .nav-login {
    text-align: center;
    margin-top: 4px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
