/* ── Reset & base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #0f172a;
    line-height: 1.6;
}

/* ── CSS Variables for theming ───────────────────────────── */
:root {
    --bg-body: #f8fafc;
    --bg-card: #dadadaa2;
    --bg-nav: #ffffff;
    --bg-footer: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: #e9edf2;
    --input-bg: #fafbfc;
    --shadow: rgba(70, 69, 69, 0.39);
    --badge-bg: #eef2ff;
    --badge-color: #2563eb;
    --step-bg: #f8fafc;
    --faq-bg: #dad7d748;
    --toggle-bg: #e2e8f0;
    --blob-1: #000000;
    --blob-2: #000000;
    --blob-3: #000000;
    --particle-color: #0f0e0e;
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-nav: #1e293b;
    --bg-footer: #0b1120;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-light: #334155;
    --input-bg: #1e293b;
    --shadow: rgba(117, 116, 116, 0.308);
    --badge-bg: #757c8883;
    --badge-color: rgb(230, 223, 223);
    --step-bg: #1e293b;
    --faq-bg: #1e293b;
    --toggle-bg: #334155;
    --blob-1: #dbe0e7;
    --blob-2: #e8e4ec;
    --blob-3: #cfe0e4;
    --particle-color: #b3bec9;
}

/* ── Apply variables ───────────────────────────────────────── */
body {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    background: var(--bg-nav);
    box-shadow: 0 2px 12px var(--shadow);
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    
}
.logo h1 {
    
    font-size:1.8rem;
    font-weight: 1000;
    color: var(--text-primary);
    font-family: serif}
/* .logo-icon img {
    display: block;
} */

.nav-links {
    display: flex;
    align-items: center;
    gap: 5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links li a:hover {
    color: var(--badge-color);
    border-bottom-color: var(--badge-color);
}

.nav-buttons .primary-btn {
    background: #486cda;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.nav-buttons .primary-btn:hover {
    background: #1d4ed8;
}
.nav-buttons .primary-btn:active {
    transform: scale(0.97);
}

/* ── Desktop toggle ───────────────────────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--toggle-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--border-light);
}
.theme-toggle i {
    pointer-events: none;
}

/* ── Mobile toggle ────────────────────────────────────────── */
/* .nav-toggle-mobile {
    display: none;
} */

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
    background: transparent;
    border: none;
    margin-left: 0.5rem;
}
.hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 4rem 2rem 6rem;
    overflow: hidden;
    background: var(--bg-body);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--blob-1);
    top: -120px;
    right: -80px;
}
.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--blob-2);
    bottom: -60px;
    left: -60px;
}
.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--blob-3);
    top: 40%;
    left: 60%;
}
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particles span {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    background: var(--particle-color);
    border-radius: 50%;
    opacity: 0.9;
    animation: float 20s infinite linear;
}
.particles span:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-duration: 18s;
}
.particles span:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-duration: 22s;
}
.particles span:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-duration: 16s;
}
.particles span:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-duration: 24s;
}
.particles span:nth-child(5) {
    top: 20%;
    left: 50%;
    animation-duration: 20s;
}
.particles span:nth-child(6) {
    top: 70%;
    left: 40%;
    animation-duration: 18s;
}
.particles span:nth-child(7) {
    top: 40%;
    left: 30%;
    animation-duration: 22s;
}
.particles span:nth-child(8) {
    top: 90%;
    left: 20%;
    animation-duration: 26s;
}
.particles span:nth-child(9) {
    top: 50%;
    left: 90%;
    animation-duration: 20s;
}
.particles span:nth-child(10) {
    top: 10%;
    left: 70%;
    animation-duration: 24s;
}
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.4;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(40px, 30px) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.hero-logo {
    width: 30vw;
    height: 30vh;
    object-fit: contain;
}
.brand-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--badge-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    margin-bottom: 0.6rem;
}
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
}
.animated-brand {
    color: var(--text-primary);
}
.ai-text {
    color: var(--text-primary);
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.2rem auto 0.6rem;
}
.hero-subdescription {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── How It Works ──────────────────────────────────────────── */
.how-it-works {
    padding: 4rem 2rem;
    background: var(--bg-card);
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.section-subhead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0.4rem auto 0;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.step {
    background: var(--step-bg);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow);
}
.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.step p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    
}

.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.feature-list li::before {
    content: "✔";
    color: var(--text-secondary);
    position: absolute;
    left: 0;
    font-size: 1rem;
    top: 0.6rem;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-body);
}
.faq h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
}
.faq .section-subhead {
    text-align: center;
    margin-bottom: 2.5rem;
}
.faq-item {
    background: var(--faq-bg);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover {
    border-color: var(--text-muted);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}
.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--badge-color);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}
.faq-answer.show {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}
.faq-answer p {
    margin: 0;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact {
    display: flex;
    flex-wrap: nowrap;
    gap: 3rem;
    padding: 5rem 2rem;
    max-width: 1000px;
   border-radius: 10px;
    margin: 5rem auto;
    background: var(--bg-card);
    align-items: center;
    box-shadow: 10px 10px 10px var(--shadow);
}
.contact-left {
    flex: 1 1 280px;
    padding-bottom: 2rem;
}
.contact-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.contact-left p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.4rem;
}
.contact-form {
    flex: 2 1 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1.2rem;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--input-bg);
    outline: none;
    color: var(--text-primary);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--badge-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}
.contact-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}
.contact-form button:hover {
    background: #1d4ed8;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--bg-footer);
    color: #e2e8f0;
   padding: 2.5rem 2rem; 
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo h1 {
   font-size:1.8rem;
    font-weight: 1000;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: serif
}
.footer-left h3 {
    font-weight: 400;
    font-size: 1.5rem;
    color: #8391a5c0;
    font-weight: bold;
    
}
.footer-center p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.footer-center i {
    width: 20px;
    color: #2563eb;
}
.footer-right {
    display: flex;
    gap: 2rem;
}
.footer-right a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: color 0.2s, transform 0.2s;
}
.footer-right a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.61);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
    color: var(--text-primary);
}

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

.login-header {
    text-align: center;
    margin-bottom: 1.8rem;
}
.login-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.login-form .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.login-form .form-group input {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--input-bg);
    outline: none;
    width: 100%;
    color: var(--text-primary);
}
.login-form .form-group input:focus {
    border-color: var(--badge-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: var(--bg-card);
}
.login-form .form-group input::placeholder {
    color: var(--text-muted);
}

.login-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    margin: 0.2rem 0;
}
.login-error.hidden {
    display: none;
}

.modal-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.4rem;
    width: 100%;
}
.modal-btn-primary:hover {
    background: #1d4ed8;
}
.modal-btn-primary:active {
    transform: scale(0.98);
}

.login-footer {
    text-align: center;
    margin-top: 1.4rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.switch-btn {
    background: none;
    border: none;
    color: var(--badge-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.switch-btn:hover {
    background: var(--badge-bg);
    text-decoration: underline;
}

/* .hidden-form {
    display: none !important;
} */

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
    .hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle-mobile {
        display: block;
        width: 100%;
        margin-top: 0.2rem;
    }
    .nav-toggle-mobile .theme-toggle {
        width: 100%;
        border-radius: 10px;
        padding: 0.7rem;
        background: var(--bg-nav);
        border: 1px solid var(--border-light);
        justify-content: center;
        gap: 0.5rem;
        font-size: 1rem;
    }
    .nav-toggle-mobile .theme-toggle i {
        font-size: 1.2rem;
    }
    .nav-toggle-mobile .theme-toggle::after {
        content: "Toggle theme";
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

   .nav-links{
    position:absolute;
    top:80px;
    right:20px;

    width:260px;

    background:var(--bg-nav);

    border-radius:18px;

    box-shadow:0 20px 40px rgba(0,0,0,.15);

    display:flex;
    flex-direction:column;

    padding:20px;

    gap:15px;

    transform:scale(.95);
    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:999;
}
   .nav-links.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
    .nav-links li {
        width: 100%;
    }
    .nav-links li a {
        display: block;
        padding: 0.6rem 0.4rem;
        font-size: 1rem;
        border-left: 3px solid transparent;
        padding-left: 12px;
        border-bottom: none;
    }
    .nav-links li a:hover {
        border-left-color: var(--badge-color);
        background: var(--border-light);
        border-bottom-color: transparent;
    }
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }
    .nav-buttons .primary-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    .hero-logo {
        width: 60px;
        height: 60px;
    }
    .brand-container {
        gap: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
    }
    .contact-form button {
        align-self: stretch;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-center {
        text-align: center;
    }
    .footer-right {
        justify-content: center;
    }
    .footer-logo {
        justify-content: center;
    }
}
.footer-b{
    display: flex;
    justify-content:center;
     background: var(--bg-footer);
     padding-bottom:1rem;
}
.footer-b p{
    color: rgba(255, 255, 255, 0.514);
    font-size:small;
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem 4rem;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .faq h2 {
        font-size: 2rem;
    }
    .contact-left h2 {
        font-size: 1.8rem;
    }
    .modal-content {
        padding: 1.6rem 1.2rem 1.4rem;
        border-radius: 20px;
    }
    .login-header h2 {
        font-size: 1.3rem;
    }
    .login-form .form-group input {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    .modal-btn-primary {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
    .faq-question {
        padding: 1rem 1.2rem;
    }
    .faq-question h3 {
        font-size: 0.95rem;
    }
.footer-bottom {
    max-width: auto;
    margin: 0 ;
    display:flex;
    text-align: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.footer-bottom p {
    font-size: 14px;
    color: #8888a0;
    margin: 0;
}


}

/* ── Utilities ────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

