:root {
    /* Colors */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --secondary: #171717;
    --accent: #f59e0b;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(23, 23, 23, 0.9);
    --bg-glass: rgba(2, 6, 23, 0.8);
    --text-white: #fafafa;
    --text-gray: #a3a3a3;
    
    /* Borders & Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --container-max: 1200px;
    --section-gap: 8rem;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

main {
    padding-top: var(--nav-height); /* Global clearing for fixed header */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    letter-spacing: -0.2px;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #050505 !important; /* High contrast for professional look */
    padding: 0.75rem 1.75rem;
    border-radius: 8px; /* Slightly sharper but still soft for modern feel */
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Removed underline */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.icon-m-r {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 12rem 0 var(--section-gap);
    text-align: center;
}

.hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Demos Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-gray);
}

/* Search Styles */
.search-container {
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 5;
    transition: var(--transition);
}

.search-box input {
    width: 100%;
    padding: 1.1rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-box input:focus + .search-icon {
    color: var(--primary);
}

.search-clear {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-gray);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-clear i {
    width: 14px !important;
    height: 14px !important;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
}

.no-results i {
    width: 48px;
    height: 48px;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: var(--section-gap);
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.demo-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.demo-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.demo-card:hover .demo-image img {
    transform: scale(1.1);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.demo-card:hover .demo-overlay {
    opacity: 1;
}

.btn-visit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-white);
    color: var(--secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.demo-info {
    padding: 1.5rem;
}

.demo-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.demo-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.demo-tags {
    display: flex;
    gap: 0.5rem;
}

.demo-tags span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Order Section */
.order {
    padding: 6rem 0;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 1.5rem;
}

.order-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.order-info p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.features i {
    color: var(--primary);
    width: 20px;
}

.order-form-box {
    background: rgba(2, 6, 23, 0.4);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.h-captcha {
    margin-bottom: 1.5rem;
}

.btn-submit {

    width: 100%;
    background: var(--primary);
    color: #050505;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

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

.footer-content p {
    color: var(--text-gray);
}

.footer-bottom {
    display: flex;
    gap: 2rem;
}

.footer-bottom a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--text-white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .order-container {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 6rem 0 4rem; /* 6rem + global main padding ensures plenty of space */
        min-height: auto;
        display: block;
        text-align: center;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.15rem; /* Slightly smaller for better fit on narrow screens */
        line-height: 1.1;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0 1.5rem;
        max-width: 400px;
        margin: 0 auto 4rem; /* Added margin bottom for spacing */
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .order-container {
        padding: 1.5rem;
        gap: 2.5rem;
    }

    .order-info h2 {
        font-size: 2rem;
        text-align: left;
        max-width: 500px;
        margin: 0 auto 1.5rem;
    }

    .order-info p {
        text-align: left;
        max-width: 500px;
        margin: 0 auto 2rem;
    }


    .features {
        margin: 0 0 2rem 0;
        text-align: left;
    }


    .features li {
        justify-content: flex-start;
    }

    .order-form-box {
        padding: 2.5rem 1.5rem;
    }

    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 3rem; /* Extra space from the form above */
    }

    .footer-bottom {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .order-container {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .order-form-box {
        padding: 2rem 1.25rem;
        border-radius: 1rem;
    }


    .h-captcha {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 1rem;
    }
}
/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.modal-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.modal-close {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.modal-close:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.modal-body {
    flex-grow: 1;
    position: relative;
    background: white; /* Contrast for the content */
}

.modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: var(--text-white); /* Ensure fallback background */
}

/* Fix for btn-visit if it's a button now */
button.btn-visit {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
