@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-color: #030303;
    --card-bg: rgba(15, 15, 20, 0.4);
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --secondary-color: #22d3ee;
    --accent-color: #a855f7;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.04);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Border Beam 1:1 Variables */
    --beam-size: 1.5px;
    --beam-duration: 3.5s;
    --beam-tip: #ffffff;
    --beam-lead: #FF00FF;
    --beam-main: #7C3AED;
    --beam-tail: #4F46E5;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 75%);
    top: -300px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

.bg-glow-bottom {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    background: transparent;
    border-bottom: none;
    z-index: 2000;
    display: flex;
    align-items: center;
    transition:
        width 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        max-width 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        top 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-radius 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: navEntry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navEntry {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ===================== SCROLLED (PILL) STATE ===================== */
.main-nav.scrolled {
    width: 50%;
    max-width: 800px;
    height: 58px;
    top: 14px;
    border-radius: 9999px;
    background: rgba(10, 10, 16, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* ---- Horizontal Sweep Effect (Left to Right) ---- */
.main-nav.scrolled::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 9999px;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(49, 46, 122, 0.4) 20%,
        rgba(109, 40, 217, 0.6) 40%,
        rgba(6, 182, 212, 0.8) 60%,
        #ffffff 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: sweep-horizontal 5s linear infinite;
}

/* ---- Horizontal Glow Sweep ---- */
.main-nav.scrolled::after {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: 9999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(49, 46, 122, 0.1) 20%,
        rgba(124, 58, 237, 0.2) 40%,
        rgba(6, 182, 212, 0.3) 60%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: sweep-horizontal 5s linear infinite;
}

@keyframes sweep-horizontal {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Element shrinking on scroll ---- */
.main-nav .logo,
.main-nav .nav-logo-icon,
.main-nav .nav-links a,
.main-nav .btn-login {
    transition: all 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav.scrolled .logo {
    font-size: 1.15rem;
    gap: 6px;
}

.main-nav.scrolled .nav-logo-icon {
    width: 26px;
    height: 26px;
}

.main-nav.scrolled .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.main-nav.scrolled .nav-links a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.main-nav.scrolled .btn-login {
    padding: 0.45rem 1.3rem;
    font-size: 0.82rem;
    border-radius: 999px;
    background: #6d28d9;
    color: #fff;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
}


.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-right {
    display: flex;
    align-items: center;
}

.btn-login {
    background: #6366f1;
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}





.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    filter: brightness(1.1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 10% 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 40%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
}

.image-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.btn-primary {
    padding: 1.1rem 2.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px var(--primary-glow);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    padding: 1.1rem 2.8rem;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Footer Styles */
footer {
    padding: 80px 10% 40px;
    background: #050508;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    margin-left: 2px; /* Precision alignment */
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto 2rem;
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
    }
}

/* Section Styling */
section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(25, 25, 30, 0.8);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.price-card {
    background: #0a0a0f;
    width: 450px;
    padding: 6rem 3rem 4rem; /* Increased top padding for absolute badge */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    border: 2px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

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

.badge {
    position: absolute;
    top: 2rem;
    left: 3rem;
    background: #6366f1;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    width: fit-content;
    letter-spacing: 0.5px;
}

.price-header h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.price-value {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-value span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.featured-benefit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #22d3ee;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.featured-benefit i {
    color: #22d3ee;
}

.price-list {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.price-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.price-list li i.fa-check {
    color: #22d3ee;
    font-size: 0.8rem;
}

.price-btn {
    width: 100%;
    padding: 1.4rem;
    border-radius: 20px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-btn.primary {
    background: #6366f1;
    color: white;
}

.price-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.price-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    nav { padding: 1.2rem 5%; gap: 1rem; }
    .nav-links { display: none; }
    .hero-container { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-content { text-align: center; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; margin-inline: auto; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .hero-image { order: -1; }
}

/* FAQ Styles */
#faq {
    background: #030303;
    padding-bottom: 120px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.faq-question i {
    font-size: 0.9rem;
    color: #8b5cf6;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.active {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: #8b5cf6;
}

/* Legal Page Responsive Fixes */
@media (max-width: 768px) {
    .legal-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
}

/* Logo Icon Styling */
.logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: all 0.4s ease;
}

@keyframes pulseStatus {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}