/* ====================================
   STEKY - Premium Landing Page
   Disney-inspired immersive design
   ==================================== */

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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #5a5a7a;
    --text-muted: #8a8aaa;
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a855f7;
    --accent-4: #06b6d4;
    --accent-5: #3b82f6;
    --gradient-main: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-text: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-glow: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(139,92,246,0.4), rgba(6,182,212,0.4));
    --border: rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* === Floating Particles === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-1);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 22s; animation-delay: 2s; }
.particle:nth-child(3) { left: 35%; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { left: 65%; animation-duration: 24s; animation-delay: 3s; }
.particle:nth-child(6) { left: 80%; animation-duration: 17s; animation-delay: 5s; }
.particle:nth-child(7) { left: 90%; animation-duration: 21s; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 15%; animation-duration: 19s; animation-delay: 6s; background: var(--accent-4); }
.particle:nth-child(9) { left: 45%; animation-duration: 23s; animation-delay: 1.5s; background: var(--accent-3); }
.particle:nth-child(10) { left: 70%; animation-duration: 15s; animation-delay: 3.5s; background: var(--accent-2); }
.particle:nth-child(11) { left: 25%; animation-duration: 25s; animation-delay: 7s; background: var(--accent-4); }
.particle:nth-child(12) { left: 55%; animation-duration: 20s; animation-delay: 4.5s; background: var(--accent-5); }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.35;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    padding: 0.8rem 3rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-main);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

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

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-full);
    background: var(--gradient-main) !important;
    border: none;
    color: #ffffff !important;
    transition: all 0.3s !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-1px);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    top: -10%;
    right: -5%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
    top: 40%;
    left: 50%;
    animation: orbFloat3 10s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.04) 0%, transparent 60%);
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25px, -15px) scale(1.1); }
    66% { transform: translate(-15px, 25px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.title-line--gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
}

.btn-magic {
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.btn-magic .btn-content {
    position: relative;
    z-index: 1;
}

.btn-magic .btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-main);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-magic:hover .btn-glow {
    opacity: 0.6;
}

.btn-magic--large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-glass {
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn-glass:hover .btn-arrow {
    transform: translate(3px, -3px);
}

/* === Hero Stats === */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === Scroll Indicator === */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.scroll-line {
    width: 2px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 1px;
    margin-top: 6px;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(12px); }
}

/* === Sections Common === */
.section {
    position: relative;
    padding: 7rem 2rem;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Features Grid === */
.features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
    will-change: transform;
    transform-style: preserve-3d;
}

.feature-card--large {
    grid-column: 1 / -1;
}

.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card-content {
    position: relative;
    padding: 2.5rem;
    z-index: 1;
}

.feature-icon-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.25);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.08);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-1);
}

/* === Showcase / Marquee === */
.showcase {
    background: var(--bg-secondary);
    overflow: hidden;
    padding-top: 4rem;
}

.marquee {
    overflow: hidden;
    margin-bottom: 5rem;
    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-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.marquee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.showcase-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 3rem;
}

.showcase-visual {
    position: relative;
    height: 400px;
}

.visual-card {
    position: absolute;
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.visual-card--1 {
    width: 220px;
    height: 160px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
    top: 10%;
    left: 5%;
    animation: cardFloat1 6s ease-in-out infinite;
}

.visual-card--2 {
    width: 200px;
    height: 140px;
    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(59,130,246,0.05));
    top: 35%;
    right: 10%;
    animation: cardFloat2 7s ease-in-out infinite;
}

.visual-card--3 {
    width: 180px;
    height: 130px;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(99,102,241,0.05));
    bottom: 10%;
    left: 20%;
    animation: cardFloat3 5s ease-in-out infinite;
}

.visual-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    gap: 0.5rem;
}

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

.showcase-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.showcase-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-1);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* === About === */
.about {
    background: var(--bg-primary);
    overflow: hidden;
}

.about-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* === Footer === */
.footer {
    background: #1a1a2e;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer .brand-text {
    color: #ffffff;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* === Reveal Animations === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.feature-card.reveal:nth-child(1) { transition-delay: 0s; }
.feature-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.3s; }

.hero-stats .stat.reveal:nth-child(1) { transition-delay: 0s; }
.hero-stats .stat.reveal:nth-child(3) { transition-delay: 0.15s; }
.hero-stats .stat.reveal:nth-child(5) { transition-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar.scrolled {
        padding: 0.6rem 1.5rem;
    }

    .navbar-links {
        gap: 1.2rem;
    }

    .navbar-links a {
        font-size: 0.8rem;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .feature-card--large {
        grid-column: 1;
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-visual {
        height: 280px;
    }

    .visual-card--1 { left: 2%; }
    .visual-card--2 { right: 2%; }
    .visual-card--3 { left: 10%; }

    .section {
        padding: 4rem 1.5rem;
    }

    .marquee-item {
        font-size: 2rem;
    }

    .about-bg-text {
        font-size: 30vw;
    }
}

@media (max-width: 480px) {
    .navbar-links {
        gap: 0.8rem;
    }

    .nav-cta {
        display: none !important;
    }

    .card-content {
        padding: 1.8rem;
    }

    .visual-card {
        width: 150px !important;
        height: 110px !important;
    }

    .visual-card-inner {
        font-size: 1rem;
    }
}
