/* ===================================
   JONI WEBSITE - PREMIUM DESIGN SYSTEM
   =================================== */

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

:root {
    /* Colors */
    --purple-500: #8B5CF6;
    --purple-400: #A78BFA;
    --pink-500: #EC4899;
    --pink-400: #F472B6;
    --indigo-500: #6366F1;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-500: #64748B;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    
    /* Spacing (8px base) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 400ms;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===================================
   NAVIGATION
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--slate-900);
    text-decoration: none;
}

.logo-text {
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--slate-800);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--purple-500);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--slate-900);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all var(--duration) var(--ease);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: white;
    color: var(--slate-800);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid var(--slate-100);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--purple-500);
    color: var(--purple-500);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--slate-500);
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-visual {
    margin-top: var(--space-3xl);
    height: 400px;
    position: relative;
}

/* Octopus Animation */
.octopus-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.octopus-body {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.tentacle {
    position: absolute;
    width: 4px;
    height: 150px;
    background: linear-gradient(180deg, var(--purple-400), transparent);
    border-radius: 4px;
    transform-origin: top center;
    animation: wave 3s ease-in-out infinite;
}

.tentacle-1 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(0deg); animation-delay: 0s; }
.tentacle-2 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(45deg); animation-delay: 0.2s; }
.tentacle-3 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(90deg); animation-delay: 0.4s; }
.tentacle-4 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(135deg); animation-delay: 0.6s; }
.tentacle-5 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(180deg); animation-delay: 0.8s; }
.tentacle-6 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(225deg); animation-delay: 1s; }
.tentacle-7 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(270deg); animation-delay: 1.2s; }
.tentacle-8 { left: 50%; top: 50%; transform: translate(-50%, 60px) rotate(315deg); animation-delay: 1.4s; }

@keyframes wave {
    0%, 100% { transform: translate(-50%, 60px) rotate(var(--rotation, 0deg)); }
    50% { transform: translate(-50%, 60px) rotate(calc(var(--rotation, 0deg) + 15deg)); }
}

.node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--purple-500);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 10%; left: 15%; animation-delay: 0s; }
.node-2 { top: 10%; right: 15%; animation-delay: 0.3s; }
.node-3 { top: 50%; left: 5%; animation-delay: 0.6s; }
.node-4 { top: 50%; right: 5%; animation-delay: 0.9s; }
.node-5 { bottom: 10%; left: 20%; animation-delay: 1.2s; }
.node-6 { bottom: 10%; right: 20%; animation-delay: 1.5s; }

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

/* ===================================
   TRUST BAR
   =================================== */

.trust-bar {
    padding: var(--space-3xl) 0;
    background: white;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.trust-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    text-align: center;
}

.trust-stat {
    opacity: 0;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 16px;
    color: var(--slate-500);
    font-weight: 500;
}

/* ===================================
   VALUE PROPS
   =================================== */

.value-props {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 20px;
    color: var(--slate-500);
    max-width: 640px;
    margin: 0 auto;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.value-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all var(--duration) var(--ease);
    opacity: 0;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
    border-color: var(--purple-500);
}

.card-icon {
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: var(--space-sm);
}

.card-description {
    font-size: 16px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--purple-500);
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--duration) var(--ease);
}

.card-link:hover {
    transform: translateX(4px);
}

/* ===================================
   FEATURE SHOWCASE
   =================================== */

.feature-showcase {
    padding: var(--space-4xl) 0;
    background: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.showcase-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple-500);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: var(--space-md);
}

.showcase-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: var(--space-md);
}

.showcase-description {
    font-size: 18px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 16px;
    color: var(--slate-800);
}

.showcase-visual {
    opacity: 0;
}

/* Dashboard Mock */
.dashboard-mock {
    background: var(--slate-900);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
}

.dashboard-header {
    padding: var(--space-md);
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.agent-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-active .agent-indicator {
    background: #10B981;
    box-shadow: 0 0 12px #10B981;
    animation: pulse-glow 2s ease-in-out infinite;
}

.agent-waiting .agent-indicator {
    background: #F59E0B;
}

.agent-complete .agent-indicator {
    background: var(--purple-500);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.agent-info {
    flex: 1;
}

.agent-name {
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.agent-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.agent-progress {
    color: white;
    font-weight: 600;
    font-size: 16px;
}

/* ===================================
   USE CASES
   =================================== */

.use-cases {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.use-case-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all var(--duration) var(--ease);
    opacity: 0;
}

.use-case-card:hover {
    border-color: var(--purple-500);
    transform: translateY(-4px);
}

.use-case-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    color: white;
    font-weight: 800;
    font-size: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.use-case-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: var(--space-sm);
}

.use-case-description {
    font-size: 16px;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ===================================
   FINAL CTA
   =================================== */

.final-cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.final-cta .btn-primary {
    background: white;
    color: var(--purple-500);
}

.final-cta .btn-primary:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.final-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-xl);
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: var(--space-sm);
    transition: color var(--duration) var(--ease);
}

.footer-column a:hover {
    color: var(--purple-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
    background: var(--purple-500);
    color: white;
    transform: translateY(-2px);
}

/* Matrix Easter Egg Trigger */
.matrix-trigger {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    font-size: 12px;
    opacity: 0.3;
    transition: all var(--duration) var(--ease);
    user-select: none;
}

.matrix-trigger:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
    color: var(--purple-400);
}

/* ===================================
   MATRIX EASTER EGG
   =================================== */

.matrix-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: none;
    opacity: 0;
    transition: opacity 600ms var(--ease);
}

.matrix-overlay.active {
    display: block;
    opacity: 1;
}

#matrixCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.matrix-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.matrix-text {
    font-size: clamp(64px, 12vw, 128px);
    font-weight: 800;
    color: #0F0;
    text-shadow: 0 0 20px #0F0, 0 0 40px #0F0;
    letter-spacing: 0.2em;
    animation: glitch 2s infinite;
}

.matrix-subtitle {
    font-size: clamp(18px, 3vw, 32px);
    color: rgba(0, 255, 0, 0.7);
    text-shadow: 0 0 10px #0F0;
    margin-top: var(--space-md);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.matrix-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #0F0;
    color: #0F0;
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    z-index: 20;
}

.matrix-close:hover {
    background: #0F0;
    color: #000;
    transform: rotate(90deg);
}

/* ===================================
   ANIMATIONS
   =================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 800ms var(--ease) forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.visible {
    animation: fadeInUp 800ms var(--ease) forwards;
}

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

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .value-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .matrix-trigger {
        position: static;
        transform: none;
        margin-top: var(--space-md);
    }
    
    .matrix-trigger:hover {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .btn-large {
        width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .trust-content {
        grid-template-columns: 1fr;
    }
}