/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #1fa8ff;
    /* Your Logo Blue */
    --accent: #00d4bd;
    /* Teal for gradients */
    --text-dark: #1e1e1e;
    --text-gray: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1fa8ff 0%, #1fa8ff 100%);
    --gradient-soft: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);

    /* Shadows - Glassy/Soft Style */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 25px -5px rgba(31, 168, 255, 0.4);

    /* Fonts */
    --font-heading: 'Luckiest Guy', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Dark Mode Variables */
.dark-mode {
    --bg-light: #0f172a;
    --white: #1e293b;
    --text-dark: #f8fafc;
    --text-gray: #94a3b8;
    --gradient-soft: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.dark-mode .glass-nav {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-links a,
.dark-mode .btn-text {
    color: #f8fafc;
}

.dark-mode .feature-card,
.dark-mode .footer-brand img,
.dark-mode .cta-box {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode footer {
    background: #0f172a;
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    /* Using body font for buttons for readability */
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-hero);
    color: var(--white);
    box-shadow: var(--shadow-blue);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(31, 168, 255, 0.6);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--text-dark);
}

.btn-text:hover {
    color: var(--primary);
}

.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Navbar - Glassmorphism */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 60px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    /* Always flex, use visibility to hide */
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    /* Hide visually and from clicks */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-menu a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    text-align: center;
    padding: 0.5rem;
}

/* Sections */
main {
    padding-top: 140px;
    /* Space for nav */
}

section {
    padding: 4rem 0;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 80vh;
    background: radial-gradient(circle at top right, #e0f2fe 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pill-badge {
    background: rgba(31, 168, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-btns {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Floating Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: #fff;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
    border: 8px solid #f1f5f9;
    position: relative;
    z-index: 2;
    max-width: 320px;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    animation: float 5s ease-in-out infinite reverse;
}

.c1 {
    top: 20%;
    left: -40px;
    color: var(--text-dark);
    box-shadow: var(--shadow-xl);
}

.c1 i {
    font-size: 1.5rem;
    color: var(--primary);
}

.c2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1s;
    box-shadow: var(--shadow-xl);
}

.c2 i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.b1 {
    width: 300px;
    height: 300px;
    background: #bfdbfe;
    top: -50px;
    right: -50px;
}

.b2 {
    width: 250px;
    height: 250px;
    background: #99f6e4;
    bottom: -50px;
    left: -50px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


/* Features Grid */
.features-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
    border-color: rgba(31, 168, 255, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.green {
    background: #dcfce7;
    color: #16a34a;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}


/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.check-list i {
    color: var(--accent);
    font-size: 1.2rem;
}

.showcase-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}


/* CTA / Form */
.cta-section {
    text-align: center;
    padding-bottom: 6rem;
}

.cta-box {
    background: var(--gradient-hero);
    border-radius: 30px;
    padding: 4rem 2rem;
    color: white;
    box-shadow: 0 20px 40px -10px rgba(31, 168, 255, 0.4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-content h2 {
    color: white;
}

.inline-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.inline-form input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.inline-form button {
    background: var(--text-dark);
    color: white;
    box-shadow: none;
}

.status-msg {
    margin-top: 1rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--white);
    padding: 3rem 0;
    border-top: 1px solid #f1f5f9;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {

    /* Conventional Full Width Navbar for Mobile */
    .glass-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.8rem 1.5rem;
        background: #ffffff !important;
        /* Solid background for stability */
        backdrop-filter: none !important;
        /* Avoid rendering bugs */
        z-index: 99999 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        /* Fixed height */
    }

    .nav-content {
        width: 100%;
        /* Ensure content spreads */
    }

    .nav-logo {
        height: 40px;
        /* Smaller logo on mobile */
    }

    main {
        padding-top: 70px;
        /* Match fixed navbar height */
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-menu {
        top: 70px;
        /* Adjust for new navbar height */
        width: 100%;
        left: 0;
        transform: translateY(-100%);
        border-radius: 0 0 20px 20px;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .hero-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    /* Image on top on mobile */
    .phone-mockup {
        max-width: 280px;
        margin: 0 auto;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .inline-form {
        flex-direction: column;
    }

    .inline-form input,
    .inline-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}

/* === ANIMATIONS === */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Animations (On Load) */
.hero-text h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text p {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    /* Only if forwards doesn't catch quickly enough, but forwards handles it usually. explicit opacity 0 helps prevent flash */
    animation-fill-mode: both;
}

.hero-btns {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.pill-badge {
    animation: popIn 0.6s ease-out forwards;
    opacity: 0;
    animation-fill-mode: both;
}

.hero-visual {
    animation: popIn 1s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: both;
}

/* Scroll Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Grid Items */
.features-grid .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Mobile Menu Staggered Animation */
.mobile-menu {
    /* Keep existing styles, just ensure transition exists */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu a {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* When Active, animate children */
.mobile-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active a:nth-child(4) {
    transition-delay: 0.4s;
}