:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #ffffff;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* CONTAINER UTILITY */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BUTTONS */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px clamp(20px, 5vw, 10%);
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.logo svg {
    color: var(--primary);
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-toggle:hover,
.nav-install-icon:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-install-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    color: var(--primary);
    /* Changed to brand blue */
    transition: all 0.2s;
    text-decoration: none;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    gap: 4px;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    min-width: 160px;
}

.lang-dropdown.active {
    display: flex;
}

.lang-option {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f8fafc;
    color: var(--primary);
}

.lang-option.current {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
}

/* FOOTER */
footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 clamp(20px, 5vw, 10%);
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 14px;
    max-width: 300px;
    margin: 0;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin: 0 0 20px;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 32px clamp(20px, 5vw, 10%) 0;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-center {
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 12px 20px;
        gap: 0;
    }

    .nav-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .nav-right {
        order: 2;
        margin-right: 12px;
    }

    .nav-center {
        display: none;
        order: 3;
        flex-basis: 100%;
        margin-top: 16px;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }

    .nav-center.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

/* --- INDEX HERO & SECTIONS --- */
.hero {
    padding: 140px clamp(20px, 5vw, 10%) 40px;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, #eff6ff, transparent);
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-sub);
    max-width: 720px;
    margin: 0 auto 42px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

/* APP MOCKUP */
.preview-container {
    padding-bottom: 60px;
}

.app-mockup {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    padding: 22px;
    border: 1px solid var(--border);
    text-align: left;
}

.m-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.m-logo {
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-status {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.m-input-box,
.m-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.m-input-box {
    border: 1px solid var(--border);
}

.m-btn {
    justify-content: center;
    background: var(--primary);
    color: #fff;
}

.m-result {
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    overflow: hidden;
}

.m-res-head {
    background: #ecfdf5;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 13px;
}

.m-res-body {
    padding: 12px;
    font-size: 12px;
    color: #334155;
    line-height: 1.6;
}

/* SHARED SECTION TITLE */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-main);
    letter-spacing: -1px;
    text-align: center;
}

/* --- HOW IT WORKS (STAGGERED TIMELINE) --- */
.how-it-works {
    padding: 120px 20px;
    background: #fff;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #eff6ff, var(--primary), #eff6ff);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    width: 100%;
}

.timeline-item.reverse {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.timeline-content p {
    color: var(--text-sub);
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 0 0 8px #fff;
}

.timeline-item .timeline-dot {
    left: calc(100% + 2.5% + 20px);
    transform: translate(-50%, -50%);
}

.timeline-item.reverse .timeline-dot {
    left: auto;
    right: calc(100% + 2.5% + 20px);
    transform: translate(50%, -50%);
}

.timeline-image {
    width: 45%;
    display: flex;
    justify-content: center;
}

.floating-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.timeline-item:hover .floating-img {
    transform: translateY(-10px) rotate(1deg);
}

/* CSS MOCKUPS (TIMELINE VISUALS) */
.css-mockup-install,
.css-mockup-browse,
.css-mockup-analyze {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item:hover .css-mockup-install,
.timeline-item:hover .css-mockup-browse,
.timeline-item:hover .css-mockup-analyze {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.mock-browser-top {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-browser-top .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.mock-url {
    margin-left: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 10px;
    color: var(--text-sub);
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* STEP 1: INSTALL */
.mock-extension-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mock-ext-icon {
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.mock-ext-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
}

.mock-ext-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* STEP 2: BROWSE */
.mock-news-content {
    padding: 24px;
    position: relative;
}

.mock-line {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    margin-bottom: 12px;
}

.mock-line.title {
    height: 14px;
    background: #e2e8f0;
    width: 80%;
    margin-bottom: 20px;
}

.mock-line.short {
    width: 60%;
}

.mock-floating-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* STEP 4: ANALYZE */
.css-mockup-analyze {
    padding: 24px;
    background: #fff;
}

.mock-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mock-logo {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-main);
}

.mock-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.mock-score-bar {
    height: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.mock-score-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 6px;
}

.mock-analysis-body .mock-line {
    margin-bottom: 10px;
}

.asset-selector-mockup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 240px;
}

.asset-pill {
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.asset-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

/* --- FEATURES BENTO GRID --- */
.features-bento {
    padding: 120px 20px;
    background: #f8fafc;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-item {
    background: #fff;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
    justify-content: center;
}

.bento-item .bento-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.bento-main .bento-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 32px;
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.bento-main h3 {
    font-size: 32px;
    letter-spacing: -0.02em;
}

.bento-item p {
    color: var(--text-sub);
    line-height: 1.6;
    font-size: 15px;
}

.bento-main p {
    font-size: 18px;
    max-width: 500px;
}

/* --- BENTO GRID VISUALS --- */
.bento-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.bento-item:hover .bento-visual {
    opacity: 0.8;
}

/* Dashboard Visual */
.bento-visual-dashboard {
    background: radial-gradient(circle at top right, #eff6ff, transparent);
}

.dashboard-mini {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: rotate(-5deg);
}

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-bottom: 12px;
}

.dash-chart .bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px;
    opacity: 0.3;
}

.dash-chart .bar:last-child {
    background: #10b981;
    opacity: 1;
}

.dash-metrics .metric-line {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 6px;
}

.dash-metrics .metric-line.short {
    width: 50%;
}

/* Alert Visual */
.bento-visual-alert {
    background: radial-gradient(circle at bottom right, #fff1f2, transparent);
}

.alert-mini {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    animation: float 4s infinite ease-in-out;
}

.alert-icon {
    font-size: 18px;
}

.a-line {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 4px;
    width: 60px;
}

.a-line.short {
    width: 30px;
}

/* Speed Visual */
.bento-visual-speed {
    background: radial-gradient(circle at top left, #f0fdf4, transparent);
}

.speed-mini {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 100px;
    height: 50px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px 50px 0 0;
    border-bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transform: scale(1.5);
}

.speed-dial {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.speed-dial::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    border: 8px solid #eff6ff;
    border-bottom: 0;
    border-radius: 100px 100px 0 0;
}

.needle {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 2px;
    height: 35px;
    background: var(--primary);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(45deg);
    transition: transform 1s ease;
}

.bento-item:hover .needle {
    transform: translateX(-50%) rotate(75deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- BENTO MOBILE FIX --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .bento-item {
        padding: 32px 24px;
        border-radius: 24px;
        min-height: 200px;
        justify-content: flex-start;
    }

    .bento-main {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-main h3 {
        font-size: 24px;
    }

    .bento-visual {
        display: none;
    }
}

/* USE CASES SECTION */
.use-cases {
    padding: 100px clamp(20px, 5vw, 10%);
    background: #f8fafc;
}

.uc-header {
    text-align: center;
    margin-bottom: 60px;
}

.uc-header .section-title {
    margin-bottom: 20px;
}

.uc-header p {
    color: var(--text-sub);
    font-size: 18px;
    margin-top: 16px;
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* USE CASES VISUALS & CARDS */
.uc-card {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.uc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.uc-visual {
    height: 120px;
    background: #f1f5f9;
    margin: -32px -32px 24px -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.uc-visual-1 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.uc-visual-2 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.uc-visual-3 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 40px;
}

.m-point {
    width: 12px;
    background: var(--primary);
    border-radius: 4px;
}

.m-point:nth-child(1) {
    height: 40%;
}

.m-point:nth-child(2) {
    height: 70%;
}

.m-point:nth-child(3) {
    height: 55%;
}

.m-point:nth-child(4) {
    height: 90%;
    background: #10b981;
}

.mini-portfolio {
    display: flex;
    gap: 10px;
}

.p-stock {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.p-stock.green {
    background: #10b981;
}

.p-stock.blue {
    background: var(--primary);
}

.mini-news {
    width: 140px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.n-line {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 6px;
}

.n-line.highlight {
    width: 60%;
    background: #e2e8f0;
}

.uc-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.uc-card p {
    color: var(--text-sub);
    line-height: 1.6;
    font-size: 15px;
}

/* TESTIMONIALS SECTION */
.testimonials {
    padding: 100px clamp(20px, 5vw, 10%);
    background: #fff;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.test-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.test-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.05);
}

/* TESTIMONIALS ENRICHMENT */
.test-rating {
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.quote-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 40px;
    color: #eff6ff;
    font-family: serif;
    line-height: 1;
}

.test-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.test-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-sub);
    font-size: 14px;
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-weight: 800;
}

.test-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.test-info span {
    font-size: 13px;
    color: var(--text-sub);
}

/* FAQ */
.faq {
    padding: 100px clamp(20px, 5vw, 10%);
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 400;
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    color: var(--text-sub);
    line-height: 1.6;
    font-size: 16px;
    padding-right: 20px;
}

/* --- PRICING PAGE --- */
.pricing {
    padding: 80px 20px;
    background: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 48px 24px;
    /* Slightly reduced horizontal padding to prevent overflow */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    width: 100%;
    max-width: 360px;
    /* Professional width for desktop cards */
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.12);
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.pricing-price {
    font-size: clamp(32px, 8vw, 38px);
    /* Fluid typography with a safer maximum */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    overflow-wrap: anywhere;
    /* Hard stop for overflow */
    word-break: break-word;
}

.pricing-price-sub {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-sub);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%2310b981" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    padding: 16px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 14px;
}

/* responsive overrides for pricing */
@media (max-width: 768px) {
    .pricing {
        padding: 40px 16px;
        gap: 24px;
    }

    .pricing-card {
        max-width: 100%;
        padding: 40px 24px;
    }

    .pricing-price {
        font-size: 40px;
    }
}

/* --- SUPPORT PAGE --- */
.support-container {
    padding: 60px clamp(20px, 5vw, 10%);
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
}

.support-card {
    background: #fff;
    border-radius: 22px;
    border: 2px solid var(--border);
    padding: 60px 40px;
    text-align: center;
}

.support-card h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.support-card p {
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 32px;
    line-height: 1.8;
}

.email-box {
    background: #eff6ff;
    border-radius: 16px;
    padding: 32px 24px;
    margin: 32px 0;
    border: 2px solid var(--primary);
}

.email-box p {
    margin: 0 0 14px 0;
    font-size: 14px;
    color: var(--text-sub);
}

.email-link {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.response-info {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .support-card {
        padding: 40px 24px;
    }

    .email-box {
        padding: 24px 16px;
    }

    .email-link {
        font-size: 18px;
    }
}

/* --- LEGAL PAGE --- */
/* (Overrides for specific legal page layout) */
.legal-body {
    background-color: #f8fafc;
}

.container-legal {
    max-width: 860px;
    margin: 0 auto 80px;
    background: #ffffff;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 22px;
    border: 1px solid var(--border);
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.legal-content-title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 36px;
    border-bottom: 2px solid var(--primary);
    display: block;
    padding-bottom: 6px;
    text-align: left;
}

.hero h1.legal-hero-title {
    border-bottom: none;
    text-align: center;
}

.container-legal h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 44px;
    margin-bottom: 16px;
    color: var(--primary);
}

.container-legal p {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.container-legal ul {
    padding-left: 20px;
    margin: 0;
}

.container-legal li {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.container-legal li strong {
    color: var(--text-main);
}

@media (max-width: 600px) {
    .container-legal {
        margin: 0 16px 40px;
        padding: 32px 20px;
    }
}

/* ----------------------------------------------------------------------------------------------------
   STATUS PAGE
---------------------------------------------------------------------------------------------------- */
.status-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 800px;
    /* Narrower container for status page */
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-badge.operational {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-info h3 {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 8px;
    font-weight: 500;
}

.status-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.status-indicator {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.status-indicator.operational {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.uptime-section {
    margin-bottom: 60px;
}

.uptime-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.uptime-bars {
    display: flex;
    gap: 4px;
    height: 32px;
    margin-bottom: 8px;
}

.uptime-bar {
    flex: 1;
    background-color: #10b981;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.uptime-bar:hover {
    opacity: 0.8;
}

.uptime-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-sub);
}

.incidents-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.incident-item {
    border-left: 2px solid var(--border);
    padding-left: 20px;
    padding-bottom: 20px;
}

.incident-date {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.incident-details {
    color: var(--text-main);
    font-size: 15px;
}

@media (max-width: 600px) {
    .status-page {
        padding-top: 100px;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FLOATING CTA --- */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUp 0.8s ease forwards, floating 4s infinite ease-in-out;
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.chrome-btn-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floating-mobile {

    0%,
    100% {
        transform: translateX(50%) translateY(0);
    }

    50% {
        transform: translateX(50%) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .floating-cta {
        right: 50% !important;
        transform: translateX(50%) !important;
        bottom: 20px;
        width: 80% !important;
        max-width: 300px;
        justify-content: center;
        animation: slideUpMobile 0.8s ease forwards, floating-mobile 4s infinite ease-in-out 0.8s;
    }

    @keyframes slideUpMobile {
        from {
            transform: translate(50%, 100px);
            opacity: 0;
        }

        to {
            transform: translate(50%, 0);
            opacity: 1;
        }
    }

    .floating-cta:hover {
        transform: translateX(50%) translateY(-5px) !important;
    }
}