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

:root {
    --bg: #0a0a0f;
    --bg-2: #0f0f1a;
    --bg-card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --accent-3: #f59e0b;
    --gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
    --font: 'Inter', -apple-system, sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

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

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-cta {
    background: var(--gradient);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    position: relative;
}

.hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: 100px;
    right: -50px;
    animation-delay: 2.5s;
}
.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    top: 50%;
    left: 40%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); border-color: rgba(124,58,237,0.4); }

.btn-large { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: 14px; }

/* ===== HERO VISUAL ===== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-stack {
    position: relative;
    width: 280px;
    height: 280px;
}

.frame-card {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.frame-card-back {
    width: 240px;
    height: 240px;
    background: rgba(124,58,237,0.08);
    top: 30px;
    left: 10px;
    transform: rotate(-8deg);
    animation: cardFloat 6s ease-in-out infinite;
}

.frame-card-mid {
    width: 240px;
    height: 240px;
    background: rgba(6,182,212,0.08);
    top: 15px;
    left: 25px;
    transform: rotate(-3deg);
    animation: cardFloat 6s ease-in-out infinite 0.5s;
}

.frame-card-front {
    width: 250px;
    height: 250px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    top: 0;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@keyframes cardFloat {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-10px); }
}

.frame-preview-inner {
    position: relative;
    width: 180px;
    height: 180px;
}

.frame-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1e2e, #2d2d42);
    position: relative;
}
.frame-avatar::after {
    content: '👤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.frame-overlay-anim {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: spin 3s linear infinite;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #7c3aed, #06b6d4, transparent, transparent) border-box;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.frame-badge-label {
    position: absolute;
    bottom: 15px;
    background: rgba(124,58,237,0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 2rem;
}

.section-dark {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== STEPS ===== */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.step:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-4px); background: rgba(124,58,237,0.05); }

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    align-self: center;
    flex-shrink: 0;
    margin-top: -1.5rem;
}

/* ===== ORG GRID ===== */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.org-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s;
    cursor: pointer;
}
.org-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-2px); background: rgba(124,58,237,0.08); }

.org-card-visual {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(124,58,237,0.1);
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.org-card-visual img { width: 100%; height: 100%; object-fit: cover; }

.org-card-info { flex: 1; }
.org-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }

.org-frame-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.org-card-arrow {
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.org-card:hover .org-card-arrow { transform: translateX(4px); }

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
    background: transparent;
}

.cta-box {
    position: relative;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(79,70,229,0.1));
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 28px;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.cta-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,0.3), transparent);
    border-radius: 50%;
    top: -100px;
    right: -50px;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    position: relative;
}

.cta-sub {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cta-sub a { color: var(--text-muted); text-decoration: underline; }
.cta-sub a:hover { color: var(--text); }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
}

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

.footer a { color: var(--text-muted); text-decoration: underline; }
.footer a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-desc { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .step-arrow { display: none; }
    .steps { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay for grid items */
.step:nth-child(1) { transition-delay: 0.0s; }
.step:nth-child(3) { transition-delay: 0.1s; }
.step:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(1) { transition-delay: 0.0s; }
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.40s; }
