/* Kdots B2B SaaS Design System - Premium Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-dark-slate: #0f172a;
    
    --text-navy: #0f172a;
    --text-gray: #475569;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --secondary: #7c3aed;
    --secondary-light: #f5f3ff;
    
    --accent: #10b981;
    --accent-light: #ecfdf5;
    
    --border-color: #e2e8f0;
    --border-color-hover: #bfdbfe;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #10b981 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header & Glass Nav */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-navy);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--text-white) !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--primary-glow);
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-navy) !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

/* Hero Section & Slider */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 45%),
                var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    min-height: 550px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.slide-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-navy);
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 36px;
    max-width: 600px;
}

.slide-buttons {
    display: flex;
    gap: 16px;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* SVG Hero Graphics */
.slide-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-graphic-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(15, 23, 42, 0.08));
}

.svg-glow-circle {
    animation: float 6s ease-in-out infinite alternate;
}

.svg-bars rect {
    animation: bar-grow 2s ease-in-out infinite alternate;
    transform-origin: bottom;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes bar-grow {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product Section */
.products-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-md);
}

.product-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: var(--primary);
    color: var(--bg-white);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-card-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.product-card-link:hover {
    color: var(--secondary);
}

/* AI Voice Agent Section */
.ai-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.ai-details h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.ai-details p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.ai-features-list {
    list-style: none;
}

.ai-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 500;
    color: var(--text-navy);
}

.ai-features-list li svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Call Simulator Dashboard styling */
.simulator-widget {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.bot-status h4 {
    font-size: 0.95rem;
    color: var(--text-navy);
}

.bot-status span {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.simulator-screen {
    height: 240px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.sim-message {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.sim-message.bot {
    background: var(--bg-light);
    color: var(--text-navy);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.sim-message.user {
    background: var(--primary-light);
    color: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.simulator-controls {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.sim-input {
    flex-grow: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-navy);
    padding: 12px 16px;
    outline: none;
    font-size: 0.9rem;
}

.sim-input:focus {
    border-color: var(--primary);
}

.sim-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.sim-send-btn:hover {
    background: #1d4ed8;
}

/* Integrations / PBX Configuration Section */
.compatibility-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.config-tabs-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.config-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.config-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.config-tab-btn:hover {
    color: var(--text-navy);
    background: var(--bg-light);
}

.config-tab-btn.active {
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.config-tab-content {
    display: none;
}

.config-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.config-tab-content h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.config-tab-content p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

pre {
    background: var(--bg-dark-slate);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #38bdf8; /* cyan-like */
    margin-bottom: 20px;
}

code {
    font-family: inherit;
}

.config-tab-content ul {
    list-style: none;
    padding-left: 0;
}

.config-tab-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.config-tab-content ul li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
}

.stars {
    color: #f59e0b; /* amber */
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
}

.author-meta h5 {
    font-size: 0.95rem;
    color: var(--text-navy);
}

.author-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact / Enquiry Form */
.enquiry-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-navy);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

select option {
    background: var(--bg-white);
    color: var(--text-navy);
}

/* Footer styling */
footer {
    background: var(--bg-dark-slate);
    color: #94a3b8;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--primary);
}

footer p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.8rem;
    color: #64748b;
}

/* SEO Location Page Specific Styling */
.seo-hero {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
                var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.seo-hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seo-hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.seo-hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

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

.seo-features {
    padding: 80px 0;
    background: var(--bg-white);
}

.seo-compatibility {
    padding: 80px 0;
    background: var(--bg-light);
}

.seo-nearby-cities {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
}

.seo-nearby-cities h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

.nearby-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.city-link {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.city-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .slide-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slide-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .slide-buttons {
        justify-content: center;
    }
    .slide-graphic {
        display: none;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ai-grid {
        grid-template-columns: 1fr;
    }
    .seo-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .slide-content h1 {
        font-size: 2.2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-wrapper {
        padding: 24px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}
