/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #3b82f6;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-description .inline-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-description .inline-link:hover {
    color: var(--accent) !important;
    text-decoration: underline;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.secondary-button {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.secondary-button:hover {
    background-color: var(--surface-light);
    border-color: var(--accent);
}

.button-icon {
    font-size: 1.5rem;
}

.hero-screenshot {
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-screenshot .carousel {
    background-color: transparent;
    border: none;
    padding: 0;
}

.hero-screenshot .carousel-slide {
    padding: 0;
}

.hero-screenshot .carousel-slide img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.screenshot-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.hero-screenshot .carousel-dots {
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

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

.feature-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card .inline-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-card .inline-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Instances Section */
.instances-section {
    padding: 6rem 0;
    background-color: var(--surface);
}

.instances-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

.map-container {
    margin: 3rem 0;
}

.map-link {
    display: block;
    text-decoration: none;
}

.map-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.map-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-placeholder h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.instance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Downloads Section */
.downloads {
    padding: 6rem 0;
    background-color: var(--background);
}

.downloads h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.client-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
}

.client-features li {
    background-color: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.client-features li:hover {
    background-color: var(--surface-light);
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.client-features li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background-color: var(--surface);
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.platform-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.download-button {
    background: var(--gradient);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.download-card:hover .download-button {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.download-icon {
    font-size: 1.25rem;
}

/* Carousel Styles */
.client-carousel-container,
.driver-carousel-container {
    margin-top: 4rem;
    padding: 2rem 0;
}

.admin-carousel-container {
    margin-top: 2rem;
    padding: 2rem 0;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-caption {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(37, 99, 235, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(37, 99, 235, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--surface-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.dot:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Build Your Own Section */
.build-your-own {
    padding: 6rem 0;
    background-color: var(--surface);
}

.build-your-own h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.build-your-own h3 {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    text-align: center;
    color: var(--text-primary);
}

.hardware-requirements {
    margin-top: 3rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

.requirement-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.requirement-icon {
    font-size: 3rem;
    margin-bottom: 0.25rem;
}

.requirement-icon-image {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}
.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.requirement-price {
    font-weight: bold;
    color: var(--accent);
    font-size: 1rem;
    white-space: nowrap;
    align-self: flex-start;
}


.requirement-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requirement-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.requirement-card strong {
    color: var(--accent);
    font-weight: 600;
}

.requirement-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.requirement-card ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.requirement-card ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.setup-benefits {
    margin-top: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.benefit-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.setup-instructions {
    margin-top: 4rem;
}

.instructions-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--background);
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
}

.instructions-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.instructions-content .inline-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.instructions-content .inline-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.instructions-content p:last-child {
    margin-bottom: 0;
}

.coming-soon {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.5rem !important;
}

/* Installation Steps */
.installation-steps {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.install-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background-color: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.install-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.install-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.install-step-content {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.install-step-icon {
    flex-shrink: 0;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.install-icon-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.install-step-text {
    flex: 1;
}

.install-step-text h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.install-step-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.install-step-text .inline-link {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.code-block-wrapper {
    position: relative;
    margin-top: 1rem;
}

.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(51, 65, 85, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0.7;
}

.copy-button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: grayscale(0.3);
}

.copy-button:hover .copy-icon {
    filter: grayscale(0);
}

.install-step-text .inline-link:hover {
    color: var(--accent) !important;
    text-decoration: underline;
}

.code-block {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    max-width: 100%;
}

.code-block code {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.inline-code {
    background-color: var(--surface);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

/* Add connecting line between steps */
.install-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 47px;
    bottom: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

@media (max-width: 768px) {
    .install-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .install-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .install-step-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .install-step-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .install-icon-image {
        width: 60px;
        height: 60px;
    }

    .install-step:not(:last-child)::after {
        display: none;
    }

    .install-step:hover {
        transform: translateY(-5px);
    }
}

/* Getting Started Section */
.getting-started {
    padding: 6rem 0;
    background-color: var(--background);
}

.getting-started h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: white;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .features h2,
    .instances-section h2,
    .getting-started h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    nav {
        gap: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .logo {
        height: 40px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Carousel responsive adjustments */
    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-slide {
        padding: 1rem;
    }

    .carousel-caption {
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.stat-number.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
