/* Theme V2 Core Styles */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    /* Reduced nav height */
    --nav-height: 70px;
    /* Slightly reduced container width for tighter feel */
    --container-width: 1100px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 15px;
    /* Slightly smaller base font */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 90%;
    /* Responsive width */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    /* Reduced padding */
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #F3F4F6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 16px;
    /* Moved up slightly */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    /* Reduced width */
    max-width: var(--container-width);
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    /* Reduced font size */
    font-weight: 700;
    color: #111827;
}

.nav-links {
    display: flex;
    gap: 24px;
    /* Reduced gap */
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    /* Significantly reduced padding */
    padding-top: 100px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 0%, #EFF6FF 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Reduced gap */
    align-items: center;
}

.hero-text h1 {
    font-size: 2.75rem;
    /* Reduced from 3.5rem */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.05rem;
    /* Reduced from 1.125rem */
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 440px;
}

.email-capture {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    /* Reduced margin */
    max-width: 400px;
}

.email-capture input {
    flex: 1;
    padding: 10px 14px;
    /* Reduced padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    font-size: 0.95rem;
}

.email-capture input:focus {
    border-color: var(--primary-color);
}

.email-capture .btn {
    border-radius: 8px;
    padding: 10px 20px;
}

.trust-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatars img {
    width: 28px;
    /* Reduced size */
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -8px;
}

.avatars img:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 10px;
}

.partners-logos {
    display: flex;
    gap: 20px;
    opacity: 0.6;
    margin-top: 20px;
}

.partners-logos img {
    height: 20px;
    /* Reduced height */
    width: auto;
}

.hero-image {
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    /* Center the phone */
}

.phone-mockup {
    width: 100%;
    /* Reduced max-width (80% of original 400px is 320px) */
    max-width: 320px;
    margin: 0 auto;
    border-radius: 32px;
    /* Adjusted radius */
    box-shadow: var(--shadow-lg);
    border: 6px solid #111827;
    /* Thinner border */
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-mockup img {
    width: 100%;
    display: block;
}

/* Features Section */
.features {
    padding-top: 5rem;
    padding-bottom: 5rem;
    /* Reduced padding */
}

.section-header {
    margin-bottom: 40px;
    /* Reduced margin */
    max-width: 600px;
}

.section-header h2 {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    /* Reduced gap */
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    /* Reduced radius */
    padding: 30px;
    /* Reduced padding */
    transition: all 0.3s ease;
    min-height: 280px;
    /* Reduced min-height */
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 40px;
    /* Reduced size */
    height: 40px;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    /* Control icon size */
}

.feature-title {
    font-size: 1.25rem;
    /* Reduced size */
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.feature-visual {
    margin-top: auto;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #F9FAFB;
    padding: 60px 0 30px;
    /* Reduced padding */
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    /* Reduced gap */
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 260px;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

/* Utilities */
.hidden {
    display: none;
}

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

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 0 16px;
        top: 10px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 100px;
        /* Reduced mobile top padding */
        padding-bottom: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .email-capture {
        margin: 0 auto 24px;
    }

    .partners-logos {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Marquee Styles */
.marquee-wrapper {
    padding: 2.5rem;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    /* Mask to fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    /* Adjusted speed */
}

.marquee-item {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9CA3AF;
    margin: 0 40px;
    /* Spacing between logos */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: all 0.3s;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move it by -33.33% because we have 3 duplicate sets, 
           so once the first set moves out, it resets seamlessly. 
           Wait, if I have 3 sets, moving 1/3 is correct. */
        transform: translateX(-33.33%);
    }
}

/* Pause on hover */
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Auth Layout Styles */
.auth-layout {
    min-height: 100vh;
    width: 100%;
    background: var(--white);
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 80px;
    max-width: 600px;
    /* Limit width of form area */
    background: var(--white);
}

.auth-visual {
    flex: 1.2;
    /* Slightly wider */
    background: #4338ca;
    /* Deep indigo fallback/base */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .auth-visual {
        display: none;
    }

    .auth-content {
        padding: 40px 24px;
        max-width: 100%;
    }
}

.auth-header {
    margin-bottom: 40px;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Form Elements */
.auth-form {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #F3F4F6;
    /* Light gray background like Linktree */
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-bottom: 16px;
    border-radius: 9999px;
    /* Pill shape */
}

/* Social Login Buttons */
.feature-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-divider::before,
.feature-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.feature-divider span {
    padding: 0 16px;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #F9FAFB;
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.auth-link {
    color: var(--primary-color);
    /* Purple/Blue */
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Visual Side Styles */
.visual-content {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #e0e7ff;
    /* indigo-100 */
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.visual-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: var(--white);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.visual-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

/* CSS Device Mockup (User Requested) */
.device-card {
    width: 280px;
    /* Increased from 210px for content fit */
    height: 550px;
    /* Increased for better ratio */
    background: black;
    border-radius: 35px;
    border: 2px solid rgb(40, 40, 40);
    padding: 7px;
    position: relative;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.486);
    margin: 0 auto;
}

.device-screen {
    background: #fff;
    /* Replaced gradient with white for app content */
    height: 100%;
    border-radius: 25px;
    transition: all 0.6s ease-out;
    overflow: hidden;
    position: relative;
}

/* Device Hardware details */
.device-top {
    position: absolute;
    top: 0px;
    right: 50%;
    transform: translate(50%, 0%);
    width: 35%;
    height: 18px;
    background-color: black;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 20;
}

.device-speaker {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translate(50%, 0%);
    width: 40%;
    height: 2px;
    border-radius: 2px;
    background-color: rgb(20, 20, 20);
}

.device-camera {
    position: absolute;
    top: 6px;
    right: 84%;
    transform: translate(50%, 0%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.048);
}

.device-int {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background-color: rgba(0, 0, 255, 0.212);
}

.device-btn1,
.device-btn2,
.device-btn3,
.device-btn4 {
    position: absolute;
    width: 2px;
}

.device-btn1,
.device-btn2,
.device-btn3 {
    height: 45px;
    top: 30%;
    right: -4px;
    background-image: linear-gradient(to right, #111111, #222222, #333333, #464646, #595959);
}

.device-btn2,
.device-btn3 {
    transform: scale(-1);
    left: -4px;
}

.device-btn2,
.device-btn3 {
    transform: scale(-1);
    height: 30px;
}

.device-btn2 {
    top: 26%
}

.device-btn3 {
    top: 36%
}

/* Pricing Section */
.pricing {
    padding-top: 3rem;
    padding-bottom: 5rem;
    background: #F9FAFB;
    /* Light background for contrast if needed, or white */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
    /* Align items to handle different heights if any */
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-lg);
    z-index: 10;
    transform: scale(1.05);
    /* Slightly larger */
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price span {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-light);
}

.plan-desc {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    border-radius: 9999px;
    font-weight: 600;
    margin-bottom: 32px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-btn.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #111827;
}

.plan-btn.outline:hover {
    border-color: #111827;
    background: #F9FAFB;
}

.plan-btn.fill {
    background: #111827;
    /* Dark button for Pro */
    color: var(--white);
    border: 1px solid #111827;
}

.plan-btn.fill:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4B5563;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--primary-color);
    /* Green check or primary color */
    font-size: 1rem;
}

.feature-item i.grey {
    color: #9CA3AF;
    /* Grey check for included items in basic plans if needed */
}

/* Responsive Pricing */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: scale(1);
        order: -1;
        /* Show popular first on mobile */
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

/* Animation Utility */
.reveal-up {
    visibility: hidden;
    /* GSAP will handle this with autoAlpha */
}