:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0c;
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    --accent: #1bcbf1;
    --accent-dark: #0093b5;
    --accent-glow: rgba(27, 203, 241, 0.3);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%220.03%22/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    color: #a8b0bd;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.accent-text {
    color: var(--accent);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-glow-1 {
    position: absolute;
    top: -10%; left: 10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(27,203,241,0.15) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%; right: 10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,147,181,0.1) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.stat strong {
    font-size: 1.25rem;
    color: white;
}

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

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-image {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

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

.visual-blur {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.2;
    z-index: 1;
}

/* Sections Global */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    border-color: rgba(27, 203, 241, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 20px rgba(27, 203, 241, 0.1);
}

.card-centered {
    justify-content: center;
}

.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-highlight {
    background: linear-gradient(180deg, rgba(27,203,241,0.05) 0%, var(--bg-secondary) 100%);
}

.card-highlight h3 {
    font-size: 2rem;
}

.site-visual {
    margin-top: auto;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #000000 100%);
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    height: 180px;
    padding: 20px;
    border-bottom: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover .site-visual {
    transform: translateY(0);
    box-shadow: 0 -15px 50px rgba(27, 203, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mockup-header span {
    width: 10px; height: 10px; border-radius: 50%;
}

.mockup-header span:nth-child(1) { background: #ff5f56; }
.mockup-header span:nth-child(2) { background: #ffbd2e; }
.mockup-header span:nth-child(3) { background: #27c93f; }

.mockup-line {
    height: 12px; background: rgba(255, 255, 255, 0.08);
    border-radius: 6px; margin-bottom: 14px;
}
.w-70 { width: 75%; }
.w-40 { width: 45%; }
.mockup-btn {
    width: 100px; height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 6px; margin-top: 24px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.card-wide {
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.card-content {
    padding: 32px 40px;
    flex: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.card-content .card-icon {
    margin-bottom: 16px;
}

.card-content h3 {
    margin-bottom: 12px;
}

.card-graphic {
    flex: 1;
    height: 100%;
    min-height: 260px;
    background: radial-gradient(circle at center, rgba(27,203,241,0.15) 0%, transparent 60%), url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    position: relative;
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-graphic::after {
    content: '';
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 80px var(--accent), inset 0 0 20px #ffffff;
    opacity: 0.8;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Features */
.features {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 24px;
}

.feature-icon {
    width: 60px; height: 60px;
    min-width: 60px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(27,203,241,0.1) 0%, rgba(5,5,5,0) 60%);
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 80px 40px;
    backdrop-filter: blur(20px);
}

.cta-container h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.cta-container p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-subtext {
    margin-top: 24px !important;
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links a, .footer-links p {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 { grid-column: span 2; }
    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { margin: 0 auto 40px; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .col-span-2 { grid-column: span 1; }
    .row-span-2 { grid-row: span 1; }
    
    .card-wide {
        flex-direction: column;
    }
    .card-graphic {
        width: 100%;
        height: 200px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    .section-header h2 { font-size: 2.2rem; }
    .cta-container h2 { font-size: 2.5rem; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Legal Pages */
.legal-content { padding: 180px 0 80px; max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 3.5rem; margin-bottom: 40px; text-align: center; }
.legal-content h2 { font-size: 2rem; margin-top: 40px; margin-bottom: 20px; color: var(--text-main); }
.legal-content p, .legal-content li { margin-bottom: 16px; font-size: 1.1rem; color: #a8b0bd; line-height: 1.8; }
.legal-content ul { margin-left: 24px; margin-bottom: 24px; }

/* Chat Widget Native */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    color: var(--bg-primary);
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 380px;
    height: 500px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
}

.chat-header h4 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.2;
}

.chat-header span {
    font-size: 0.75rem;
    color: #27c93f;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-header span::before {
    content: '';
    width: 6px; height: 6px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 5px #27c93f;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.chat-close:hover {
    color: var(--text-main);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-message {
    background: var(--accent);
    color: var(--bg-primary);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

#chat-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: var(--accent);
}

#chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#chat-send:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px !important;
}

.typing-indicator span {
    width: 6px; height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        bottom: 90px;
        right: 20px;
    }
}
