/* ==========================================================================
   BizKot AI — Unified Dark & Light CSS Stylesheet (Theme Switchable)
   ========================================================================== */

:root {
    /* Dark Theme Variables (Default) */
    --bg-dark: #090c15; /* Dark hued space black */
    --bg-card: rgba(16, 22, 37, 0.6);
    --bg-card-hover: rgba(22, 31, 52, 0.85);
    --neon-green: #10b981; /* Premium Emerald/Mint Green */
    --neon-green-glow: rgba(16, 185, 129, 0.15);
    --accent-indigo: #6366f1; /* Premium Electric Indigo */
    --accent-indigo-glow: rgba(99, 102, 241, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(16, 185, 129, 0.2);
    --container-width: 1200px;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Extra theme-dependent backgrounds */
    --bg-header: rgba(9, 12, 21, 0.75);
    --bg-result-card: linear-gradient(135deg, rgba(16, 22, 37, 0.8) 0%, rgba(13, 16, 28, 0.8) 100%);
    --border-result-card: rgba(99, 102, 241, 0.15);
    --text-result-metric: var(--neon-green);
    --text-result-metric-purple: var(--neon-green); /* In dark it is green, in light it is gold */
    --bg-footer: #05080e;
    --bg-modal-overlay: rgba(4, 6, 11, 0.85);
    --bg-modal-card: linear-gradient(135deg, rgba(20, 26, 43, 0.95) 0%, rgba(11, 15, 26, 0.95) 100%);
    --bg-input: #0b0e1a;
    --bg-compare-table: rgba(255, 255, 255, 0.01);
    --bg-compare-highlight: rgba(16, 185, 129, 0.01);
    --bg-compare-highlight-header: rgba(16, 185, 129, 0.03);
    --text-compare-green: #34d399;
}

body.light-theme {
    /* Light Theme Variables - Premium Porcelain Tech Theme */
    --bg-dark: #f4f6fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --neon-green: #10b981; /* Electric Emerald */
    --neon-green-glow: rgba(16, 185, 129, 0.15);
    --accent-indigo: #4f46e5; /* Royal Tech-Indigo */
    --accent-indigo-glow: rgba(79, 70, 229, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(16, 185, 129, 0.25);
    
    /* Extra theme-dependent backgrounds */
    --bg-header: rgba(244, 246, 250, 0.8);
    --bg-result-card: #111827; /* Kept dark for premium contrast */
    --border-result-card: #1f2937;
    --text-result-metric: #10b981;
    --text-result-metric-purple: #fcd34d; /* Soft Gold - visible on dark result card! */
    --bg-footer: #ffffff;
    --bg-modal-overlay: rgba(15, 23, 42, 0.35);
    --bg-modal-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-compare-table: #ffffff;
    --bg-compare-highlight: rgba(16, 185, 129, 0.02);
    --bg-compare-highlight-header: rgba(16, 185, 129, 0.05);
    --text-compare-green: #047857; /* Darker emerald green for table readability */
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    background-color: var(--bg-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    background-position: center top;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.light-theme {
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1.2px, transparent 1.2px);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* Film Grain Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035; /* ultra faint premium film texture */
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

body.light-theme .noise-overlay {
    opacity: 0.025; /* slightly lighter on light backgrounds */
}

/* Ambient soft glow backgrounds (Aurora Fluid) */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(170px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.glow-1 {
    top: -200px;
    right: -100px;
    background: var(--accent-indigo);
    animation: floatAndMorph1 30s ease-in-out infinite;
}

.glow-2 {
    top: 600px;
    left: -200px;
    background: var(--neon-green);
    opacity: 0.08;
    animation: floatAndMorph2 35s ease-in-out infinite;
}

.glow-3 {
    top: 1800px;
    right: -300px;
    background: var(--accent-indigo);
    opacity: 0.06;
    animation: floatAndMorph3 40s ease-in-out infinite;
}

body.light-theme .glow-1 {
    background: #a5b4fc; /* soft pastel lavender */
    opacity: 0.35;
}

body.light-theme .glow-2 {
    background: #a7f3d0; /* soft pastel mint */
    opacity: 0.3;
}

body.light-theme .glow-3 {
    background: #c7d2fe; /* soft light blue-indigo */
    opacity: 0.25;
}

@keyframes floatAndMorph1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    33% { 
        transform: translate(60px, -50px) scale(1.15) rotate(120deg); 
        border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    }
    66% { 
        transform: translate(-40px, 50px) scale(0.9) rotate(240deg); 
        border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    }
}

@keyframes floatAndMorph2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    33% { 
        transform: translate(-50px, 60px) scale(0.85) rotate(-120deg); 
        border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
    }
    66% { 
        transform: translate(50px, -40px) scale(1.1) rotate(-240deg); 
        border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
    }
}

@keyframes floatAndMorph3 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
    50% { 
        transform: translate(-60px, -60px) scale(1.12) rotate(180deg); 
        border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
    }
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.text-indigo {
    color: var(--accent-indigo);
    text-shadow: 0 0 10px var(--accent-indigo-glow);
}

body.light-theme .text-indigo {
    text-shadow: none;
}

.highlight {
    color: var(--neon-green);
}

.logo-dot {
    color: var(--accent-indigo);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

body.light-theme .hero-tag {
    background: rgba(0, 0, 0, 0.02);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s infinite;
}

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

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #6366f1 100%);
    background-size: 200% auto;
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--neon-green-glow);
    border: none;
    animation: btnShimmer 8s linear infinite;
    position: relative;
    overflow: hidden;
}

@keyframes btnShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), 0 0 12px rgba(99, 102, 241, 0.25);
    filter: brightness(1.05);
}

body.light-theme .btn-primary {
    color: #ffffff;
}

/* Arrow hover animations */
.btn .btn-arrow,
.btn-outline-neon .btn-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 6px;
}

.btn:hover .btn-arrow,
.btn-outline-neon:hover .btn-arrow {
    transform: translateX(4px);
}

/* Blog Button Header Link styling */
.btn-blog {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-right: 12px;
}

.btn-blog:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green-glow);
}

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

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
}

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

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header */
.header {
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-header);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background: rgba(9, 12, 21, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .header-scrolled {
    background: rgba(252, 252, 253, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header-scrolled .header-container {
    height: 64px;
}

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

.logo-svg {
    width: 40px;
    height: 40px;
}

@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.logo-eye {
    fill: var(--neon-green);
    transform-origin: 50% 52px;
    animation: eyeBlink 5s infinite;
    transition: fill 0.3s ease;
}

.logo:hover .logo-eye {
    fill: var(--text-primary);
    filter: drop-shadow(0 0 3px var(--neon-green));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    transition: color 0.3s ease;
}

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

.theme-switch-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    outline: none;
}

body.light-theme .theme-switch-btn {
    background: rgba(0, 0, 0, 0.02);
}

.theme-switch-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

body.light-theme .theme-switch-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.theme-icon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

/* Light / Dark icon transitions */
body.light-theme .sun-icon {
    transform: translateY(40px) rotate(45deg);
    opacity: 0;
}
body.light-theme .moon-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}
body:not(.light-theme) .sun-icon {
    transform: translateY(0) rotate(0);
    opacity: 1;
}
body:not(.light-theme) .moon-icon {
    transform: translateY(-40px) rotate(-45deg);
    opacity: 0;
}

/* Outline Neon Button */
.btn-outline-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1.5px solid var(--neon-green);
    background: transparent;
    color: var(--neon-green);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 12px var(--neon-green-glow);
    transition: var(--transition);
}

.btn-outline-neon:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

body.light-theme .btn-outline-neon:hover {
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background-image: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    background-size: 100% 100%;
    background-position: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
    z-index: 1;
}

body.light-theme .hero-section {
    background-image: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title-main {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.hero-title-sub {
    font-size: 1.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1.35;
    background: linear-gradient(135deg, var(--neon-green) 0%, #10b981 30%, #6366f1 70%, var(--neon-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: subShimmer 8s linear infinite;
}

@keyframes subShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 580px;
}

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

/* Glassmorphism Console & Dynamic Glows */
.product-console {
    backdrop-filter: blur(20px);
    background: rgba(14, 22, 33, 0.82) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--console-glow, rgba(16, 185, 129, 0.08)) !important;
    transition: box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-theme .product-console {
    background: rgba(231, 235, 240, 0.85) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 25px var(--console-glow, rgba(51, 144, 236, 0.05)) !important;
}

.product-console.glow-green {
    --console-glow: rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.45) !important;
}

.product-console.glow-purple {
    --console-glow: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.45) !important;
}

.product-console.glow-blue {
    --console-glow: rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.45) !important;
}

/* Real UI Mockup (Premium Telegram Chat Console) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.product-console {
    --tg-bg: #0e1621;
    --tg-user-bubble: #2b5278;
    --tg-bot-bubble: #182533;
    --tg-bubble-text: #f8fafc;
    --tg-time-text: #7f91a4;
    --tg-file-bg: rgba(255, 255, 255, 0.04);
    --tg-file-icon: #2f6ca5;
    
    background: var(--tg-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.light-theme .product-console {
    --tg-bg: #e7ebf0;
    --tg-user-bubble: #effdde;
    --tg-bot-bubble: #ffffff;
    --tg-bubble-text: #111827;
    --tg-time-text: #90a0ad;
    --tg-file-bg: rgba(0, 0, 0, 0.03);
    --tg-file-icon: #3390ec;

    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.console-header {
    background: var(--bg-card);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

body.light-theme .console-header {
    background: #ffffff;
}

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

.tg-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--accent-indigo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tg-header-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.tg-header-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tg-header-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.tg-header-right {
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.console-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 360px;
    overflow-y: auto;
    background: var(--tg-bg);
    transition: background-color 0.3s ease;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.message.user-msg {
    align-self: flex-end;
}

.message.bot-msg {
    align-self: flex-start;
}

.message .text {
    padding: 8px 14px 22px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.message.user-msg .text {
    background: var(--tg-user-bubble);
    color: var(--tg-bubble-text);
    border-bottom-right-radius: 2px;
}

.message.bot-msg .text {
    background: var(--tg-bot-bubble);
    color: var(--tg-bubble-text);
    border-bottom-left-radius: 2px;
    line-height: 1.45;
}

.tg-time {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.65rem;
    color: var(--tg-time-text);
    display: flex;
    align-items: center;
    gap: 3px;
}

.tg-status-ticks {
    color: #4fc3f7;
    font-weight: 700;
}

body.light-theme .tg-status-ticks {
    color: #3390ec;
}

/* Telegram File Card Styles */
.tg-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--tg-file-bg);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.tg-file-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tg-file-icon);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tg-file-ext {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tg-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tg-file-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tg-bubble-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-file-size {
    font-size: 0.7rem;
    color: var(--tg-time-text);
}

.bot-badge {
    background: var(--neon-green-glow);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 6px;
}

.status-ok {
    color: #34d399;
}

body.light-theme .status-ok {
    color: #059669;
}

.status-warning {
    color: #fb7185;
}

body.light-theme .status-warning {
    color: #dc2626;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px var(--neon-green); }
    100% { transform: scale(0.95); opacity: 0.7; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.hero-visual {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Services / Grid */
.services-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background-image: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 65%);
    background-size: 100% 100%;
    background-position: center;
    transition: border-color 0.3s ease;
}

body.light-theme .services-section {
    background-image: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.02) 0%, transparent 65%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

body.light-theme .service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
}

.service-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px var(--neon-green-glow);
}

body.light-theme .service-card:hover {
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.08), 0 0 20px rgba(16, 185, 129, 0.03);
}

.card-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

body.light-theme .card-glow-effect {
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--neon-green);
    transition: var(--transition);
}

body.light-theme .service-icon {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.service-card:hover .service-icon {
    color: #fff;
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

body.light-theme .service-card:hover .service-icon {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.service-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.learn-more {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.service-card:hover .learn-more {
    color: var(--neon-green);
}

.highlight-card {
    border-color: rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(16, 22, 37, 0.6) 0%, rgba(22, 19, 48, 0.4) 100%);
}

body.light-theme .highlight-card {
    border-color: rgba(197, 168, 128, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(197, 168, 128, 0.04) 100%);
}

.highlight-card:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 15px 30px var(--accent-indigo-glow);
}

.highlight-card .accent-icon {
    color: var(--accent-indigo);
}

body.light-theme .highlight-card .accent-icon {
    background: rgba(79, 70, 229, 0.08); /* soft indigo badge */
    border-color: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
}

.highlight-card:hover .accent-icon {
    color: #fff;
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px var(--accent-indigo-glow);
}

body.light-theme .highlight-card:hover .accent-icon {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border-color: #4f46e5;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.services-custom-note {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0 0 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    font-size: 0.98rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

body.light-theme .services-custom-note {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
    color: #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.services-custom-note .note-icon {
    font-size: 1.8rem;
    animation: notePulse 2s infinite ease-in-out;
}

@keyframes notePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0)); }
    50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
}

.services-twin-card {
    cursor: pointer;
    border-radius: 16px;
    padding: 36px 40px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    margin-top: 30px;
}

.twin-card-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .twin-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .twin-card-grid .service-icon {
        margin: 0 auto;
    }
}

.twin-card-info {
    display: flex;
    flex-direction: column;
}

.twin-card-info .service-card-title {
    margin-top: 0;
}

.twin-card-info .service-card-desc {
    margin-bottom: 16px;
}

/* Calculator Section */
.calculator-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-input) 100%);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-header label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.slider-val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neon-green);
}

/* Custom Range Input */
.range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-input);
    outline: none;
    border: 1px solid var(--border-color);
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 8px var(--neon-green-glow);
    transition: var(--transition);
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.result-card-dark {
    border-color: var(--border-result-card);
    background: var(--bg-result-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

body.light-theme .result-card-dark {
    color: #fff; /* result card is dark contrast on light theme */
}

.results-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    color: #fff;
}

.result-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.metric-label {
    font-size: 1rem;
    color: #94a3b8;
}

body.light-theme .metric-label {
    color: #9ca3af;
}

.metric-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-result-metric);
    white-space: nowrap;
    text-align: right;
}

.metric-value.text-indigo {
    color: var(--text-result-metric-purple);
}

.metric-note {
    font-size: 0.8rem;
    color: #4e596f;
    margin-top: 20px;
    margin-bottom: 24px;
}

body.light-theme .metric-note {
    color: #6b7280;
}

/* Compare Section */
.compare-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.compare-wrapper {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    margin-top: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

body.light-theme .compare-wrapper {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.04);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th, .compare-table td {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: var(--transition);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.table-criteria-head {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    width: 25%;
}

.table-chatgpt-head {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 35%;
}

.table-featured-head {
    position: relative;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--neon-green);
    width: 40%;
    background: rgba(16, 185, 129, 0.03);
    border-left: 1px solid rgba(16, 185, 129, 0.15);
    border-right: 1px solid rgba(16, 185, 129, 0.15);
}

body.light-theme .table-featured-head {
    color: #047857;
    background: rgba(16, 185, 129, 0.02);
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 32px;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--accent-indigo) 100%);
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--neon-green-glow);
    animation: badgePulse 2.5s infinite ease-in-out;
}

body.light-theme .featured-badge {
    background: linear-gradient(135deg, #10b981 0%, #4f46e5 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.table-param {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.compare-chatgpt {
    color: var(--text-secondary);
    opacity: 0.85;
    font-size: 0.95rem;
}

.compare-featured {
    color: var(--text-primary);
    font-size: 0.98rem;
    background: rgba(16, 185, 129, 0.03);
    border-left: 1px solid rgba(16, 185, 129, 0.15);
    border-right: 1px solid rgba(16, 185, 129, 0.15);
}

.compare-cell-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.light-theme .compare-featured {
    background: rgba(16, 185, 129, 0.02);
}

/* Compare Badges (Check/Cross) */
.compare-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-cross {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-check {
    background: var(--neon-green-glow);
    color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green-glow);
}

body.light-theme .badge-check {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Lead Capture Section */
.cta-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(0deg, var(--bg-dark) 0%, var(--bg-input) 100%);
    transition: background-color 0.3s ease;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.benefit-icon {
    width: 28px;
    height: 28px;
    background: var(--neon-green-glow);
    color: var(--neon-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-form-container {
    padding: 40px;
    background: var(--bg-card);
}

.form-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px var(--neon-green-glow);
    background: var(--bg-card);
}

.form-security {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 14px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--bg-footer);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* Quiz Section & Widget */
.quiz-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
    position: relative;
    transition: background-color 0.3s ease;
}

.quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-container {
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

body.light-theme .quiz-progress-bar {
    background: rgba(15, 23, 42, 0.06);
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green) 0%, var(--accent-indigo) 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-step-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 24px;
    transition: var(--transition);
}

.quiz-step-indicator.done {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green-glow);
}

.quiz-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }
}

.quiz-option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: var(--transition);
    user-select: none;
}

body.light-theme .quiz-option-card {
    background: #f8fafc;
}

.quiz-option-card:hover {
    border-color: var(--neon-green);
    background: rgba(16, 185, 129, 0.03);
}

body.light-theme .quiz-option-card:hover {
    background: rgba(16, 185, 129, 0.02);
}

.quiz-option-card input[type="checkbox"],
.quiz-option-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    background: transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.quiz-option-card input[type="radio"] {
    border-radius: 50%;
}

.quiz-option-card input[type="checkbox"]:checked,
.quiz-option-card input[type="radio"]:checked {
    background: var(--neon-green);
    border-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green-glow);
}

.quiz-option-card input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
}

.quiz-option-card input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.other-input-wrapper {
    gap: 8px;
    flex-wrap: wrap;
    grid-column: span 2;
}

@media (max-width: 600px) {
    .other-input-wrapper {
        grid-column: span 1;
    }
}

.quiz-other-text-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    font-size: 0.92rem;
    padding: 2px 4px;
    flex-grow: 1;
    min-width: 150px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.quiz-other-text-input:focus {
    border-color: var(--neon-green);
}

/* Quiz navigation alignment */
.quiz-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Quiz results block */
.quiz-results-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-theme .quiz-results-box {
    background: rgba(79, 70, 229, 0.03);
    border-color: rgba(79, 70, 229, 0.12);
    box-shadow: none;
}

.quiz-results-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    text-align: center;
}

body.light-theme .quiz-results-title {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.quiz-lead-prompt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.result-value.text-indigo-highlight {
    color: var(--accent-indigo);
    text-shadow: 0 0 10px var(--accent-indigo-glow);
}

body.light-theme .result-value.text-indigo-highlight {
    color: #4f46e5;
    text-shadow: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-modal-overlay);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: var(--bg-modal-card);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--neon-green);
}

/* Modal Content Styles */
.modal-title {
    font-size: 1.8rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--neon-green);
    margin-bottom: 24px;
    font-weight: 600;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-section-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    border-left: 3px solid var(--neon-green);
    padding-left: 10px;
}

.modal-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.modal-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-bullets li::before {
    content: "•";
    color: var(--neon-green);
    font-weight: bold;
}

.modal-highlight-box {
    background: var(--accent-indigo-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

body.light-theme .modal-highlight-box {
    border-color: rgba(197, 168, 128, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .desktop-br {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.8rem;
    }
    .hero-title-sub {
        font-size: 1.45rem;
    }
    
    .nav {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .compare-table th, .compare-table td {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
}

/* Cookie Consent Banner Removed */

/* Typing Dots Animation for Interactive Console */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    animation: blink 1.4s infinite both;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--neon-green);
}

.typing-dots span:nth-child(2) {
    animation-delay: .2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

/* Contrast Enhancements for Light Theme */
body.light-theme .slider-val {
    color: #047857; /* Dark emerald green for slider values */
}

body.light-theme .compare-table th.table-highlight-col {
    color: #047857; /* Dark emerald green for table column header */
}

body.light-theme .learn-more {
    color: #4f46e5; /* Royal indigo link color for visibility on white */
}

body.light-theme .service-card:hover .learn-more {
    color: #10b981; /* Emerald green on hover */
}

body.light-theme .btn-outline-neon {
    color: #047857;
    border-color: #047857;
}

body.light-theme .btn-outline-neon:hover {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
}

body.light-theme .tg-header-status {
    color: #475569;
}

/* Custom Solutions Section */
.custom-solutions-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.custom-solutions-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
        "header visual"
        "cards visual"
        "banner visual";
    gap: 30px 80px;
    align-items: center;
}

.custom-header {
    grid-area: header;
}

.custom-cards-grid {
    grid-area: cards;
}

.custom-solutions-visual {
    grid-area: visual;
}

.custom-diagnostic-banner {
    grid-area: banner;
}

@media (max-width: 991px) {
    .custom-solutions-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "cards"
            "visual"
            "banner";
        gap: 40px;
    }
}

.custom-lead-text {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Custom Cards Grid (Apple Editorial Layout) */
.custom-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .custom-cards-grid {
        grid-template-columns: 1fr;
    }
}

.custom-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

body.light-theme .custom-card {
    background: #f8fafc;
}

.card-glow-emerald:hover {
    border-color: var(--neon-green);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}

.card-glow-indigo:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.05);
}

.card-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.2;
    margin-bottom: 16px;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

/* Light up numbers on card hover */
.card-glow-emerald:hover .card-num {
    opacity: 1;
    color: var(--neon-green);
    text-shadow: 0 0 15px var(--neon-green-glow);
}

.card-glow-indigo:hover .card-num {
    opacity: 1;
    color: var(--accent-indigo);
    text-shadow: 0 0 15px var(--accent-indigo-glow);
}

body.light-theme .card-glow-emerald:hover .card-num {
    color: #047857;
    text-shadow: none;
}

body.light-theme .card-glow-indigo:hover .card-num {
    color: #4f46e5;
    text-shadow: none;
}

.card-headline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

/* Callout Diagnostics Banner */
.custom-diagnostic-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 30px;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.custom-diagnostic-banner:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.08);
}

body.light-theme .custom-diagnostic-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(16, 185, 129, 0.01) 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

.banner-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

body.light-theme .banner-badge {
    background: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
}

.banner-main-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.banner-action-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-theme .banner-action-indicator {
    color: #047857;
}

.arrow-bounce {
    animation: arrowBounce 1.5s infinite ease-in-out;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Interactive Brain Schema */
.brain-schema-container {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-core, .brain-node, .particle {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.brain-core {
    position: relative;
    width: 110px;
    height: 110px;
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px var(--neon-green-glow);
    z-index: 10;
}

body.light-theme .brain-core {
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.brain-icon {
    font-size: 2.2rem;
    animation: brainFloat 3s infinite ease-in-out;
}

.brain-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-top: 4px;
}

.brain-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--neon-green);
    border-radius: 50%;
    animation: pulseGlow 2.5s infinite linear;
    pointer-events: none;
}

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

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.brain-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: orbitRotate 30s infinite linear;
}

.brain-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    animation: counterRotate 30s infinite linear;
}

body.light-theme .brain-node {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* 6 nodes absolute positions on 125px radius circle */
.node-crm {
    left: calc(50% - 40px + 125px);
    top: calc(50% - 40px);
}

.node-docs {
    left: calc(50% - 40px + 62px);
    top: calc(50% - 40px + 108px);
}

.node-history {
    left: calc(50% - 40px - 62px);
    top: calc(50% - 40px + 108px);
}

.node-tables {
    left: calc(50% - 40px - 125px);
    top: calc(50% - 40px);
}

.node-nda {
    left: calc(50% - 40px - 62px);
    top: calc(50% - 40px - 108px);
}

.node-api {
    left: calc(50% - 40px + 62px);
    top: calc(50% - 40px - 108px);
}

.node-icon {
    font-size: 1.5rem;
}

.node-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
    padding: 0 4px;
}

/* Flying documents merging particle animations */
.brain-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    top: calc(50% + var(--y));
    left: calc(50% + var(--x));
    opacity: 0;
    transform: scale(1);
    animation: particleMerge 4s infinite ease-in-out;
    animation-delay: var(--delay);
}

body.light-theme .particle {
    background: rgba(15, 23, 42, 0.02);
}

@keyframes particleMerge {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--x) * -1), calc(var(--y) * -1)) scale(0.4);
    }
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes counterRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Sliders Title inside parameters card */
.sliders-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    color: var(--text-primary);
}

body.light-theme .sliders-title {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
    position: relative;
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

body.light-theme .faq-item {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.faq-item[open] {
    border-bottom-color: rgba(99, 102, 241, 0.3);
}

body.light-theme .faq-item[open] {
    border-bottom-color: rgba(79, 70, 229, 0.3);
}

.faq-question {
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--neon-green);
}

body.light-theme .faq-question:hover {
    color: #047857;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--neon-green);
}

body.light-theme .faq-item[open] .faq-icon {
    color: #047857;
}

.faq-answer {
    padding: 0 0 24px 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Mobile Optimization Overrides */
@media (max-width: 768px) {
    .ambient-glow {
        display: none !important;
    }
    .header {
        backdrop-filter: none !important;
        background: rgba(9, 12, 21, 0.96) !important;
    }
    body.light-theme .header {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    .product-console {
        backdrop-filter: none !important;
        background: var(--tg-bg) !important;
    }
    .compare-wrapper {
        backdrop-filter: none !important;
        background: rgba(14, 22, 33, 0.95) !important;
    }
    body.light-theme .compare-wrapper {
        background: #ffffff !important;
    }
    .modal {
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.85) !important;
    }
    .header-container {
        height: 64px !important;
    }
    .header-container .btn-outline-neon {
        display: none !important;
    }
    .hero-section {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }
    .services-section, .calculator-section, .custom-solutions-section, .cta-section, .faq-section {
        padding: 70px 0 !important;
    }
    .section-title {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }
    .cta-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    .compare-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .compare-table {
        min-width: 580px;
    }
    .brain-nodes {
        animation: none !important;
    }
    .brain-node {
        animation: none !important;
    }
}

@media (max-width: 576px) {
    .btn-blog {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 60px !important;
    }
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }
    .hero-title-main {
        font-size: 2.2rem !important;
    }
    .hero-title-sub {
        font-size: 1.25rem !important;
    }
    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }
    .container {
        padding: 0 16px !important;
    }
    .service-card, .custom-card, .cta-form-container, .card {
        padding: 24px 18px !important;
    }
    .brain-schema-container {
        transform: scale(0.85);
        margin: -20px auto;
    }
}

@media (max-width: 360px) {
    .brain-schema-container {
        transform: scale(0.72);
        margin: -45px auto;
    }
}

/* Global Preventative Layout Fixes */
.form-checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
}

/* Telegram link styling in header */
.tg-channel-link {
    color: var(--text-secondary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none !important;
    margin-right: 12px;
}

.tg-channel-link:hover {
    color: var(--neon-green) !important;
    filter: drop-shadow(0 0 5px var(--neon-green-glow));
    transform: scale(1.05);
}

body.light-theme .tg-channel-link:hover {
    color: var(--accent) !important;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}
