:root {
    --primary: #334155;
    --primary-dark: #1e293b;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f1f5f9;
    --accent: #f59e0b; /* Laser Orange */
    --green: #10b981;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --metallic-bg: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    --metallic-glass: rgba(255, 255, 255, 0.7);
    --shadow-metallic: 0 10px 15px -3px rgba(15, 23, 42, 0.2);
    --blueprint-line: rgba(51, 65, 85, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
    background-image: 
        linear-gradient(var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure footer sticks to bottom if content is short */
.site-footer {
    margin-top: auto;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nav */
nav.main-nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 3px var(--accent-glow));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Legal Documents Styling */
.terms-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.8;
    color: #334155;
    text-align: left;
    counter-reset: terms-section;
}

.terms-content h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.terms-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    counter-increment: terms-section;
}

.terms-content h3::before {
    content: counter(terms-section) ". ";
}

.terms-content h4 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 1.25rem;
}

.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.terms-content .text-muted {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: block;
}

.terms-content .alert-info {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    color: #0369a1;
}

.terms-content strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .terms-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Section Components */
.section-divider {
    border-bottom: 1px solid #e2e8f0;
    padding: 8rem 0;
}

.badge-accent {
    background: var(--accent);
}

.badge-developer {
    background: #6366f1;
}

.badge-offline {
    background: #136834;
}

.feature-grid-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 4rem;
    align-items: start;
    margin-top: 4rem;
}

.feature-card-flat {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    text-align: left;
}

.feature-card-desc {
    color: var(--secondary);
    margin-bottom: 2rem;
    text-align: left;
}

.icon-accent {
    color: var(--accent);
}

.icon-primary {
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}



/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--primary);
    transition: all 0.2s;
}

.dropdown-btn:hover {
    background: var(--light);
    border-color: var(--secondary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(0.5rem);
    background-color: white;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1.5rem; /* Increased bridge height */
    left: -2rem;  /* Wide buffer to the left */
    right: -2rem; /* Wide buffer to the right */
    bottom: 0;
    height: calc(100% + 1.5rem);
    z-index: -1;   /* Place behind actual content */
}

/* Ensure the bridge stays active when moving diagonally */
.dropdown {
    padding-bottom: 0.5rem; /* Small padding at bottom to bridge gap */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a, .dropdown-content button {
    color: var(--dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.dropdown-content a:hover, .dropdown-content button:hover {
    background-color: var(--light);
    color: var(--accent);
}

.vertical-divider {
    width: 1px;
    height: 1.25rem;
    background: #e2e8f0;
    margin: 0 0.25rem;
}

/* Flag icons adjustment */
.fi {
    border-radius: 2px;
    display: inline-block;
    width: 1.33333333em;
    line-height: inherit;
    vertical-align: middle;
}

/* User Icon */
/* Footer */
.site-footer {
    background: #f8fafc;
    color: var(--dark);
    padding: 5rem 0 3rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9375rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list li a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-list li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-section p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a:hover {
        transform: none;
    }
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 350px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none; /* Allow clicking through container gap */
}

.flash {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.3s ease-out forwards;
    pointer-events: auto; /* Re-enable for the actual message */
    backdrop-filter: blur(8px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash.success { background-color: rgba(220, 252, 231, 0.9); color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background-color: rgba(254, 226, 226, 0.9); color: #991b1b; border: 1px solid #fecaca; }
.flash.info { background-color: rgba(224, 242, 254, 0.9); color: #075985; border: 1px solid #bae6fd; }

.flash-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: currentColor;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 1rem;
}

.flash-close-btn:hover {
    opacity: 1;
}

/* Hero */
 /* Hero */
        .hero {
            padding: 14rem 0;
            text-align: center;
            background: 
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
                linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
            border-bottom: 1px solid #94a3b8;
            margin-bottom: 6rem;
            position: relative;
            overflow: hidden;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            box-shadow: 0 0 15px var(--accent);
            opacity: 0.8;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: 
                linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
            background-size: 30px 30px;
            mask-image: radial-gradient(circle at center, black, transparent 85%);
            opacity: 1;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 2rem;
            line-height: 1.1;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            color: var(--dark);
            position: relative;
            text-shadow: 0 1px 1px rgba(255,255,255,0.8);
        }

        .hero p {
            font-size: 1.35rem;
            color: var(--secondary);
            max-width: 700px;
            margin: 0 auto 3rem;
            line-height: 1.5;
            position: relative;
        }

        .btn {
            display: inline-block;
            padding: 1rem 2.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,0.1);
        }

        .btn-primary {
            background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
            color: #000;
            border: 1px solid #d97706;
            position: relative;
            box-shadow: 0 4px 6px -1px var(--accent-glow);
        }

        .btn-primary:hover {
            background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px var(--accent-glow);
        }

        /* Hero choice cards */
        .hero-options-container {
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1.5rem;
            padding: 2.5rem;
            margin-top: 3.5rem;
            border: 1px solid rgba(148, 163, 184, 0.2);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: inline-block;
            max-width: 1000px;
        }
        .hero-options-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 2rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-align: center;
            position: relative;
        }
        .hero-options-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: var(--accent);
        }
        .hero-choices { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; align-items: stretch; padding-bottom: 1rem; }
        .hero-card {
            display:flex;
            flex-direction: column;
            width:350px;
            padding:1.5rem;
            border-radius:1rem;
            text-decoration:none;
            color:inherit;
            background: #ffffff;
            box-shadow: 0 10px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.1);
            border: 1px solid rgba(15,23,42,0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: left;
            position: relative;
            overflow: hidden;
            flex: 1;
        }
        .hero-card-deployment.web { border-top: 4px solid var(--accent); }
        .hero-card-deployment.desktop { border-top: 4px solid var(--primary); }
        .hero-card-deployment{
            width: 280px;
        }
        .hero-card-col .hero-card-deployment,
        .hero-choices > .hero-card-deployment {
            width: 100%;
        }
        .hero-card:hover { 
            box-shadow: 0 20px 35px -5px rgba(15,23,42,0.25), 0 10px 10px -5px rgba(15,23,42,0.1);
            border-color: var(--accent);
        }
        .hero-card .title { 
            font-weight:700; 
            font-size:1.25rem; 
            margin-bottom:1rem; 
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            text-align: center;
        }
        .hero-card .desc { 
            color:var(--secondary); 
            font-size:0.95rem; 
            line-height:1.5;
            text-align: left;
            width: 100%;
        }
            .purchase-info{
        width: 100%;
        margin-top: auto;
        padding-top: 1rem;
        font-weight: bold;
        text-align: center;
    }
        .hero-card-col {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            width: 280px;
            flex: 1;
            max-width: 350px;
        }
        .hero-card-with-tab {
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            border-bottom: none !important;
        }
        .hero-card-app-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            text-decoration: none;
            padding: 0.65rem 1.4rem;
            background: var(--accent);
            border-radius: 0 0 1rem 1rem;
            box-shadow: 0 6px 14px rgba(0,0,0,0.15);
            transition: background 0.2s, box-shadow 0.2s;
        }
        .hero-card-app-link .material-symbols-outlined {
            font-size: 1rem;
        }
        .hero-card-app-link:hover {
            background: #d97706;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }

        .hero-card ul {
            list-style: none;
            padding: 0;
            margin: 1rem 0 0;
            border-top: 1px dashed #e2e8f0;
            padding-top: 0.75rem;
        }

        .hero-card ul li {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            font-size: 0.875rem;
            color: var(--primary-dark);
        }

        .hero-card ul li::before {
            content: 'check_circle';
            font-family: 'Material Symbols Outlined';
            font-size: 1rem;
            color: var(--accent);
            flex-shrink: 0;
            margin-top: 0px;
        }

        .hero-card.api ul li::before { color: #6366f1; }

        .hero-card.api { border-top: 4px solid #6366f1; }
        .hero-card.web { border-top: 4px solid var(--accent); }
        .hero-card.desktop { border-top: 4px solid var(--primary); }
        
        .hero-card i { color: var(--accent); font-size: 1.1rem; }
        .hero-card.api i { color: #6366f1; }
        .hero-card.desktop i { color: var(--primary); }
/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--secondary);
    line-height: 1.6;
}

/* Product Cards */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: -10rem auto 6rem; /* Pull out of hero */
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card .badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card .material-symbols-outlined.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.product-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-card p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: 1px dashed #e2e8f0;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--primary-dark);
    line-height: 1.4;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.product-features li .material-symbols-outlined {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* API & Desktop Mini-Cards */
.sub-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.sub-card {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-align: center;
}

.sub-card:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
}

.sub-card .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Why Section */
.why-section {
    padding: 8rem 0;
    
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1.5rem;
}

.why-item {
    text-align: center;
}

.why-item .material-symbols-outlined {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.why-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.why-item p {
    color: var(--secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero { padding: 6rem 0 12rem; }
    .product-grid { margin-top: -8rem; }
    .why-grid { gap: 2rem; }
}

@media (max-width: 640px) {
    .section-header h2 { font-size: 2rem; }
    .product-grid { grid-template-columns: 1fr; }
    .sub-options { grid-template-columns: 1fr; }
}

.hero {
    padding: 10rem 0 15rem;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
        linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    border-bottom: 1px solid #94a3b8;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
    opacity: 0.8;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black, transparent 85%);
    opacity: 1;
}

.features-section {
    padding-bottom: rem;
    
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    padding: 2.5rem 2rem;
            background: rgba(226, 232, 240, 0.8);
            backdrop-filter: blur(5px);
            border-radius: 1rem;
            border: 1px solid #cbd5e1;
            box-shadow: inset 0 1px 1px white, 0 4px 6px -1px rgba(0,0,0,0.05);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 0 15px rgba(245, 158, 11, 0.1);
}

.badge{
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Visualization Box */
.viz-container {
    background: #0f172a;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    border: 1px solid #334155;
    height: 440px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viz-frame {
    width: 90%;
    height: 80%;
    border: 1px dashed #334155;
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, transparent 100%);
}

.viz-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent);
}

.viz-corner-tl { top: -2px; left: -2px; border-top: 3px solid; border-left: 3px solid; }
.viz-corner-br { bottom: -2px; right: -2px; border-bottom: 3px solid; border-right: 3px solid; }

.viz-shape {
    position: absolute;
    border: 1.5px dashed var(--accent);
    opacity: 0.35;
}

.viz-rect { top: 20%; left: 15%; width: 140px; height: 100px; }
.viz-circle { top: 50%; left: 55%; width: 90px; height: 90px; border-radius: 50%; }

.viz-label {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.6;
    background: rgba(15, 23, 42, 0.8);
    padding: 2px 4px;
}

.viz-scanner {
    width: 100%;
    height: 2.5px;
    background: var(--accent);
    position: absolute;
    top: 0;
    box-shadow: 0 0 20px var(--accent);
    opacity: 0.5;
    animation: scan-line 4s linear infinite;
    z-index: 5;
}

.viz-telemetry {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
}

.viz-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

@keyframes scan-line {
    0% { top: 0; }
    100% { top: 100%; }
}

/* API Grid */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.api-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.api-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
}

.api-feature-card.highlight {
    transform: scale(1.05);
    z-index: 2;
}

.api-feature-card .material-symbols-outlined {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.api-feature-card .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.api-feature-card .price {
    width: 100%;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0.5rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.api-feature-card .price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--secondary);
}

.api-feature-card .list-check {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    flex-grow: 1;
}

.api-feature-card .list-check li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.api-feature-card .list-check li > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.api-feature-card .list-check li .maintenance-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--secondary);
}

.api-feature-card .maintenance-info {
    font-size: 0.85rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px dashed #e2e8f0;
}

.api-feature-card .maintenance-info strong {
    color: var(--primary);
    display: block;
    font-size: 0.95rem;
}

.api-feature-card .maintenance-info .maintenance-price {
    color: var(--secondary);
    display: block;
    margin-top: 0.15rem;
}

.api-feature-card .card-action {
    margin-top: auto;
    padding-top: 1rem;
}

/* Button Refinement */
.api-feature-card .btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.api-feature-card .btn-primary {
    background: var(--green);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.api-feature-card .btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.api-feature-card .btn-outline {
    border: 2px solid #e2e8f0;
    background: transparent;
    color: var(--secondary);
}

.api-feature-card .btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.api-feature-card .card-action .btn {
    width: 100%;
    padding: 0.75rem;
}

/* Plan Specific Colors */
.api-feature-card.bronze { border-top: 4px solid #cd7f32; }
.api-feature-card.silver { border-top: 4px solid #c0c0c0; }
.api-feature-card.gold { border-top: 4px solid #ffd700; }

.api-feature-card.accent { border-top: 4px solid var(--accent); }
.api-feature-card.accent .material-symbols-outlined, 
.api-feature-card.accent .price { color: var(--accent); }

.api-feature-card.primary { border-top: 4px solid var(--primary); }
.api-feature-card.primary .material-symbols-outlined, 
.api-feature-card.primary .price { color: var(--primary); }

.api-feature-card.dark { border-top: 4px solid #1e293b; }
.api-feature-card.dark .material-symbols-outlined, 
.api-feature-card.dark .price { color: #1e293b; }

.api-feature-card.green { border-top: 4px solid #10b981; }
.api-feature-card.green .material-symbols-outlined, 
.api-feature-card.green .price { color: #10b981; }

.api-feature-card.green .card-badge { background: #10b981; color: white; }
.api-feature-card.primary .card-badge { background: var(--primary); color: white; }

.api-feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.api-feature-card p {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.6;
}

.desktop-box {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    padding: 3rem;
    border-radius: 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.list-check {
    list-style: none;
    padding: 0;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--primary-dark);
}

.list-check li .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--accent);
    margin-top: 0.15rem; /* Slight offset to align with first line of text */
    flex-shrink: 0;
}


        


.feature-item .material-symbols-outlined {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-item p {
    color: var(--secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 8rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--dark);
    position: relative;
    text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.hero p {
    font-size: 1.35rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--light);
    color: var(--dark);
}

.btn-primary {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    border: 1px solid #d97706;
    position: relative;
    box-shadow: 0 4px 6px -1px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-nest {
    background: #6366f1;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-nest:hover {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

/* Hero choice cards */
.hero-options-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-top: 3.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: inline-block;
    max-width: 1000px;
}

.hero-options-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Auth Forms Styling */
.auth-container {
    max-width: 450px;
    margin: 4rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-metallic);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 1.875rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.auth-header p {
    color: var(--secondary);
    font-size: 0.9375rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem !size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.auth-btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.auth-btn-primary:hover {
    background: #f59e0b;
    filter: brightness(1.1);
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--secondary);
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.auth-error {
    background: #fff1f2;
    border: 1px solid #fda4af;
    color: #be123c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    cursor: pointer;
}

.terms-checkbox input {
    margin-top: 0.25rem;
}

.terms-checkbox span {
    font-size: 0.875rem;
    color: var(--secondary);
    line-height: 1.4;
}

.terms-checkbox a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* Code input styling */
.code-input-wrapper {
    margin: 2rem 0;
}

.code-input {
    text-align: center;
    font-size: 2.5rem !important;
    letter-spacing: 0.75rem;
    font-weight: 800 !important;
    height: 4.5rem !important;
    color: var(--dark);
}

.error-block {
    background-color: white !important;
    margin-top: 5rem;
    margin-bottom: 5rem;
    border-radius: 20px;
    border: 1px solid #f87171;
    color: #b91c1c;
    padding: 1rem;
}
