/* ==========================================================================
   OCTOPUS ARTS - DESIGN SYSTEM & STYLES (PHASE 1)
   ========================================================================== */

/* --- 1. CSS VARIABLES (DESIGN SYSTEM) --- */
:root {
    --bg-main: #05080D;
    --bg-secondary: #0A111D;
    --bg-card: #0E1726;
    --cyan: #45C7E8;
    --blue: #3388FF;
    --gold: #F6A623;
    --green: #2DD881;
    --red: #FF3366;
    --font-primary: 'Inter', sans-serif;
    
    --surface-light: rgba(14, 23, 38, 0.65);
    
    --border-light: rgba(255, 255, 255, 0.05);
    --border-color: var(--border-light);
    --border-focus: rgba(69, 199, 232, 0.4);
    
    --bg-color: var(--bg-main);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --glow-cyan: 0 0 20px rgba(69, 199, 232, 0.2);
    --glow-gold: 0 0 20px rgba(246, 166, 35, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition-fast: 250ms ease-in-out;
    --transition-normal: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
    --marquee-height: 40px;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#overview,
#technology,
#performance,
#pricing,
#installation-process,
#suitability,
#faq,
#contact,
#risk-warning {
    scroll-margin-top: calc(var(--header-height) + var(--marquee-height) + 24px);
}

html {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: calc(var(--header-height) + var(--marquee-height));
}

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

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* A11Y Focus Styles */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- 3. BACKGROUND EFFECTS --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.bg-glow-cyan {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

.bg-glow-gold {
    top: 40%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

/* --- 4. TYPOGRAPHY & UTILITIES --- */
.text-gradient {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: inherit;
}

.text-cyan { color: var(--cyan); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.w-full { width: 100%; }

.link-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--bg-main);
}
.btn-primary:hover:not(.link-disabled) {
    background-color: #55d0ef;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-ghost:hover:not(.link-disabled) {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}
.btn-outline:hover:not(.link-disabled) {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-main);
}
.btn-gold:hover:not(.link-disabled) {
    background-color: #f7b445;
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

/* --- 5. HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color var(--transition-fast), border-bottom var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(5, 8, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-desktop {
    display: none;
}

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

.nav-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-list a:hover:not(.link-disabled) {
    color: var(--text-primary);
}

.nav-list a:not(.link-disabled)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--cyan);
    transition: width var(--transition-fast);
}

.nav-list a:not(.link-disabled):hover::after {
    width: 100%;
}

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

.header-actions .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    padding: 8px;
    color: var(--text-primary);
    border-radius: 4px;
}

@media (min-width: 1200px) {
    .nav-desktop { display: block; }
    .header-actions .btn { display: inline-flex; }
    .menu-toggle { display: none; }
}

/* --- 6. MOBILE NAVIGATION --- */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.nav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
}

.nav-mobile-list {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
}

.nav-mobile-list li {
    margin-bottom: 24px;
}

.nav-mobile-list a {
    font-size: 18px;
    font-weight: 500;
}

.nav-mobile-actions {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- 7. MARQUEE --- */
.marquee-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--marquee-height);
    background-color: #0c142b;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 90;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee-group {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 8. HERO COMMON --- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    min-height: calc(100vh - var(--header-height) - var(--marquee-height));
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(69, 199, 232, 0.1);
    border: 1px solid rgba(69, 199, 232, 0.2);
    border-radius: 100px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.mockup-container {
    position: relative;
    width: 100%;
    perspective: 1000px;
}

.mockup-window {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-normal);
}

.mockup-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.mockup-actions {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.action-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.action-btn.close { background-color: #ff5f56; }
.action-btn.minimize { background-color: #ffbd2e; }
.action-btn.maximize { background-color: #27c93f; }

.mockup-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    background-color: #020408;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    background-image: repeating-linear-gradient(45deg, #0a111d 25%, transparent 25%, transparent 75%, #0a111d 75%, #0a111d), repeating-linear-gradient(45deg, #0a111d 25%, var(--bg-main) 25%, var(--bg-main) 75%, #0a111d 75%, #0a111d);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.placeholder-text {
    z-index: 2;
    color: var(--text-muted);
    font-size: 14px;
    font-family: monospace;
}

.placeholder-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

/* Floating Chips */
.floating-chip {
    position: absolute;
    background-color: rgba(14, 23, 38, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

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

@media (max-width: 1199px) {
    .floating-chip { display: none; }
    .mockup-window { transform: none !important; }
}

/* --- HERO B (CĂN GIỮA) --- */
.hero.variant-b .hero-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.hero.variant-b .badge-center { margin-left: auto; margin-right: auto; }
.hero.variant-b .hero-title-center {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero.variant-b .hero-subtitle-center {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero.variant-b .hero-buttons-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }

.hero.variant-b .hero-highlight-card-center {
    background-color: rgba(14, 23, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 64px auto;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero.variant-b .hero-highlight-card-center:hover { border-color: rgba(246, 166, 35, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(246, 166, 35, 0.05); }

@media (min-width: 600px) {
    .hero.variant-b .hero-highlight-card-center { flex-direction: row; align-items: center; justify-content: space-between; }
}

.hero.variant-b .hero-visual-center { width: 100%; max-width: 1000px; margin: 0 auto; }
.hero.variant-b .window-large { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: translateY(0); }
.hero.variant-b .window-large:hover { transform: translateY(-10px); }

/* --- 9. TRUST METRICS --- */
.trust-metrics {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.metrics-header { margin-bottom: 24px; }

.badge-outline {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background-color: rgba(14, 23, 38, 0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding: 40px; }
}

.metric-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.metric-divider { display: none; width: 1px; background: linear-gradient(to bottom, transparent, var(--border-light), transparent); }

@media (min-width: 768px) { .metric-divider { display: block; } }

.metric-value { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; }
.metric-label { font-size: 14px; color: var(--text-secondary); }
.metric-item.highlight .metric-label { color: var(--text-primary); font-weight: 600; }

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-icon { flex-shrink: 0; margin-top: 2px; }


/* --- 10. PERFORMANCE TABS --- */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}
.tab-btn {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}
.tab-btn:hover {
    border-color: var(--cyan);
    color: var(--text-primary);
}
.tab-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--cyan);
}
.tab-btn.active {
    background: var(--surface-light);
    border-color: var(--cyan);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}
.tab-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.indicator-live { background: var(--green); }
.indicator-backtest { background: var(--gold); }

.tab-panel {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}
.js .tab-panel {
    display: none;
}
.js .tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}
.badge-live {
    background: rgba(0, 255, 170, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 170, 0.2);
}
.badge-backtest {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.panel-title {
    font-size: 24px;
    margin-bottom: 32px;
}

/* LIVE TAB */
.live-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}
.live-info {
    border-right: 1px solid var(--border-light);
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.live-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}
.info-label { color: var(--text-secondary); font-size: 14px; }
.info-value { font-weight: 600; }

.live-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.metric-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.box-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.box-value { font-size: 24px; font-weight: 700; }
.box-gain { border-color: rgba(0, 255, 170, 0.3); background: rgba(0, 255, 170, 0.05); }
.box-drawdown { border-color: rgba(255, 51, 102, 0.3); background: rgba(255, 51, 102, 0.05); }

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}
.panel-note { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* BACKTEST TAB */
.backtest-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.backtest-stats {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text-secondary); }
.stat-val { font-weight: 600; }

.drawdown-card {
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.drawdown-title { color: var(--red); margin-bottom: 16px; font-size: 18px; }
.drawdown-item { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.dd-label { font-size: 14px; color: var(--text-secondary); }
.dd-val { font-size: 20px; font-weight: 700; }
.dd-note { font-size: 12px; color: var(--text-secondary); margin-top: 16px; font-style: italic; line-height: 1.4; }

.backtest-visual-container {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 16px;
    overflow: hidden;
}
.backtest-visual-container img { width: 100%; height: 100%; object-fit: cover; }
.backtest-action { text-align: right; }

.panel-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 4px solid var(--gold);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}
.panel-warning svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* --- 11. VIDEO DEMO --- */
.demo-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}
.video-container {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}
.video-placeholder-text {
    margin-top: 16px;
    color: var(--text-secondary);
}
.demo-features {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.demo-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.feat-icon {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- 12. COMPARISON --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.comp-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    position: relative;
}
.comp-octopus {
    border-color: var(--cyan);
    background: linear-gradient(180deg, rgba(0,240,255,0.05) 0%, rgba(0,0,0,0) 100%), var(--surface-light);
}
.comp-glow {
    position: absolute;
    top: -20px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 100px;
    background: var(--cyan);
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
}
.comp-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
    letter-spacing: 1px;
}
.comp-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.comp-octopus .comp-list li {
    color: var(--text-primary);
}
.comp-list svg { flex-shrink: 0; margin-top: 4px; }

/* --- 13. ANIMATIONS (SCROLL REVEAL) --- */
.scroll-reveal {
    opacity: 1;
    transform: none;
}

.js .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }
.reveal-delay-4 { transition-delay: 600ms; }

/* --- 11. REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .marquee-content { animation: none !important; overflow-x: auto; }
    .floating-chip { animation: none !important; transform: none !important; }
    .mockup-window { transform: none !important; }
}



/* --- SCROLL OFFSET --- */
#overview, #technology, #performance, #pricing, #faq {
    scroll-margin-top: calc(var(--header-height) + var(--marquee-height) + 24px);
}

/* --- COMPATIBILITY STRIP --- */
.compatibility-strip {
    background-color: #030508;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
}
.strip-title {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.strip-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}
.strip-icon {
    font-family: monospace;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* --- COMMON SECTION STYLES --- */
.section-padding {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 64px;
}
.eyebrow {
    color: var(--cyan);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* --- MARKET CHALLENGES --- */
.market-challenges {
    background-color: var(--bg-main);
}
.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .challenges-grid { grid-template-columns: repeat(3, 1fr); }
}
.challenge-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-fast);
}
.challenge-card:hover {
    transform: translateY(-6px);
    border-color: rgba(69, 199, 232, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(69, 199, 232, 0.05);
}
.challenge-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(69, 199, 232, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    margin-bottom: 24px;
}
.challenge-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.challenge-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* --- TECHNOLOGY (SIDEWAY & TREND) --- */
.technology {
    background-color: var(--bg-secondary);
    position: relative;
}
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .tech-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.tech-col {
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.tech-visual {
    width: 100%;
    height: 160px;
    background-color: #030508;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-abstract {
    width: 80%;
    height: 60%;
    position: relative;
}
.chart-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.zone-sideway {
    position: absolute;
    top: 15%; left: 10%; width: 80%; height: 70%;
    background: rgba(69, 199, 232, 0.1);
    border: 1px dashed rgba(69, 199, 232, 0.4);
    border-radius: 4px;
}
.point-breakout {
    position: absolute;
    top: 25%; left: 45%; width: 12px; height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold);
}
.tech-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.tech-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}
.tech-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tech-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

/* --- PROFIT MANAGEMENT --- */
.profit-management {
    background-color: var(--bg-main);
}
.pm-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}
@media (min-width: 900px) {
    .pm-layout { grid-template-columns: 1fr 1fr; }
}
.pm-content .section-title {
    margin-bottom: 24px;
}
.pm-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}
.pm-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.pm-point {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
}
.pm-point-number {
    width: 32px;
    height: 32px;
    background-color: rgba(69, 199, 232, 0.1);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}
.equity-chart {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-card);
}
.equity-svg {
    width: 100%;
    height: auto;
    display: block;
}
.visual-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* --- FOUR PILLARS --- */
.four-pillars {
    background-color: var(--bg-secondary);
}
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr 1fr; }
}
.pillar-card {
    background-color: rgba(14, 23, 38, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.pillar-icon {
    font-size: 48px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
}
.pillar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--cyan);
}
.pillar-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* --- PRICING SECTION --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-pro {
    border-color: var(--cyan);
}
.pricing-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(69, 199, 232, 0.1);
    pointer-events: none;
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cyan);
    color: var(--bg-main);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.pricing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.pricing-suitability {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 42px;
}
.pricing-price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}
.pricing-features li svg {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-note {
    font-size: 14px;
    max-width: 600px;
    margin: 32px auto 0;
}

/* --- INSTALLATION PROCESS --- */
.timeline {
    position: relative;
    margin-top: 48px;
}
.timeline-line {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}
.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.timeline-step {
    display: flex;
    flex-direction: column;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
}
.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- SUITABILITY SECTION --- */
.suitability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
.suitability-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.suit-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}
.suit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.suit-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.suit-list li svg {
    flex-shrink: 0;
    margin-top: 4px;
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 900px;
}
.faq-accordion {
    margin-top: 48px;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
}
.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-answer-inner {
    padding-bottom: 24px;
}
.js .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.js .faq-answer-inner {
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}
.js .faq-question[aria-expanded="true"] + .faq-answer {
    grid-template-rows: 1fr;
}
.js .faq-question[aria-expanded="true"] + .faq-answer > .faq-answer-inner {
    padding-bottom: 24px;
}

/* --- CONTACT & CTA --- */
.contact-container {
    max-width: 1100px;
}
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.contact-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(69, 199, 232, 0.05);
    pointer-events: none;
}
.contact-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 16px 0 32px 0;
}
.contact-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.telegram-username {
    margin-left: 8px;
    opacity: 0.9;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group label {
    font-size: 14px;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
}
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-group input {
    margin-top: 4px;
}
.checkbox-group label {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}
#lead-form-wrapper.is-hidden {
    display: none;
}
.contact-card:has(#lead-form-wrapper.is-hidden) {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.contact-card:has(#lead-form-wrapper.is-hidden) .contact-actions {
    justify-content: center;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.footer-subtitle {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 24px;
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}
.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 16px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.footer-links a:not(.link-disabled):hover {
    color: var(--cyan);
}
.risk-warning-block {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 48px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}
.risk-warning-block p {
    margin: 0 0 12px 0;
}
.risk-warning-block p:last-child {
    margin-bottom: 0;
}
.risk-warning-block strong {
    color: var(--red);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    margin-right: 16px;
}

.lang-switcher a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.lang-switcher a:hover:not([aria-current="page"]) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher a[aria-current="page"] {
    background: rgba(69, 199, 232, 0.1);
    border: 1px solid rgba(69, 199, 232, 0.3);
    color: var(--text-primary);
}

/* Mobile Language Switcher */
.nav-mobile-actions .lang-switcher {
    margin-right: 0;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 4px;
}
.nav-mobile-actions .lang-switcher a {
    flex: 1;
    height: 40px;
    border-radius: 6px;
}

/* --- UTILITIES --- */
.is-hidden { display: none !important; }
.bg-alt { background-color: var(--bg-secondary); }
.text-muted { color: var(--text-secondary); }
.mt-4 { margin-top: 32px; }

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991px) {
    .live-grid { grid-template-columns: 1fr; gap: 24px; }
    .live-info { border-right: none; border-bottom: 1px solid var(--border-light); padding-right: 0; padding-bottom: 24px; }
    .backtest-layout { grid-template-columns: 1fr; gap: 24px; }
    .demo-layout { grid-template-columns: 1fr; gap: 32px; }
    .comparison-grid { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .timeline-line { display: none; }
    .timeline-list { grid-template-columns: 1fr; gap: 32px; }
    .timeline-step { flex-direction: row; align-items: flex-start; gap: 24px; }
    .step-number { margin-bottom: 0; flex-shrink: 0; }
    .contact-card { grid-template-columns: 1fr; padding: 48px 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .section-padding { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }
    .tech-col, .challenge-card, .pillar-card, .equity-chart { padding: 24px; }
    .comp-card { padding: 24px; }
    .suitability-grid { grid-template-columns: 1fr; }
    .suitability-card { padding: 32px 24px; }
    .pricing-card { padding: 24px; }
    .faq-question { font-size: 16px; padding: 20px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 599px) {
    .hero-buttons-center {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons-center .btn,
    .hero-highlight-card-center .btn {
        width: 100%;
    }
    .live-metrics { grid-template-columns: 1fr 1fr; }
    .tabs-header { flex-direction: column; }
    .panel-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-actions { flex-direction: column; width: 100%; }
    .contact-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}


/* --- MOBILE SPECIFIC --- */
@media (max-width: 480px) {
    .header-actions > .lang-switcher {
        display: none;
    }
}
