/* 
  NUZZLE WEBSITE 2026 REDESIGN
  Theme: Minimalist, Light, 3D Modernism
  Principles: Space, Typography, Depth, Interactivity
*/

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --primary: #4f46e5;
    /* Electric Indigo */
    --primary-subtle: #eef2ff;
    --accent: #ec4899;
    /* Pink/Rose */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Box Shadows 3D */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
    --shadow-3d: 0 15px 35px rgba(79, 70, 229, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);

    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --max-width: 1280px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

selection {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

/* 3D Scene Container for common elements */
.perspective-container {
    perspective: 1200px;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 65ch;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--text-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.badge-2026 {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-3d);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 40px rgba(79, 70, 229, 0.25);
}

.hero-stats {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}

.stat-v2 {
    display: flex;
    flex-direction: column;
}

.stat-v2 span.value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
}

.stat-v2 span.label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 3D Hero Mockup */
.hero-visual {
    position: relative;
    z-index: 1;
}

.mockup-3d-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.phone-3d {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 40px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1), 0 15px 35px rgba(0, 0, 0, 0.05);
    background: #000;
    padding: 12px;
    border: 8px solid #1a1a1a;
    position: relative;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: var(--transition-smooth);
}

.phone-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.phone-3d img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Floating Elements for 3D depth */
.floating-ui {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    pointer-events: none;
    animation: float-3d 8s ease-in-out infinite;
}

.f-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.f-2 {
    bottom: 20%;
    left: -15%;
    animation-delay: -3s;
}

.f-3 {
    top: 50%;
    right: -20%;
    animation-delay: -5s;
}

@keyframes float-3d {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    33% {
        transform: translateY(-30px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

/* Bento Grid Features */
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.1);
}

.bento-tall {
    grid-row: span 2;
}

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

.bento-item .icon {
    width: 64px;
    height: 64px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.bento-item h3 {
    margin-bottom: 1rem;
}

/* Screenshots Swiper V2 */
.screenshots-v2 {
    background: #000;
    color: white;
    padding: 140px 0;
    overflow: hidden;
}

.screenshots-v2 h2 {
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}

.swiper-v2-container {
    padding: 2rem 0;
}

.screenshotsSwiper .swiper-slide {
    width: 320px;
    transition: var(--transition-smooth);
    filter: grayscale(100%) opacity(0.5);
}

.screenshotsSwiper .swiper-slide-active {
    transform: scale(1.1) rotate(0);
    filter: grayscale(0) opacity(1);
    z-index: 2;
}

.screenshotsSwiper img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Community & Footer */
.community-v2 {
    text-align: center;
}

.comm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.comm-card-v2 {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.comm-card-v2:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
}

.comm-card-v2 i {
    font-size: 3rem;
}

.comm-card-v2 h3 {
    margin-bottom: 0.5rem;
}

footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Modern Principles: Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    section {
        padding: 80px 0;
    }

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