/* Google Fonts Setup happens in HTML */
:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Light section colors */
    --light-bg: #ffffff;
    --light-bg-alt: #f8faff;
    --light-text: #1a202c;
    --light-text-muted: #64748b;
    --light-border: rgba(99, 102, 241, 0.12);
    --light-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Reusable Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.gradient-bg {
    background: var(--primary-gradient);
    position: relative;
    z-index: 1;
}

.gradient-bg.reverse {
    background: var(--light-bg-alt);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff; /* default white for dark/gradient sections */
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

p {
    color: var(--text-muted);
}

span.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* Badge in hero must always be white */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-border);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

/* Nav links turn dark on white navbar */
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--light-text);
}
.navbar.scrolled .nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Logo text turns dark on white navbar */
.navbar.scrolled .logo a {
    color: var(--light-text);
}
.navbar.scrolled .logo span {
    color: var(--primary-color);
}

/* Btn adapts on white navbar */
.navbar.scrolled .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.navbar.scrolled .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Burger lines turn dark */
.navbar.scrolled .mobile-menu-btn span {
    background: var(--light-text);
}

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

.logo { display: flex; align-items: center; }
.logo a {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    color: #ec4899;
}

.logo-wrapper {
    background: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.img-logo {
    height: 120%;
    width: 120%;
    object-fit: contain;
    transform: translate(2px, 1px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: #ec4899;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ec4899;
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: -50px;
    left: -100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Mockup */
.mockup-frame {
    background: #ffffff;
    border-radius: 40px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
    display: inline-block;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.main-mockup {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    mix-blend-mode: multiply;
}

/* Utilities */
.remove-bg {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Layout Utilities */
.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.align-center { align-items: center; }

/* ===== LIGHT SECTIONS (below the hero) ===== */

/* Features */
.features {
    background: var(--light-bg);
}

/* Override heading colors for light sections */
.features h2, .features h3,
.dual-section h2, .dual-section h3, .dual-section h4,
.footer h2, .footer h3 {
    color: var(--primary-color);
}

.section-title { margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-title h2 { color: var(--primary-color); }
.section-title p { color: var(--light-text-muted); }

.feature-card {
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--light-border);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Icon wrapper — clean line style, no gradient background */
.icon-wrapper {
    width: 58px;
    height: 58px;
    background: var(--primary-light, #e8f0fe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--primary-color);
    border: 1px solid var(--light-border);
    transition: background 0.3s, box-shadow 0.3s;
}

.feature-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.icon-wrapper svg {
    flex-shrink: 0;
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.4rem; color: var(--light-text); }
.feature-card p { color: var(--light-text-muted); }

/* How It Works */
.how-it-works {
    background: var(--light-bg);
}

/* Step Cards */
.step-card {
    background: #fff;
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.13);
}

.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--light-text) !important;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-card p {
    color: var(--light-text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ===== Download Section ===== */
.download-section {
    background: linear-gradient(135deg, #2a3f9e 0%, #1a237e 100%);
    padding: 70px 0;
}

.download-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.download-left h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1.25;
}

.download-left > p {
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    max-width: 440px;
    font-size: 1rem;
}

.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dl-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: #fff;
    transition: background 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.dl-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.dl-btn .dl-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dl-btn .dl-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.download-right {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(10px);
}

.download-right h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.download-right p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    font-size: 0.97rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.05em;
}

.lang-btn.active,
.lang-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .lang-btn {
    color: var(--text-muted);
}
.navbar.scrolled .lang-btn.active,
.navbar.scrolled .lang-btn:hover {
    color: var(--primary-color);
    background: var(--primary-light, #e8f0fe);
}

.lang-divider {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}
.navbar.scrolled .lang-divider {
    color: var(--light-border);
}

/* Step Cards */
.step-card {
    background: #fff;
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.step-card .step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.step-card h4 {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--light-text-muted);
    font-size: 0.95rem;
}

/* Roadmap & Security */
.dual-section {
    background: var(--light-bg-alt);
}

.roadmap-content h2 { color: var(--primary-color); }
.roadmap-content p { color: var(--light-text-muted); }

.roadmap-list { list-style: none; margin-top: 30px; }
.roadmap-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.roadmap-list h4 { color: var(--light-text); margin-bottom: 4px; font-size: 1rem; }
.roadmap-list p { color: var(--light-text-muted); font-size: 0.93rem; }

.roadmap-list .icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--light-border);
    flex-shrink: 0;
}

.security-content {
    padding: 50px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--light-border);
    border-radius: 20px;
    box-shadow: var(--light-shadow);
}

.security-content h2 { color: var(--primary-color); }
.security-content > p { color: var(--light-text-muted); }

.security-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    filter: blur(80px);
    opacity: 0.12;
    z-index: 0;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.badge-outline {
    border: 1.5px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(99, 102, 241, 0.06);
}

/* Footer */
.footer {
    background: var(--light-bg-alt);
    padding: 60px 0 20px;
    border-top: 1px solid var(--light-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo h2 { font-size: 2rem; margin-bottom: 10px; color: var(--primary-color); }
.footer-logo span { color: #4f46e5; }
.footer-logo p { max-width: 300px; color: var(--light-text-muted); }

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 { margin-bottom: 20px; color: var(--primary-color); }
.link-group a {
    display: block;
    color: var(--light-text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.link-group a:hover { color: var(--primary-color); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-border);
    font-size: 0.9rem;
    color: var(--light-text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.debug22-credit {
    font-size: 0.82rem;
    color: var(--light-text-muted);
}

.debug22-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.debug22-credit a:hover {
    text-decoration: underline;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

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

/* ===== Support Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 30px;
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--light-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--primary-color); }

.modal-box h3 {
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    margin-bottom: 4px;
}

.modal-box > p {
    color: var(--light-text-muted);
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid var(--light-border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--light-text);
    background: var(--light-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

/* Honeypot: hidden from humans */
.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.btn-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.support-note {
    font-size: 0.8rem;
    color: var(--light-text-muted);
    background: var(--primary-light, #e8f0fe);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.form-success {
    display: none;
    color: #16a34a;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-title { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--light-border);
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    .nav-links a:not(.btn) { color: var(--light-text); }
    .lang-btn { color: var(--text-muted); }
    .lang-btn.active, .lang-btn:hover { color: var(--primary-color); background: var(--primary-light); }
    .lang-divider { color: var(--light-border); }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 2.2rem; }
}
