/* =========================================
   PREMIUM LANDING PAGE STYLES (landing.css)
   ========================================= */

/* --- Fonts & Reset Enhancements --- */
:root {
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Premium Brand Palette */
    --brand-primary: #2563eb;
    /* Vivid Blue */
    --brand-dark: #0f172a;
    /* Slate 900 */
    --brand-light: #eff6ff;
    /* Slate 50 */
    --brand-accent: #3b82f6;
    /* Blue 500 */
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Animation settings */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--brand-dark);
    background-color: #f8fafc;
    background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.05) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* --- Utilities --- */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* --- Animated Background --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f8fafc;
}

.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #dbeafe;
    /* Light Blue */
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #e0e7ff;
    /* Indigo Light */
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f0f9ff;
    /* Sky Light */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* --- Navigation --- */
.nav-premium {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s var(--ease-out-quart);
    padding: 0.5rem 0;
    /* Tight padding to keep header small */
}

.nav-premium.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 65px;
    /* Base height */
    width: auto;
    object-fit: contain;
    transform: scale(1.8);
    /* VISUAL ZOOM */
    transform-origin: left center;
    margin-left: 10px;
    /* Offset for the zoom */
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--brand-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo .icon-box {
    width: 36px;
    height: 36px;
    background: var(--brand-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--brand-primary);
    transition: width 0.3s var(--ease-out-quart);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-premium {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-quart);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
}

.btn-premium-outline {
    background: white;
    color: var(--brand-dark);
    border: 1px solid #e2e8f0;
}

.btn-premium-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* --- Hero Section --- */
.hero-premium {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Prevent blob overflow */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Increased gap to bring content in */
    align-items: center;
    text-align: left;
    max-width: 1300px;
    /* Limit width to bring edges in */
    margin: 0 auto;
}

.hero-content {
    animation: fadeRight 0.8s var(--ease-out-quart);
    z-index: 2;
    padding-left: 2rem;
    /* Bring words off left edge */
}

.hero-image-container {
    position: relative;
    animation: fadeLeft 1s var(--ease-out-quart);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    /* Changed to cover for rectangular images */
    border-radius: 24px;
    /* Soften edges since it has background */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Nice shadow */
    transform: none;
    /* Reset the aggressive scaling */
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    border-radius: 99px;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-heading {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.hero-sub {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 0 3rem 0;
    /* Left align margin */
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Left align buttons */
}


/* --- BENTO GRID Section --- */
.bento-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bento-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--ease-out-quart);
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--brand-dark);
    color: white;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-quart);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Tilt Effect Base */
.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Logo Marquee --- */
.marquee-section {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding-left: 4rem;
    /* Initial offset */
}

.marquee-logo {
    height: 60px;
    /* Increased from 40px */
    opacity: 0.6;
    /* Increased opacity slightly */
    filter: grayscale(100%);
    transition: all 0.3s;
}

.marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Premium Footer --- */
.footer-premium {
    background: #0f172a;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* --- Brand Orbit Animation --- */
.orbit-premium-section {
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.orbit-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 1.5rem;
}

.orbit-text {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.orbit-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.orbit-text p {
    color: #64748b;
    font-size: 1.1rem;
}

.orbit-system {
    width: 600px;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* Center Hub */
.orbit-hub {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
    z-index: 10;
    position: relative;
}

.hub-pulse {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    opacity: 0;
    animation: hubPulse 2s infinite;
}

/* Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-inner {
    width: 320px;
    height: 320px;
    animation: spinRight 50s linear infinite;
    z-index: 5;
}

.ring-outer {
    width: 550px;
    height: 550px;
    animation: spinLeft 80s linear infinite;
    z-index: 4;
}

/* Orbit Items (The Card on the Ring) */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin-top: -32px;
    margin-left: -32px;

    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;

    /* Place on the ring */
    transform: rotate(var(--angle)) translate(var(--radius));
}

.ring-inner .orbit-item {
    --radius: 160px;
}

.ring-outer .orbit-item {
    --radius: 275px;
}

/* The Logo Image (Counter-Rotates to stay upright) */
.orbit-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Static correction to be upright initially */
    transform: rotate(calc(-1 * var(--angle)));
}

/* Precision Counter-Rotation Animations */
/* Because the Ring spins Right (+360), the Inner Items must spin Left (-360) 
   PLUS their initial negative angular offset. */
.ring-inner .orbit-item img {
    animation: counterSpinRight 50s linear infinite;
}

/* Outer ring spins Left (-360), so Items must spin Right (+360) */
.ring-outer .orbit-item img {
    animation: counterSpinLeft 80s linear infinite;
}

/* Keyframes that respect the initial angle variable */
@keyframes counterSpinRight {
    from {
        transform: rotate(calc(-1 * var(--angle) + 0deg));
    }

    to {
        transform: rotate(calc(-1 * var(--angle) - 360deg));
    }
}

@keyframes counterSpinLeft {
    from {
        transform: rotate(calc(-1 * var(--angle) + 0deg));
    }

    to {
        transform: rotate(calc(-1 * var(--angle) + 360deg));
    }
}

@keyframes spinRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes hubPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* --- Interactivity --- */

/* 1. Pause removed as per request */
/* .orbit-system:hover .orbit-ring,
.orbit-system:hover .orbit-item img {
    animation-play-state: paused;
} */


/* 2. Highlight Hub on Hover */
.orbit-hub:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.6);
    transition: all 0.3s ease;
}

/* 3. Highlight Orbit Items on Hover */
.orbit-item {
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    /* Note: transform transition might fight with animation if not paused, but we pause it. */
}

.orbit-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    z-index: 50;
    /* Bring to front */
    background: #fff;
}

/* Optional: Slight scaling of the images on hover */
.orbit-item:hover img {
    /* We can't use transform scale here because it would override the counter-rotation transform. 
       But since we PAUSE the animation, the transform is frozen. 
       If we apply a new transform here, it snaps. 
       So stick to box-shadow/border for safe interaction. */
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .orbit-system {
        transform: scale(0.65);
        margin-top: -60px;
        margin-bottom: -60px;
    }

    .orbit-premium-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .orbit-system {
        transform: scale(0.45);
        margin-top: -100px;
        margin-bottom: -100px;
    }

    .orbit-premium-section {
        padding: 2rem 0;
    }
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-image {
    height: 150px;
    /* Much bigger real size */
    width: auto;
    transform: none;
    /* Reset the header zoom hack */
    margin-left: 0;
    display: block;
}

.footer-logo .icon-box {
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .brand-col {
        grid-column: span 2;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Mobile Typography & Layout Fixes */
    .hero-heading {
        font-size: 2.8rem;
        padding: 0;
    }

    .hero-sub {
        font-size: 1.1rem;
        padding: 0;
        margin: 0 auto 2rem;
    }

    .hero-premium {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
        /* Center on mobile */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
        /* Reset desktop padding */
        text-align: center;
    }

    .hero-image-container {
        display: none !important;
        /* Hide image on mobile as requested */
    }

    .hero-buttons {
        justify-content: center;
    }

    /* FORCE single column flex layout on mobile */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .bento-card {
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
        min-height: auto;
    }

    /* Stack addresses in Shop Anywhere card */
    .bento-large>div:last-child {
        flex-direction: column;
    }

    .bento-large>div:last-child>div {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5rem;
    }

    .glass-panel {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }

    .marquee-track {
        gap: 2rem;
    }
}

/* --- Auth Pages --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Register page needs to be wider */
.auth-card-wide {
    max-width: 700px;
}

.auth-logo {
    height: 70px;
    width: auto;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}