/* Base styles and variables */
:root {
    --primary-color: #3a86ff;
    --primary-dark: #2667cc;
    --secondary-color: #4361ee;
    --accent-color: #4cc9f0;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --border-radius: 8px;
    --container-width: 1200px;
}

/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gray-200);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 1rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn.primary {
    background-color: white;
    color: var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Features section */
.features {
    background-color: white;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Smart Routing section */
.smart-routing {
    background-color: var(--gray-100);
    padding: 5rem 0;
}

.smart-routing .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.smart-routing-content {
    flex: 1;
}

.smart-routing-content h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.smart-routing-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .form-coming-soon {
        flex-direction: column;
        width: 100%;
    }
    
    .form-coming-soon input {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    .form-coming-soon button {
        width: 100%;
    }
    
    .benefits-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .benefit-card {
        width: 100%;
    }
}

.routing-features {
    list-style: none;
    padding: 0;
}

.routing-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-bullet {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.75rem;
}

.smart-routing-image {
    flex: 1;
}

.placeholder-image {
    background-color: var(--gray-300);
    height: 350px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-style: italic;
    box-shadow: var(--shadow-md);
}

.wire-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1500 / 1080;
    background-color: var(--gray-800);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.wire-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--gray-800);
    border-radius: var(--border-radius);
}

@media (max-width: 992px) {
    .smart-routing .container {
        flex-direction: column;
    }
    
    .smart-routing-content, 
    .smart-routing-image {
        width: 100%;
    }
}

/* Demo section */
.demo {
    background-color: var(--gray-100);
    text-align: center;
}

.video-container {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--gray-800);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background-color: var(--gray-800);
    border-radius: var(--border-radius);
}

.placeholder-content {
    color: white;
    text-align: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

.play-button svg {
    width: 30px;
    height: 30px;
}

.play-button:hover {
    background-color: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.play-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.5);
}

.play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Early Access section */
.early-access {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.early-access-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.benefits-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.benefit-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.benefit-card .benefit-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
}

.benefit-card .benefit-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.benefit-card .benefit-text p {
    line-height: 1.5;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .benefits-row {
        flex-direction: column; /* Zmieniamy na układ kolumnowy na telefonie */
    }
    
    .benefit-card {
        padding: 1.5rem;
        width: 100%; /* Zapewniamy pełną szerokość */
    }
    
    .benefit-card .benefit-icon {
        font-size: 2rem;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .benefits-row {
        gap: 1rem;
    }
    
    .benefit-card .benefit-text h4 {
        font-size: 1rem;
    }
    
    .benefit-card .benefit-text p {
        font-size: 0.9rem;
    }
}

.newsletter-signup {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    color: var(--gray-800);
}

.newsletter-signup h3 {
    color: var(--dark-color);
}

.newsletter-signup form,
.form-coming-soon {
    display: flex;
    margin: 1.5rem 0;
}

.newsletter-signup input,
.form-coming-soon input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-coming-soon input:disabled,
.form-coming-soon button:disabled {
    background-color: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
    opacity: 0.7;
}

.newsletter-signup input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-signup button {
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.newsletter-signup button:hover {
    background-color: var(--primary-dark);
}

.form-note {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--gray-900);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
}

.footer-logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn.secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .video-placeholder {
        height: 300px;
    }
    
    .cta-buttons {
        display: none;
    }
    
    .video-container video {
        object-fit: contain;
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .newsletter-signup form {
        flex-direction: column;
    }
    
    .newsletter-signup input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter-signup button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 576px) {
    nav {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links li {
        margin: 0 0.5rem;
    }
    
    .benefit {
        flex-direction: column;
    }
    
    .benefit-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}
