:root {
    --primary-color: #0A1E3C;
    --secondary-color: #F5F7F9;
    --accent-color: #FF6B35;
    --text-color: #333;
    --background-color: #fff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
}

[data-theme="dark"] {
    --primary-color: #1E2A3D;
    --secondary-color: #0A1E3C;
    --accent-color: #FF6B35;
    --text-color: #F5F7F9;
    --background-color: #0A1E3C;
    --glass-bg: rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: rgba(10, 30, 60, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 1rem 0;
    box-sizing: border-box;
    transition: background 0.3s;
}

[data-theme="dark"] header {
    background: rgba(30, 42, 61, 0.8);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
    position: relative;
}

nav .logo-container {
    position: absolute;
    left: 2rem;
}

nav .theme-switch-wrapper {
    position: absolute;
    right: 2rem;
}

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

.logo {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    position: relative;
    text-shadow:
        0 0 10px rgba(255, 107, 53, 0.8),
        0 0 20px rgba(255, 107, 53, 0.6),
        0 0 30px rgba(255, 107, 53, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: logo-glow 3s ease-in-out infinite alternate;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 107, 53, 0.8) 20%,
        rgba(255, 107, 53, 0.8) 80%,
        transparent);
}

@keyframes logo-glow {
    from {
        text-shadow:
            0 0 5px rgba(255, 107, 53, 0.6),
            0 0 10px rgba(255, 107, 53, 0.4),
            0 0 15px rgba(255, 107, 53, 0.3);
    }
    to {
        text-shadow:
            0 0 10px rgba(255, 107, 53, 0.9),
            0 0 20px rgba(255, 107, 53, 0.7),
            0 0 30px rgba(255, 107, 53, 0.5);
    }
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 1rem;
    letter-spacing: 0.5px;
    text-shadow:
        0 0 5px rgba(255, 107, 53, 0.5),
        0 0 10px rgba(255, 107, 53, 0.3),
        0 0 15px rgba(255, 107, 53, 0.2);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    nav {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    nav .logo-container {
        position: static;
        order: -1;
        margin-bottom: 0;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 0.15em;
    }

    .logo::after {
        bottom: -2px;
        height: 1px;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }

    nav ul li {
        margin: 0;
    }

    .logo-subtitle {
        display: none;
    }
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    gap: 2rem;
}

nav ul li {
    margin: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    background-color: var(--primary-color);
    overflow: hidden;
    color: #fff;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 107, 53, 0.3);
}

.cta-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
}

.cta-button:hover {
    background-color: #E65A2E;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 6rem 2rem;
    background-color: var(--background-color);
}

.feature {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon svg {
    width: 64px;
    height: 64px;
    color: var(--accent-color);
}

.explainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 6rem 2rem;
    background-color: var(--secondary-color);
}

.explainer-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.explainer-graphic svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.explainer-graphic img {
    max-width: 100%;
    border-radius: 15px;
}

.use-cases {
    padding: 6rem 2rem;
    text-align: center;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    filter: grayscale(100%);
    opacity: 0.6;
    gap: 1rem;
}

.logos span {
    margin: 0.5rem 1rem;
    font-size: 1.5rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logos {
        gap: 0.5rem;
    }

    .logos span {
        font-size: 1rem;
        margin: 0.3rem 0.5rem;
    }
}

.testimonials {
    padding: 6rem 2rem;
    background-color: var(--secondary-color);
    text-align: center;
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.testimonial cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    font-weight: 500;
}

.contact {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
}

.contact h2 {
    font-size: 2.5rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.contact input::placeholder, .contact textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

footer {
    background-color: #0A1E3C;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links, .social-links, .legal-links {
    margin-bottom: 1.5rem;
}

.footer-links a, .social-links a, .legal-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover, .social-links a:hover, .legal-links a:hover {
    opacity: 1;
}

/* Theme Switcher */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input { display: none; }

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Page specific styles */
.features-grid, .use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 6rem 2rem;
}

.feature-item, .use-case-item {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-content, .contact-form {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
}
