/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ececec;
    --bg-card: #d9d9d9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-muted: #9a9a9a;
    --accent: #ff5c3a;
    --white: #ffffff;
    --black: #111111;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   DECORATIVE SPARKLES
   ============================================ */
.sparkle {
    position: fixed;
    color: rgba(0, 0, 0, 0.12);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease-out;
    animation: sparkle-float 6s ease-in-out infinite;
}

.sparkle-1 {
    top: 8%;
    left: 15%;
    font-size: 24px;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 15%;
    left: 35%;
    font-size: 14px;
    animation-delay: 1.5s;
}

.sparkle-3 {
    top: 6%;
    right: 30%;
    font-size: 10px;
    animation-delay: 3s;
}

.sparkle-4 {
    top: 40%;
    right: 15%;
    font-size: 16px;
    animation-delay: 2s;
}

.sparkle-5 {
    top: 25%;
    left: 50%;
    font-size: 12px;
    animation-delay: 4s;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-8px) rotate(180deg);
    }
}

/* ============================================
   DECORATIVE CURVES
   ============================================ */
.deco-curve {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-curve-1 {
    top: 5%;
    right: 10%;
    width: 350px;
    height: 260px;
    opacity: 0.5;
}

.deco-curve-2 {
    top: 20%;
    right: 0;
    width: 250px;
    height: 350px;
    opacity: 0.4;
}

/* ============================================
   NAVIGATION
   ============================================ */
.header {
    position: relative;
    z-index: 100;
    padding: 40px 60px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    transition: opacity 0.3s, transform 0.3s;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    white-space: nowrap;
}

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

.nav-link.active {
    font-weight: 600;
    color: var(--text-primary);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.menu-btn:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.menu-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.menu-btn-active .menu-arrow {
    transform: rotate(180deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 10;
    padding: 60px 60px 50px;
}

.hero-content {
    max-width: 1200px;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-main-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(48px, 6.2vw, 88px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -2.5px;
    color: var(--text-primary);
    margin-bottom: 0;
    flex: 1;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-side-desc {
    font-family: var(--font-heading);
    max-width: 460px;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-tagline strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   CARDS SECTION
   ============================================ */
.cards-section {
    position: relative;
    z-index: 10;
    padding: 10px 60px 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 16px;
    max-width: 1400px;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(2).revealed {
    transition-delay: 0.15s;
}

.card:nth-child(3).revealed {
    transition-delay: 0.3s;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 5;
}

.card-badge-accent {
    background: rgba(255, 140, 50, 0.5);
    color: var(--white);
}

.card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Card 1 - Pastel workspace */
.card-image-1 {
    background: linear-gradient(145deg, #e8e0d8 0%, #d4ccc4 40%, #c8beb6 70%, #f0e8e0 100%);
}

.card-image-1::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 40%;
    background: linear-gradient(135deg, 
        rgba(200, 180, 170, 0.6) 0%, 
        rgba(180, 200, 190, 0.4) 30%, 
        rgba(220, 200, 190, 0.5) 60%, 
        rgba(190, 170, 160, 0.6) 100%);
    border-radius: 4px;
    transform: perspective(500px) rotateX(5deg);
}

/* Card 2 - Colorful abstract */
.card-image-2 {
    background: linear-gradient(160deg, 
        #ff9a56 0%, 
        #ff6b6b 25%, 
        #ff8e53 40%, 
        #48dbfb 60%, 
        #0abde3 75%, 
        #54a0ff 100%);
}

.card-image-2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 165, 80, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(72, 219, 251, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 40%, rgba(255, 107, 107, 0.4) 0%, transparent 40%);
}

/* Card 3 - Iridescent/holographic */
.card-image-3 {
    background: linear-gradient(135deg, 
        #e040fb 0%, 
        #ab47bc 15%, 
        #7c4dff 30%, 
        #448aff 45%, 
        #18ffff 60%, 
        #69f0ae 70%, 
        #ea80fc 85%, 
        #ff80ab 100%);
    animation: holographic-shift 8s ease-in-out infinite;
}

.card-image-3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.05) 2px,
            rgba(255, 255, 255, 0.05) 4px
        ),
        radial-gradient(ellipse at 40% 50%, rgba(224, 64, 251, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 50%, rgba(68, 138, 255, 0.5) 0%, transparent 60%);
}

@keyframes holographic-shift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(30deg);
    }
}

/* Card Overlays */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 3;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.card-avatars {
    display: flex;
    margin-bottom: 12px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-right: -8px;
}

.avatar-1 {
    background: linear-gradient(135deg, #f6d365, #fda085);
}

.avatar-2 {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.avatar-3 {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.card-text {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 400;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 10px;
}

/* Card 2 - List overlay */
.card-overlay-list {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 80%, transparent 100%);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-list-item:last-child {
    border-bottom: none;
}

.card-list-label {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.card-list-item:nth-child(2) .card-list-label {
    color: #ff8a65;
}

.card-list-item:nth-child(3) .card-list-label {
    color: #ffab91;
}

.card-list-item:nth-child(4) .card-list-label {
    color: rgba(255, 255, 255, 0.6);
}

.card-list-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: transform 0.3s;
}

.card-list-item:hover .card-list-arrow {
    transform: translate(3px, 3px);
    color: var(--white);
}

/* Card 3 - Stats overlay */
.card-overlay-stats {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 30px;
}

.card-stat {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    letter-spacing: -2px;
}

.card-stat-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    flex: 1;
}

.card-stat-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: transform 0.3s;
}

.card:hover .card-stat-arrow {
    transform: translate(3px, 3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header {
        padding: 30px 30px 0;
    }

    .hero {
        padding: 40px 30px 40px;
    }

    .cards-section {
        padding: 10px 30px 40px;
    }

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

    .card-wide {
        grid-column: span 2;
    }

    .nav-links {
        display: none;
    }

    .nav-links-open {
        display: flex;
        position: absolute;
        top: 70px;
        right: 30px;
        background: var(--white);
        padding: 24px 32px;
        border-radius: var(--radius-md);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 640px) {
    .header {
        padding: 20px 20px 0;
    }

    .hero {
        padding: 30px 20px 30px;
    }

    .hero-headline {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cards-section {
        padding: 10px 20px 30px;
    }

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

    .card-wide {
        grid-column: span 1;
    }

    .card {
        min-height: 260px;
    }

    .card-stat {
        font-size: 48px;
    }
}
