/* DESIGN TOKENS */
:root {
    --bg-base: #030303;
    --bg-elevated: #0f1013;
    --glass-bg: rgba(20, 20, 22, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-core: #10B981; /* Excel green variant */
    --accent-glow: rgba(16, 185, 129, 0.3);
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* BACKGROUND BLOBS */
.blob {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(16, 185, 129, 0.2); }
.blob-2 { top: 40%; right: -20%; width: 600px; height: 600px; background: rgba(5, 150, 105, 0.15); animation-delay: -5s; }
.blob-3 { bottom: -10%; left: 20%; width: 400px; height: 400px; background: rgba(16, 185, 129, 0.1); }

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

/* COMPONENTS */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-core);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.chip-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* NAVIGATION */
.glass-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1.5rem !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

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

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* HERO SECTION */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    height: 600px;
}

.hero-mockup {
    position: absolute;
    padding: 0.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-mockup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 80%;
    z-index: 2;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.1);
}

.secondary-mockup {
    top: 60%;
    right: -15%;
    transform: translate(0, -60%) rotate(5deg);
    width: 75%;
    z-index: 1;
    opacity: 0.7;
    filter: blur(2px);
}

.main-mockup img, .secondary-mockup img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.hero-visual:hover .main-mockup {
    transform: translate(-50%, -55%) rotate(0deg) scale(1.05);
}

.hero-visual:hover .secondary-mockup {
    transform: translate(10%, -60%) rotate(10deg);
    opacity: 0.5;
}

/* FEATURES SECTION */
.features-section {
    padding: 6rem 0;
}

.section-heading {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}

.col-span-2 {
    grid-column: span 2;
}

.bento-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bento-card img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.bento-card:hover img {
    transform: scale(1.02);
}

.card-image-wrap {
    margin-top: auto;
    border-radius: 16px;
    overflow: hidden;
}

/* MARQUEE GALLERY */
.gallery-section {
    padding: 6rem 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.marquee-content img {
    height: 350px;
    width: auto;
    object-fit: cover;
    padding: 0.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.marquee-content img:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } 
}

/* PRIVACY */
.privacy-section {
    padding: 6rem 0;
}

.privacy-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    background: linear-gradient(180deg, rgba(20,20,22,0.6) 0%, rgba(10,10,12,0.8) 100%);
}

.privacy-text {
    max-width: 60%;
}

.privacy-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.privacy-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.privacy-icon {
    width: 160px;
    height: 160px;
    opacity: 0.8;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #000;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-core);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.875rem;
}

/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-visual { height: 500px; margin-top: 3rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    
    .privacy-card {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 3rem 2rem;
    }
    .privacy-text { max-width: 100%; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .marquee-content img { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .blob { animation: none; }
    .marquee-content { animation: none; }
    .btn-primary::after { display: none; }
}
