:root {
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --dark: #0f1113;
    --dark-grey: #1a1d21;
    --light-grey: #e9ecef;
    --white: #ffffff;
    --accent: #00d2ff;
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --container-width: 1100px;
}

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

html, body {
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Asset Recovery & Alignment Fixes */
img, .icon, .solution-img, .logo-img-wrapper img {
    display: block !important;
    max-width: 100% !important;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.icon {
    display: inline-block !important; /* Icons should be inline-block */
    line-height: 1;
}

/* Compatibility Layer for External Embeds & DevTools */
.cal-inline, 
.cal-element-embed-dark,
#my-cal-inline-szybki,
iframe[src*="cal.com"] {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    max-width: 100vw !important;
}

a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle {
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation & Header Locking */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(15, 17, 19, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.logo-img-wrapper {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    overflow: hidden;
    margin-right: 12px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s transform, 0.3s box-shadow;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-small {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(0, 210, 255, 0.05), transparent 30%);
    text-align: center;
    width: 100%;
    max-width: 100vw;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background-color: var(--dark-grey);
}

.problem h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.problem-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 123, 255, 0.3);
}

.problem-item .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.problem-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.problem-item p {
    color: var(--text-muted);
}

/* Solution Section */
.solution {
    padding: 100px 0;
}

.solution-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.solution-text {
    flex: 1;
    min-width: 300px;
}

.solution-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.solution-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.solution-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.ai-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--dark-grey);
    text-align: center;
}

.benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-card {
    padding: 40px;
}

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

/* Demo Section */
.demo {
    padding: 100px 0;
}

.demo-box {
    background: linear-gradient(135deg, var(--dark-grey), var(--dark));
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.demo-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
    flex-wrap: wrap;
}

.demo-chat-window {
    width: 100%;
    max-width: 380px;
    height: 650px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    border: 8px solid #222;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

#voiceflow-chat-container {
    height: 100%;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #ffffff;
}

.demo-benefits-list {
    flex: 1;
    max-width: 500px;
}

.demo-benefits-list h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.demo-benefits-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.demo-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    font-size: 1.5rem;
    background: rgba(0, 123, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact-box {
    max-width: 850px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-box p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.cal-container {
    width: 100%;
    height: 800px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 15px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cal-container > iframe, 
.cal-container > div {
    max-width: 100% !important;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--dark-grey);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 2.8rem; }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .solution-wrapper { 
        flex-direction: column; 
        gap: 40px;
        text-align: center;
    }

    .problem-grid, .benefits-grid { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    .cal-container { height: 600px; }
    
    .benefits { padding: 60px 0; }
    .benefits h2 { font-size: 1.8rem; margin-bottom: 30px; }
    .benefit-card { padding: 20px; }
    .benefit-card h3 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .logo { font-size: 1.2rem; }
    .demo-chat-window { height: 500px; }
    .demo-box { padding: 40px 20px; }
    .problem-item { padding: 30px 20px; }
    .container { padding: 0 15px; }
    
    .benefits h2 { font-size: 1.6rem; }
    .benefit-card h3 { font-size: 2rem; }
    .benefits p[style*="margin-top: -40px"] { margin-top: 0 !important; margin-bottom: 20px !important; }
}
