/* ──────────────────────────────────────────────────────────
   Software Brain Core — Commercial Page Stylesheet
   ────────────────────────────────────────────────────────── */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

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

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    font-size: 0.75rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary-nav {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.btn-primary-nav:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.45);
}

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

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

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    gap: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 120px 0;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 70px;
}

/* Mockup Dashboard */
.hero-mockup-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(249, 115, 22, 0.2) 100%);
    padding: 1px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.hero-mockup {
    background: #0f1422;
    border-radius: calc(var(--radius-lg) - 1px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #141b2c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.mockup-title {
    margin-left: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    display: flex;
    height: 480px;
}

.mockup-sidebar {
    width: 200px;
    background: #0c101c;
    border-right: 1px solid var(--border-color);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.sidebar-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-item.active {
    background: rgba(168, 85, 247, 0.1);
    color: #fff;
    font-weight: 600;
}

.mockup-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.card-purple .card-value { color: var(--accent-purple); }
.card-green .card-value { color: var(--accent-green); }
.card-orange .card-value { color: var(--accent-orange); }

.mockup-chart-placeholder {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    padding-top: 20px;
}

.chart-bar {
    width: 10%;
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.5s ease;
}

.chart-bar span {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chart-bar.highlight {
    background: linear-gradient(to top, var(--accent-purple), var(--accent-orange));
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.chart-bar.highlight span {
    color: #fff;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: #090c14;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-orange { background: rgba(249, 115, 22, 0.1); }
.icon-green { background: rgba(16, 185, 129, 0.1); }
.icon-purple { background: rgba(168, 85, 247, 0.1); }
.icon-blue { background: rgba(59, 130, 246, 0.1); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interactive Sandbox Workspace */
.demo-workspace {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    background: #0f1422;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.demo-controls {
    background: #0c101c;
    padding: 30px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-controls h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.demo-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.9rem;
}

.demo-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.demo-metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.demo-metric-row span {
    color: var(--text-muted);
}

.status-valid { color: var(--accent-green); }
.status-invalid { color: var(--accent-red); }

.delta-neutral { color: var(--text-muted); }
.delta-positive { color: var(--accent-red); }
.delta-negative { color: var(--accent-green); }

.demo-alerts-container {
    font-size: 0.8rem;
    line-height: 1.4;
    min-height: 50px;
}

.demo-graph-canvas {
    position: relative;
    background: radial-gradient(circle at center, #131929 0%, #0f1422 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.canvas-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 75%);
}

.graph-nodes-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.graph-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.graph-node:hover {
    border-color: var(--accent-purple);
    transform: scale(1.05);
}

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

.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.shown {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
}

.pricing-card.highlighted {
    background: linear-gradient(180deg, rgba(22, 28, 45, 0.8) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15);
}

.badge-recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.price span {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    padding: 12px;
}

/* Telegram Live Widget */
.telegram-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: #182239;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.widget-header {
    background: #131b2e;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

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

.widget-body {
    padding: 14px;
}

.telegram-sender {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.telegram-text {
    font-size: 0.8rem;
    line-height: 1.45;
}

.telegram-text code {
    background: rgba(0,0,0,0.2);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Footer */
.footer {
    background: #080a10;
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

.footer-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .demo-workspace {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ──────────────────────────────────────────────────────────
   Light Theme Override Variables & Classes
   ────────────────────────────────────────────────────────── */
body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-muted: #64748b;
}

body.light-theme .navbar {
    background: rgba(248, 250, 252, 0.8);
}

body.light-theme .logo {
    color: #0f172a;
}

body.light-theme .nav-links a {
    color: #475569;
}

body.light-theme .nav-links a:hover {
    color: var(--accent-purple);
}

body.light-theme .lang-select {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .theme-toggle {
    color: #0f172a;
}

body.light-theme .hero-subtitle {
    color: #475569;
}

body.light-theme .feature-card {
    background: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card h3 {
    color: #0f172a;
}

body.light-theme .feature-card p {
    color: #475569;
}

body.light-theme .section-title {
    color: #0f172a;
}

body.light-theme .section-subtitle {
    color: #475569;
}

body.light-theme .demo-workspace {
    background: #ffffff;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

body.light-theme .demo-controls {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .demo-controls h3 {
    color: #0f172a;
}

body.light-theme .demo-controls label {
    color: #475569;
}

body.light-theme .demo-select {
    background: rgba(0, 0, 0, 0.03);
    color: #0f172a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .demo-select option {
    background: #ffffff;
    color: #0f172a;
}

body.light-theme .demo-metric-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .demo-metric-row span {
    color: #64748b;
}

body.light-theme .pricing-card {
    background: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

body.light-theme .pricing-card h3 {
    color: #0f172a;
}

body.light-theme .pricing-card .price {
    color: #0f172a;
}

body.light-theme .pricing-features li {
    color: #475569;
}

body.light-theme .pricing-card.highlighted {
    background: linear-gradient(180deg, #ffffff 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 2px solid var(--accent-purple);
}

body.light-theme .telegram-widget {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

body.light-theme .widget-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.light-theme .telegram-sender {
    color: var(--accent-blue);
}

body.light-theme .telegram-text {
    color: #334155;
}

body.light-theme .telegram-text code {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

body.light-theme .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
}

body.light-theme .footer p {
    color: #64748b;
}

body.light-theme .footer-links a {
    color: #64748b;
}

body.light-theme .footer-links a:hover {
    color: var(--accent-purple);
}

body.light-theme .hero-mockup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.1);
}

body.light-theme .mockup-header {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #64748b;
}

body.light-theme .mockup-sidebar {
    background: #f8fafc;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    color: #475569;
}

body.light-theme .sidebar-item {
    color: #475569;
}

body.light-theme .sidebar-item.active {
    background: rgba(168, 85, 247, 0.08);
    color: var(--accent-purple);
}

body.light-theme .mockup-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .card-label {
    color: #64748b;
}

body.light-theme .card-value {
    color: #0f172a;
}

body.light-theme .mockup-chart-placeholder {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

body.light-theme .chart-bar {
    background: rgba(168, 85, 247, 0.2);
}

body.light-theme .chart-bar.highlight {
    background: var(--accent-purple);
}

body.light-theme .chart-bar span {
    color: #475569;
}

body.light-theme .chart-bar.highlight span {
    color: #ffffff;
}

body.light-theme .demo-graph-canvas {
    background: #f8fafc;
}

body.light-theme .graph-node {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #0f172a;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05);
}

