:root {
    --bg: #0a0f1a;
    --fg: #f2f5f9;
    --accent: #0a84ff;
    --accent2: #14b37d;
    --muted: #9aa6b2;
    --radius: 14px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(180deg, #081120, #0a1624 100%);
    color: var(--fg);
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.brand span {
    font-weight: 800;
    font-size: 22px;
    color: var(--accent);
    letter-spacing: -0.3px;
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

nav a:hover {
    color: var(--fg);
}

.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.1;
    margin: 0;
}

.hero p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.btn {
    text-decoration: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), #0ab0ff);
    color: #fff;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fg);
}

.hero-img {
    border-radius: var(--radius);
    background: #061628;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section {
    padding: 70px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform .2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--accent2);
}

.card p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-img {
        height: 280px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* New Sections Styles */

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    margin-bottom: 15px;
}

.step h3 {
    color: var(--fg);
    margin-bottom: 10px;
    font-size: 18px;
}

.step p {
    color: var(--muted);
    line-height: 1.5;
}

/* Enhanced Mode Cards */
.mode h4 {
    margin: 8px 0 4px 0;
    font-size: 16px;
    color: var(--fg);
    font-weight: 600;
}

.mode p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.3;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.testimonial-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.testimonial h4 {
    color: var(--fg);
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial span {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

/* Enhanced Features Grid for 6 items */
#features .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Modern Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--fg);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg);
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    right: 0;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--fg);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: rgba(10, 132, 255, 0.1);
    color: var(--accent);
}

/* Contact Page Styles */
.contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contact-content {
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container h3 {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--fg);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--fg);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Fix dropdown options styling for dark theme */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f5f9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg);
    color: var(--fg);
    padding: 8px 12px;
}

/* Additional browser-specific fixes */
.form-group select::-ms-expand {
    display: none;
}

/* Firefox specific dropdown styling */
@-moz-document url-prefix() {
    .form-group select option {
        background-color: #0a0f1a;
        color: #f2f5f9;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0056d2);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 132, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.contact-card p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-desc {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.contact-faq {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-faq h3 {
    color: var(--accent);
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 179, 125, 0.3);
}

.faq-item h4 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-item p {
    line-height: 1.6;
    color: var(--muted);
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-item,
    .contact-card {
        padding: 20px;
    }
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1a2e 50%, #16213e 100%);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: var(--bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 80px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.footer-brand {
    padding-right: 20px;
}

.footer-section h4 {
    color: var(--fg);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(10, 132, 255, 0.3));
}

.footer-logo span {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 16px;
}

.footer-stats {
    display: flex;
    gap: 24px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 132, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    position: relative;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--accent);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--muted);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
    border-color: var(--accent);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin: 0 40px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.newsletter-content h4 {
    color: var(--fg);
    margin-bottom: 10px;
    font-size: 20px;
}

.newsletter-content p {
    color: var(--muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--fg);
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.newsletter-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 14px;
}

.footer-tagline-small {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }

    .testimonial-icon {
        font-size: 32px;
    }

    /* Mobile Navigation */
    .nav-dropdown {
        display: none;
    }

    nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 60px 20px 30px;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-stats {
        justify-content: center;
        gap: 16px;
    }

    .footer-stat {
        flex: 1;
        min-width: 80px;
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 16px;
    }

    .footer-newsletter {
        margin: 0 20px;
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-form button {
        width: 100%;
    }

    .footer-bottom {
        padding: 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        transform: none;
    }

    .social-links {
        justify-content: center;
    }
}