/* ============================================
   BRIDGE Compass Toolkit — Shared Styles
   Extends ContentBridge design system
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a28;
    --bg-card-hover: #22223a;
    --text-primary: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #606078;
    --accent-1: #6c5ce7;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --gradient-main: linear-gradient(135deg, #6c5ce7, #a855f7, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(168, 85, 247, 0.15));
    --border: rgba(255, 255, 255, 0.06);
    --border-active: rgba(108, 92, 231, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, .3);
    --shadow-glow: 0 0 80px rgba(108, 92, 231, 0.15);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ambient */
.ambient-glow {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-2 {
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-3);
}

.nav-link.active {
    color: var(--accent-2);
}

.lang-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-toggle:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-slogan {
    margin-top: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-3);
    letter-spacing: 0.5px;
}

/* Tool Cards Grid */
.tools-section {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tool-card.done {
    border-color: rgba(16, 185, 129, 0.3);
}

.tool-card.coming {
    opacity: 0.6;
    pointer-events: none;
}

.tool-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.tool-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.tool-time {
    color: var(--text-muted);
}

.tool-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.status-coming {
    background: rgba(96, 96, 120, 0.15);
    color: var(--text-muted);
}

/* Unlock Badge */
.unlock-section {
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.unlock-card {
    background: var(--gradient-subtle);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.unlock-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.unlock-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 4px;
    transition: width 0.5s;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.cta-button.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cta-button.secondary:hover {
    border-color: var(--accent-1);
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--accent-3);
    text-decoration: none;
}

/* ROI Calculator Specific */
.roi-section {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.roi-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roi-card .step-number {
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slider-item {}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.slider-value {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-3);
    min-width: 50px;
    text-align: center;
}

.slider-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.calc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-1);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-1);
    cursor: pointer;
    border: none;
}

/* Results Panel */
.results-sticky {
    position: sticky;
    top: 90px;
}

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glow);
}

.result-big {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.result-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.result-rows {
    margin-bottom: 24px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row-label {
    font-size: 0.9rem;
}

.result-row-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.05rem;
}

.val-green {
    color: var(--accent-green);
}

.val-cyan {
    color: var(--accent-3);
}

.val-amber {
    color: var(--accent-amber);
}

.roi-badge {
    text-align: center;
    padding: 16px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.roi-badge .roi-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
}

.roi-badge .roi-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.results-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.results-cta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.results-cta .cta-button {
    width: 100%;
}

.cta-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-grid {
        grid-template-columns: 1fr;
    }

    .results-sticky {
        position: static;
    }

    .nav-links {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0 20px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .roi-card {
        padding: 24px;
    }

    .result-amount {
        font-size: 2.2rem;
    }
}