/* ============================================
   SimVerse AI — Landing Page Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #06080f;
    --bg-secondary: #0a0e1a;
    --bg-card: #0d1224;
    --bg-card-hover: #111836;
    --border-subtle: rgba(139, 92, 246, 0.12);
    --border-card: rgba(139, 92, 246, 0.15);
    --border-card-hover: rgba(139, 92, 246, 0.35);
    --text-primary: #f0f0f5;
    --text-secondary: #9ca3bf;
    --text-muted: #6b7194;
    --accent-purple: #8B5CF6;
    --accent-violet: #A78BFA;
    --accent-cyan: #06B6D4;
    --accent-light-cyan: #22D3EE;
    --gradient-main: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Utility ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 80px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
    transition: opacity var(--transition-base);
}

.btn-glow:hover::before {
    opacity: 0.8;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.nav.scrolled {
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
    letter-spacing: 0.01em;
}

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

.nav-links .nav-cta {
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition-base);
}

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

.nav-mobile .nav-cta {
    display: inline-block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    margin-top: 8px;
}

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

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    background: rgba(139, 92, 246, 0.06);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light-cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(34, 211, 238, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 8px rgba(34, 211, 238, 0.3); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

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

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ---------- Section Base ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-violet);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.08), 0 0 40px rgba(139, 92, 246, 0.04);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    margin-bottom: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

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

.card-enterprise {
    padding: 36px 32px;
}

.card-enterprise-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* ---------- Experience Section ---------- */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.experience-card {
    position: relative;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.experience-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.08);
}

.experience-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.experience-mode {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.experience-card:hover .experience-line {
    opacity: 1;
}

/* ---------- Why Now Section ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: all var(--transition-smooth);
}

.why-item:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.06);
}

.why-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-subtle);
}

.why-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.why-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Moat Section ---------- */
.moat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.moat-item {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    transition: all var(--transition-smooth);
    position: relative;
}

.moat-item:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.06);
}

.moat-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-violet);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.moat-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.moat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Waitlist Section ---------- */
.section-waitlist {
    text-align: center;
}

.waitlist-inner {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.btn-waitlist {
    font-size: 1.1rem;
    padding: 18px 40px;
    margin-bottom: 8px;
}

.waitlist-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delay for children */
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .card-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .card-grid.three-col,
    .card-grid.two-col {
        grid-template-columns: 1fr;
    }

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

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

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

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

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero {
        padding: 100px 24px 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .experience-card {
        padding: 28px 20px;
    }

    .card {
        padding: 28px 24px;
    }

    .why-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
}
