/* CSS DESIGN SYSTEM - llm.everv.fun (SaaS Custom Landing Page) */

:root {
    --bg-color: #020204;
    --card-bg: rgba(10, 10, 18, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Neon Colors */
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.35);
    --pink: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.3);
    
    /* Font */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatGlow 22s infinite alternate ease-in-out;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    bottom: 20%;
    right: -10%;
    animation: floatGlow 28s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.15); }
}

/* Sticky Navigation Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 2, 4, 0.7);
    z-index: 100;
}

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

.logo-dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 0 10px var(--purple-glow);
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--cyan);
    margin-left: 4px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(to right, var(--purple), var(--cyan));
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sound-toggle-btn, .lang-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-family);
}

.sound-toggle-btn:hover, .lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--purple);
    transform: scale(1.05);
    color: var(--cyan);
}

.sound-toggle-btn i.fa-volume-high {
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}

.cta-header-btn {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border: none;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
}

.cta-header-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

/* Page Progress Bar */
.page-progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.02);
    z-index: 101;
}

.page-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--purple), var(--pink), var(--cyan));
    transition: width 0.1s ease-out;
}

/* Layout Wrapper */
.main-layout {
    width: 100%;
    margin-top: 70px;
    z-index: 10;
    position: relative;
}

/* Common Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
    padding: 0 20px;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SECTION 1: HERO Layout */
.section-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--purple-glow);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-actions-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.hero-btn.primary-btn {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.hero-btn.primary-btn .btn-glow {
    position: absolute;
    inset: -5px;
    background: conic-gradient(from 0deg, var(--purple), var(--pink), var(--cyan), var(--purple));
    animation: rotateGlow 3s linear infinite;
    z-index: 0;
}

.hero-btn.primary-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: #050508;
    border-radius: 22px;
    z-index: 1;
}

.hero-btn.primary-btn .btn-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-btn.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* 3D Brain canvas container */
.hero-right .canvas-wrapper {
    width: 100%;
    aspect-ratio: 1;
    max-width: 450px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#canvas-brain {
    width: 100%;
    height: 100%;
    z-index: 2;
}

.canvas-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    opacity: 0.6;
}

/* SECTION 2: LIVE SIMULATOR Layout */
.section-simulator {
    padding: 100px 50px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.simulator-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    margin-top: 20px;
}

/* Left Preset Buttons list */
.presets-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(10, 10, 18, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    height: fit-content;
}

.presets-panel h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.preset-btn.active {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--purple);
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.15);
}

/* Right Chat Terminal Simulator styling */
.terminal-chat {
    background: #040407;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    flex-shrink: 0;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background-color: #ef4444; }
.terminal-dots span:nth-child(2) { background-color: #f59e0b; }
.terminal-dots span:nth-child(3) { background-color: #10b981; }

.terminal-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 201, 0.6);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.terminal-ping {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-ping strong {
    color: #10b981;
}

.terminal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat terminal */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Messages styling inside simulator */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-message.user {
    background: rgba(255, 255, 255, 0.04);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-message.bot {
    background: rgba(139, 92, 246, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
}

/* Cursor typing effect */
.typing-cursor::after {
    content: '|';
    animation: blinkCursor 0.8s infinite step-end;
    color: var(--cyan);
    font-weight: 700;
}

@keyframes blinkCursor {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

.terminal-footer {
    height: 56px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    background: rgba(2, 2, 4, 0.4);
    flex-shrink: 0;
}

.terminal-footer input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 10px 15px;
    font-family: var(--font-family);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* SECTION 3: FEATURES GRID Layout */
.section-features {
    padding: 100px 50px;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.feature-card {
    background: rgba(10, 10, 18, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
    background: rgba(139, 92, 246, 0.02);
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--purple);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.08);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

/* Specifications Glass Card details in the grid */
.feature-card.specs-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
}

.specs-card .card-glow-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--purple) 25%, var(--cyan) 50%, transparent 75%);
    animation: rotateGlow 5s linear infinite;
    z-index: 0;
}

.specs-card::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: #07070c;
    border-radius: 23px;
    z-index: 1;
}

.specs-card .card-content {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.specs-card .card-icon-wrapper {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.08);
}

.specs-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-list li:last-child {
    border: none;
    padding-bottom: 0;
}

.spec-label {
    color: var(--text-secondary);
}

.spec-val {
    color: #ffffff;
    font-weight: 600;
}

/* SECTION 4: SECURITY PIPELINE Layout */
.section-security {
    padding: 120px 50px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-security .svg-path-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.section-security .connecting-svg {
    width: 100%;
    height: 100%;
}

.section-security .connecting-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawSecurityLine 4s infinite linear;
}

@keyframes drawSecurityLine {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

.security-nodes {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    width: 100%;
    margin: 60px auto 0 auto;
    position: relative;
    z-index: 2;
}

.sec-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sec-node .node-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #07070b;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    box-shadow: 0 0 0 rgba(139, 92, 246, 0);
    transition: all 0.5s ease;
}

.sec-node.active .node-icon {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 25px var(--purple-glow),
                0 0 10px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sec-node .node-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.sec-node.active .node-label {
    color: #ffffff;
}

/* SECTION 5: FOOTER Layout */
.site-footer {
    padding: 50px;
    background: rgba(4, 4, 7, 0.6);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.footer-cta-btn {
    position: relative;
    padding: 12px 32px;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.footer-cta-btn .btn-glow {
    position: absolute;
    inset: -5px;
    background: conic-gradient(from 0deg, var(--purple), var(--pink), var(--cyan), var(--purple));
    animation: rotateGlow 3s linear infinite;
    z-index: 0;
}

.footer-cta-btn::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: #09090e;
    border-radius: 22px;
    z-index: 1;
}

.footer-cta-btn .btn-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-cta-btn:hover {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

/* RESPONSIVE LAYOUT STYLING */

/* Tablets and Mobile Landscape */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .simulator-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .presets-panel {
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
    }
    
    .presets-panel h4 {
        display: none;
    }
    
    .preset-btn {
        white-space: nowrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Screens (iPhone) */
@media (max-width: 768px) {
    .site-header {
        padding: 0 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .section-hero {
        padding: 40px 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-actions-row {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .section-simulator {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .presets-panel {
        width: 100%;
    }
    
    .terminal-chat {
        height: 350px;
    }
    
    .section-features {
        padding: 60px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-security {
        padding: 60px 20px;
    }
    
    .section-security .svg-path-container {
        display: none; /* Hide line updates on mobile */
    }
    
    .security-nodes {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .site-footer {
        padding: 40px 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
