:root {
    --bg-color: #0a0a0f;
    --text-color: #ffffff;
    --accent-color: #00d4ff;
    --purple-accent: #bf5af2;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 15, 20, 0.7);
    --brand-gradient: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 40%, #d946ef 100%);
    --muted-text-color: rgba(255, 255, 255, 0.6);
    --subtle-text-color: rgba(255, 255, 255, 0.5);
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-strong-color: rgba(15, 15, 20, 0.9);
    --surface-hover-color: rgba(255, 255, 255, 0.15);
    --link-color: #00d4ff;
    --footer-color: rgba(255, 255, 255, 0.4);
    --overlay-color: rgba(0, 0, 0, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --hero-title-gradient: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
}

body[data-theme='light'] {
    --bg-color: #f5f7fb;
    --text-color: #111827;
    --accent-color: #0066ff;
    --purple-accent: #8b5cf6;
    --border-color: rgba(15, 23, 42, 0.12);
    --card-bg: rgba(255, 255, 255, 0.82);
    --muted-text-color: rgba(17, 24, 39, 0.68);
    --subtle-text-color: rgba(17, 24, 39, 0.56);
    --surface-color: rgba(255, 255, 255, 0.82);
    --surface-strong-color: rgba(255, 255, 255, 0.92);
    --surface-hover-color: rgba(255, 255, 255, 0.98);
    --link-color: #0066ff;
    --footer-color: rgba(15, 23, 42, 0.5);
    --overlay-color: rgba(15, 23, 42, 0.45);
    --shadow-color: rgba(15, 23, 42, 0.12);
    --hero-title-gradient: linear-gradient(180deg, #111827 0%, rgba(17, 24, 39, 0.72) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn {
    min-width: 92px;
    height: 33px;
    padding: 0 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted-text-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
    background: var(--surface-hover-color);
    color: var(--text-color);
}

.theme-toggle-btn .theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

/* Ambient Background */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.05), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(191, 90, 242, 0.05), transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 20px;
}

.hero-section {
    text-align: center;
    margin-bottom: 100px;
}

.hero-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.0rem, 6.4vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--subtle-text-color);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.features-grid.row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.features-grid.row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: color-mix(in srgb, var(--border-color) 60%, var(--text-color) 40%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-thumbnail {
    width: 100%;
    aspect-ratio: 400 / 248;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--surface-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.feature-card:nth-child(even) .feature-icon-wrapper {
    color: var(--purple-accent);
}

.feature-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 1rem;
    color: var(--muted-text-color);
    margin-bottom: 25px;
    font-weight: 300;
    flex-grow: 1;
}

.badge-soon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    color: var(--subtle-text-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-color);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.feature-link:hover {
    gap: 12px;
    text-decoration: underline;
}

/* Fixed UI Buttons */
.contact-btn,
.home-btn {
    position: fixed;
    right: 25px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: var(--surface-strong-color);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--muted-text-color);
    text-decoration: none;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.contact-btn {
    bottom: 25px;
}

.home-btn {
    bottom: 85px;
}

.contact-btn:hover,
.home-btn:hover {
    background: var(--surface-hover-color);
    transform: scale(1.1) translateY(-2px);
    color: var(--text-color);
    border-color: color-mix(in srgb, var(--border-color) 60%, var(--text-color) 40%);
}

.footer {
    text-align: center;
    padding: 50px 20px 30px;
    color: var(--footer-color);
    font-size: 0.85rem;
    width: 100%;
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-color);
    margin-top: 100px;
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    header nav {
        display: none;
    }

    .hero-section {
        margin-bottom: 60px;
    }

    .features-grid,
    .features-grid.row-2,
    .features-grid.row-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .contact-btn,
    .home-btn {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .home-btn {
        right: 74px;
        bottom: 20px;
    }
}

/* CTA Section Styling */
.cta-container {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.cta-form {
    display: flex;
    gap: 12px;
    background: var(--surface-color);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    outline: none;
    width: 100%;
}

.cta-input::placeholder {
    color: color-mix(in srgb, var(--text-color) 30%, transparent 70%);
}

.cta-button {
    background: var(--brand-gradient);
    border: none;
    padding: 0 30px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.bottom-cta-section {
    margin-top: 100px;
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1), transparent 70%);
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

.bottom-cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-color);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.modal-close:hover {
    background: var(--surface-hover-color);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

#creator-video,
#domain-video {
    aspect-ratio: 1978 / 1872;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.modal-content p {
    font-size: 1rem;
    color: var(--muted-text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    background: var(--brand-gradient);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal-link:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.modal-go-btn {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 40px;
    background: var(--brand-gradient);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.modal-go-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-height: 90vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-image {
        aspect-ratio: 400 / 248;
        max-height: none;
    }
}

.demo-video-section {
    max-width: 1000px;
    margin: -30px auto 100px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.demo-video-wrapper {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    background: #000;
    aspect-ratio: 1980 / 1824;
    position: relative;
}

.demo-video-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--brand-gradient);
    z-index: -1;
    border-radius: 34px;
    opacity: 0.3;
    filter: blur(8px);
}

.demo-video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Mobile adjustments for Hero Section H1 (Reduced by 20%) and upper spacing */
@media (max-width: 768px) {
    main {
        padding-top: 40px !important;
    }

    .hero-section h1 {
        font-size: clamp(1.6rem, 5vw, 2.8rem);
    }
}