/* ==========================================================================
   INEXT - COMMERCIAL QUANTITATIVE TRADING SAAS DESIGN SYSTEM
   Visual Language: High-Contrast Dark Fintech / Institutional Trading Desk
   ========================================================================== */

:root {
    /* Required Design System Tokens */
    --bg: #060911;
    --surface: #0b1120;
    --surface-2: #10192d;
    --surface-3: #16223d;
    --border: #1a2742;
    --border-light: #243556;
    --border-glow: rgba(37, 99, 235, 0.35);

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.28);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-glow: rgba(6, 182, 212, 0.25);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.32);

    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.32);

    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --muted: #94a3b8;
    --text-dim: #64748b;

    --radius: 8px;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.2);

    --container-max: 1240px;
    --header-height: 70px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    background-color: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    color: var(--muted);
}

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

ul, ol {
    list-style: none;
}

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

.mono {
    font-family: var(--font-mono);
}

.text-gradient {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.py-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-header .section-tag {
    margin-bottom: 12px;
}

.section-header .section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #ffffff;
}

.section-header .section-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(16, 25, 45, 0.6);
    border-color: var(--border-light);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: #60a5fa;
    color: #ffffff;
    background: rgba(26, 39, 66, 0.8);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.btn-icon-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-arrow {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Badges & Micro-Indicators
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.badge-primary {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.badge-profit, .badge-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.badge-loss, .badge-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
}

.badge-neutral {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid var(--border);
    color: var(--muted);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulseGlow 2s infinite;
}

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

/* --------------------------------------------------------------------------
   Logo & Brand Component
   -------------------------------------------------------------------------- */
.inext-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: #ffffff;
    user-select: none;
}

.inext-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.inext-brand-text {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.inext-brand-text .brand-in {
    color: #ffffff;
    font-weight: 800;
}

.inext-brand-text .brand-ext {
    color: var(--primary-light);
    font-weight: 800;
}

.inext-market-badge {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sticky Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(6, 9, 17, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(6, 9, 17, 0.96);
    border-bottom-color: var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-light);
}

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

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 24px;
    border-top: 1px solid var(--border);
    z-index: 99;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    display: flex;
}

.mobile-menu-drawer .nav-link {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Home Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 80px 0 70px;
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

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

.hero-content {
    max-width: 640px;
}

.hero-badge-wrap {
    margin-bottom: 22px;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-title span {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-trust-points {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--success);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero Algorithmic Signal Terminal Product Preview Mockup
   -------------------------------------------------------------------------- */
.terminal-preview-card {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.15);
    overflow: hidden;
    position: relative;
}

.terminal-header-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.terminal-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-light);
}

.terminal-tabs {
    display: flex;
    gap: 8px;
}

.terminal-tab-pill {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.6);
    color: var(--muted);
}

.terminal-tab-pill.active {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.terminal-body {
    padding: 20px;
}

.terminal-ticker-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.ticker-symbol {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-price {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    text-align: right;
}

.ticker-change {
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--success);
}

/* Vector Chart Preview */
.simulated-chart-box {
    width: 100%;
    height: 130px;
    background: rgba(8, 13, 26, 0.75);
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.simulated-chart-svg {
    width: 100%;
    height: 100%;
}

/* Signal Terminal Box */
.terminal-signal-box {
    background: var(--surface);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.signal-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.signal-strategy-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.metric-cell {
    background: rgba(16, 25, 45, 0.7);
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.metric-cell-label {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.metric-cell-val {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #ffffff;
    margin-top: 2px;
}

.terminal-status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-dim);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Trust & Infrastructure Strip
   -------------------------------------------------------------------------- */
.trust-strip-section {
    padding: 20px 0 40px;
}

.trust-strip-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-shadow: var(--shadow);
}

.trust-col {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--border);
    padding-right: 16px;
}

.trust-col:last-child {
    border-right: none;
    padding-right: 0;
}

.trust-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
}

.trust-icon-box svg {
    width: 18px;
    height: 18px;
}

.trust-col h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.trust-col p {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Problem & Value Proposition Section
   -------------------------------------------------------------------------- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.problem-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
}

.problem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.problem-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.problem-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.problem-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.solution-badge-box {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #86efac;
}

.solution-badge-box svg {
    width: 14px;
    height: 14px;
    color: var(--success);
    flex-shrink: 0;
}

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

.feature-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature-box:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.12);
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon-box svg {
    width: 20px;
    height: 20px;
}

.feature-box h4 {
    font-size: 15.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-box p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Systematic Strategies Showcase (8 Cards)
   -------------------------------------------------------------------------- */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.strategy-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.strategy-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
}

.strategy-card-top {
    margin-bottom: 14px;
}

.strategy-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.strategy-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.strategy-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.strategy-meta-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.8;
}

.strategy-meta-item {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.strategy-meta-item strong {
    color: #ffffff;
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   How It Works (5-Step Timeline)
   -------------------------------------------------------------------------- */
.how-it-works-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 20px;
}

.timeline-connector {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.7) 50%, rgba(6, 182, 212, 0.2) 100%);
    z-index: 0;
}

.step-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 18px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
}

.step-number-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary-light);
    box-shadow: 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
}

.step-card h3 {
    font-size: 15.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.step-card p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Supported Brokers Section
   -------------------------------------------------------------------------- */
.brokers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.broker-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.broker-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
}

.broker-card.active-partner {
    border-color: rgba(59, 130, 246, 0.4);
}

.broker-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.broker-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: #ffffff;
}

.broker-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.broker-status-line {
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Paper vs Live Comparison
   -------------------------------------------------------------------------- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.comparison-card {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    border: 1px solid var(--border);
}

.comparison-card.paper-mode {
    border-color: rgba(16, 185, 129, 0.35);
}

.comparison-card.live-mode {
    border-color: rgba(239, 68, 68, 0.35);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.comparison-card h3 {
    font-size: 21px;
    color: #ffffff;
}

.comparison-list {
    margin-bottom: 28px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.comparison-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.paper-mode .comparison-item svg {
    color: var(--success);
}

.live-mode .comparison-item svg {
    color: var(--danger);
}

/* --------------------------------------------------------------------------
   Pre-Trade Risk Management Section (8 Cards)
   -------------------------------------------------------------------------- */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.risk-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.risk-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.risk-card-icon svg {
    width: 17px;
    height: 17px;
}

.risk-card h4 {
    font-size: 14.5px;
    color: #ffffff;
    margin-bottom: 6px;
}

.risk-card p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Product Preview Showcase (Simulated Interface)
   -------------------------------------------------------------------------- */
.platform-showcase-wrap {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 99, 235, 0.15);
    overflow: hidden;
}

.showcase-topbar {
    background: #090f1d;
    border-bottom: 1px solid var(--border);
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-inner-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 440px;
}

.showcase-mini-sidebar {
    background: #0b1122;
    border-right: 1px solid var(--border);
    padding: 18px 12px;
}

.mini-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.mini-nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.showcase-main-desk {
    padding: 22px;
    background: #080d1a;
}

.showcase-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.mini-stat-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.mini-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.mini-stat-val {
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    margin-top: 3px;
}

.showcase-table-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.showcase-table-head {
    padding: 10px 16px;
    background: rgba(14, 22, 38, 0.8);
    border-bottom: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
}

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

.trading-table th {
    background: rgba(14, 22, 38, 0.9);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.trading-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text);
}

.trading-table tr:hover td {
    background: var(--surface-3);
}

/* --------------------------------------------------------------------------
   SaaS Pricing Comparison Section
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pricing-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 25, 45, 0.95) 40%);
    border-color: #3b82f6;
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.25);
}

.pricing-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

.plan-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.plan-description {
    font-size: 12.5px;
    color: var(--muted);
    min-height: 38px;
    margin-bottom: 18px;
}

.plan-price-box {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    line-height: 1;
}

.plan-price span {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-dim);
}

.plan-features-list {
    margin-bottom: 28px;
    flex: 1;
}

.plan-feature-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 11px;
}

.plan-feature-item svg {
    width: 15px;
    height: 15px;
    color: var(--success);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item.active {
    border-color: rgba(59, 130, 246, 0.4);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-chevron {
    width: 18px;
    height: 18px;
    color: var(--muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 22px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 350px;
    padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Security & Infrastructure Section
   -------------------------------------------------------------------------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.security-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
}

.security-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.security-card-icon svg {
    width: 19px;
    height: 19px;
}

.security-card h4 {
    font-size: 15.5px;
    margin-bottom: 8px;
    color: #ffffff;
}

.security-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SEBI Mandatory Risk Disclosure Card
   -------------------------------------------------------------------------- */
.sebi-disclosure-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 40px 0 20px;
}

.sebi-disclosure-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sebi-disclosure-title svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.sebi-disclosure-text {
    font-size: 12.5px;
    color: #fca5a5;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Conversion Call To Action (CTA) Section
   -------------------------------------------------------------------------- */
.cta-banner-wrap {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: var(--radius-xl);
    padding: 56px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 50px 0;
    box-shadow: var(--shadow-glow);
}

.cta-banner-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #ffffff;
}

.cta-banner-desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --------------------------------------------------------------------------
   Commercial SaaS Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-brand-col p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 12px;
    max-width: 280px;
}

.footer-heading {
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-links-list li {
    margin-bottom: 9px;
}

.footer-links-list a {
    font-size: 13px;
    color: var(--muted);
    transition: color var(--transition-fast);
}

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

.footer-bottom-bar {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (1440px, 1280px, 1024px, 768px, 480px, 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .features-grid, .strategies-grid, .brokers-grid, .risk-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-strip-card {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust-col:nth-child(3) {
        border-right: none;
    }
    .how-it-works-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
    .timeline-connector {
        display: none;
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-cta-group, .hero-trust-points {
        justify-content: center;
    }
    .terminal-preview-card {
        max-width: 580px;
        margin: 0 auto;
    }
    .problem-grid, .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .showcase-inner-grid {
        grid-template-columns: 1fr;
    }
    .showcase-mini-sidebar {
        display: none;
    }
    .how-it-works-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-title {
        font-size: 32px;
    }
    .section-header .section-title {
        font-size: 26px;
    }
    .cta-banner-title {
        font-size: 26px;
    }
    .features-grid, .strategies-grid, .brokers-grid, .risk-grid, .pricing-grid, .problem-grid, .security-grid {
        grid-template-columns: 1fr;
    }
    .trust-strip-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .trust-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
    }
    .trust-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .how-it-works-timeline {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand-col {
        grid-column: span 1;
    }
}

@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;
    }
}
