/* ============================================
   RankForge — Advanced SEO Intelligence Platform
   Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Palette: Deep ocean dark with electric cyan-mint accent */
    --bg-primary: #080B14;
    --bg-secondary: #0D1117;
    --bg-tertiary: #151B28;
    --bg-card: #111827;
    --bg-card-hover: #1a2234;
    --bg-elevated: #1E293B;

    --border-primary: #1E293B;
    --border-secondary: #2D3A4F;
    --border-accent: #0FF0B330;

    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --text-inverse: #080B14;

    --accent-primary: #0FF0B3;
    --accent-secondary: #00B4D8;
    --accent-purple: #A855F7;
    --accent-danger: #F43F5E;
    --accent-warning: #F59E0B;

    --gradient-primary: linear-gradient(135deg, #0FF0B3 0%, #00B4D8 100%);
    --gradient-hero: linear-gradient(180deg, #080B14 0%, #0D1117 50%, #080B14 100%);
    --gradient-card: linear-gradient(180deg, #111827 0%, #0D1117 100%);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-elevated: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(15,240,179,0.15);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container-max: 1280px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8,11,20,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(8,11,20,0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon { width: 32px; height: 32px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover { color: var(--text-primary); background: var(--bg-tertiary); }

.nav-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: all 0.2s;
    box-shadow: var(--shadow-elevated);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.dropdown-item:hover { background: var(--bg-tertiary); }

.di-icon { font-size: 20px; width: 28px; text-align: center; }

.dropdown-item strong { display: block; font-size: 14px; color: var(--text-primary); }
.dropdown-item small { display: block; font-size: 12px; color: var(--text-tertiary); }

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-inverse);
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.btn-ghost {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 12px; font-weight: 600; background: var(--bg-tertiary); color: var(--text-secondary); border-radius: var(--radius-sm); border: 1px solid var(--border-primary); }
.btn-full { width: 100%; justify-content: center; }

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-social:hover { background: var(--bg-elevated); border-color: var(--border-secondary); }

/* --- Hero --- */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15,240,179,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,240,179,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15,240,179,0.08);
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    top: 100px;
    right: -100px;
    background: rgba(0,180,216,0.06);
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(15,240,179,0.08);
    border: 1px solid rgba(15,240,179,0.2);
    border-radius: 100px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat { text-align: center; }

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* --- Dashboard Preview --- */
.hero-dashboard {
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.dashboard-frame {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-elevated), 0 0 80px rgba(15,240,179,0.05);
}

.dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.toolbar-dots { display: flex; gap: 6px; }
.toolbar-dots span { width: 12px; height: 12px; border-radius: 50%; }
.toolbar-dots span:nth-child(1) { background: #F43F5E; }
.toolbar-dots span:nth-child(2) { background: #F59E0B; }
.toolbar-dots span:nth-child(3) { background: #22C55E; }

.toolbar-url {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-primary);
    padding: 4px 16px;
    border-radius: 100px;
}

.toolbar-status {
    font-size: 11px;
    color: #22C55E;
    font-weight: 600;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 420px;
}

.dash-sidebar {
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-primary);
    padding: 16px 0;
}

.dash-sidebar-item {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.15s;
}

.dash-sidebar-item:hover { color: var(--text-secondary); background: rgba(255,255,255,0.03); }
.dash-sidebar-item.active { color: var(--accent-primary); background: rgba(15,240,179,0.06); border-right: 2px solid var(--accent-primary); }

.dash-main { padding: 20px; }

.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dash-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.dash-header p { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

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

.dash-select {
    padding: 6px 12px;
    font-size: 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

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

.metric-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.metric-value { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.metric-change { font-size: 12px; font-weight: 600; margin-top: 4px; }
.metric-change.positive { color: var(--accent-primary); }

.metric-sparkline { margin-top: 8px; }
.sparkline { width: 100%; height: 30px; }

.metric-vitals { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.vital {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.vital.good { background: rgba(15,240,179,0.1); color: var(--accent-primary); }

.dash-chart-area {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 180px;
}

.chart-placeholder { width: 100%; height: 100%; }
.chart-placeholder canvas { width: 100% !important; height: 100% !important; }

/* --- Trusted By --- */
.trusted {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-primary);
}

.trusted-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trusted-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-tertiary);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.trusted-logo:hover { opacity: 0.7; }

/* --- Section Styles --- */
.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Algorithm Section --- */
.algorithms { padding: 100px 0; }

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

.algo-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.algo-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.algo-card-icon { font-size: 36px; margin-bottom: 16px; }

.algo-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.algo-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.algo-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    background: rgba(15,240,179,0.08);
    border: 1px solid rgba(15,240,179,0.2);
    border-radius: 100px;
}

/* --- Features Section --- */
.features { padding: 100px 0; }

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-info { order: 1; }

.feature-visual { position: relative; }

.feature-screen {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.screen-header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-primary);
}

.screen-tab {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.screen-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(15,240,179,0.03);
}

.screen-body { padding: 20px; }

/* Keyword Research Screen */
.kw-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-primary);
}

.kw-search-icon { font-size: 14px; }

.kw-results { font-size: 12px; }

.kw-result-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 0.5fr 1fr 0.6fr 0.4fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    align-items: center;
}

.kw-result-row.kw-header {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kw-term { font-weight: 500; color: var(--accent-secondary); }

.kd-low { color: var(--accent-primary); font-weight: 600; }
.kd-medium { color: var(--accent-warning); font-weight: 600; }
.kd-high { color: var(--accent-danger); font-weight: 600; }

.intent-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.intent-badge.informational { background: rgba(0,180,216,0.1); color: var(--accent-secondary); }
.intent-badge.commercial { background: rgba(168,85,247,0.1); color: var(--accent-purple); }
.intent-badge.transactional { background: rgba(15,240,179,0.1); color: var(--accent-primary); }

.kw-trend { font-weight: 700; }
.kw-trend.up { color: var(--accent-primary); }
.kw-trend.down { color: var(--accent-danger); }
.kw-trend.stable { color: var(--text-tertiary); }

/* Technical SEO Screen */
.audit-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.audit-circle { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.audit-circle svg { width: 100%; height: 100%; }

.audit-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent-primary); }
.score-label { font-size: 12px; color: var(--text-tertiary); }

.audit-summary h4 { font-size: 16px; font-weight: 600; color: var(--accent-primary); }
.audit-summary p { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

.audit-issues { margin-bottom: 16px; }

.issue-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
}

.issue-dot { width: 8px; height: 8px; border-radius: 50%; }
.issue-dot.error { background: var(--accent-danger); }
.issue-dot.warning { background: var(--accent-warning); }
.issue-dot.notice { background: var(--accent-secondary); }

.issue-count { font-weight: 700; font-size: 14px; min-width: 24px; }
.issue-label { font-size: 13px; font-weight: 500; min-width: 70px; }
.issue-detail { font-size: 12px; color: var(--text-tertiary); }

.cwv-scores { display: flex; gap: 10px; }

.cwv-item {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}

.cwv-item.good { background: rgba(15,240,179,0.1); color: var(--accent-primary); border: 1px solid rgba(15,240,179,0.2); }
.cwv-item.needs-improvement { background: rgba(245,158,11,0.1); color: var(--accent-warning); border: 1px solid rgba(245,158,11,0.2); }

.cwv-label { display: block; font-size: 10px; opacity: 0.7; margin-bottom: 2px; }
.cwv-value { display: block; font-size: 16px; }

/* Rank Tracking Screen */
.rank-table { font-size: 12px; }

.rank-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.7fr 1.2fr 1.5fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    align-items: center;
}

.rank-row.rank-header {
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-kw { font-weight: 500; color: var(--accent-secondary); }
.rank-pos { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.rank-change { font-weight: 700; }
.rank-change.up { color: var(--accent-primary); }
.rank-change.down { color: var(--accent-danger); }
.rank-change.same { color: var(--text-tertiary); }
.rank-url { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 11px; }

.feat-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(168,85,247,0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(168,85,247,0.2);
}

.feat-badge.ai {
    background: rgba(15,240,179,0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(15,240,179,0.2);
}

/* Backlink Screen */
.bl-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.bl-stat {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}

.bl-val { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.bl-val.danger { color: var(--accent-danger); }
.bl-lbl { display: block; font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }

.bl-list { font-size: 12px; }

.bl-item {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.5fr 1.3fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    align-items: center;
}

.bl-item.toxic { background: rgba(244,63,94,0.05); padding: 8px; border-radius: 4px; }

.bl-source { font-weight: 500; }
.bl-type { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 100px; text-transform: uppercase; }
.bl-type.dofollow { background: rgba(15,240,179,0.1); color: var(--accent-primary); }
.bl-type.nofollow { background: rgba(0,180,216,0.1); color: var(--accent-secondary); }
.bl-type.toxic-label { background: rgba(244,63,94,0.1); color: var(--accent-danger); }
.bl-da { font-family: var(--font-mono); color: var(--text-tertiary); }
.bl-anchor { font-style: italic; color: var(--text-tertiary); font-size: 11px; }

/* Content Optimizer Screen */
.content-score-area {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: center;
}

.cs-circle { position: relative; width: 100px; height: 100px; flex-shrink: 0; }
.cs-circle svg { width: 100%; height: 100%; }

.cs-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cs-val { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent-primary); }
.cs-lbl { font-size: 11px; color: var(--text-tertiary); }

.cs-breakdown { flex: 1; }

.cs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.cs-label { min-width: 100px; color: var(--text-secondary); }

.cs-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.cs-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.cs-pct { min-width: 30px; text-align: right; font-family: var(--font-mono); color: var(--text-tertiary); font-size: 11px; }

.nlp-terms { display: flex; flex-wrap: wrap; gap: 6px; }

.nlp-term {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.nlp-term.covered { background: rgba(15,240,179,0.1); color: var(--accent-primary); border: 1px solid rgba(15,240,179,0.2); }
.nlp-term.missing { background: rgba(244,63,94,0.08); color: var(--accent-danger); border: 1px solid rgba(244,63,94,0.2); }

/* Competitive Intel Screen */
.comp-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.comp-domain {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    flex: 1;
}

.comp-domain.you { border-color: rgba(15,240,179,0.3); }

.comp-name { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comp-da { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent-primary); margin-bottom: 2px; }
.comp-traffic, .comp-kw { display: block; font-size: 11px; color: var(--text-tertiary); }

.comp-vs {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.comp-gaps h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--accent-primary); }

.gap-item {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.5fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 12px;
    align-items: center;
}

.gap-kw { font-weight: 500; color: var(--accent-secondary); }
.gap-vol { color: var(--text-secondary); }

/* Feature Info */
.feature-info { padding: 20px 0; }

.feature-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list { list-style: none; margin-bottom: 28px; }

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.fl-check { color: var(--accent-primary); font-weight: 700; }

/* --- All Tools Grid --- */
.all-tools {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.tool-icon { font-size: 28px; margin-bottom: 12px; }

.tool-card h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tool-card p { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* --- How It Works --- */
.how-it-works { padding: 100px 0; }

.steps { max-width: 700px; margin: 0 auto; }

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-inverse);
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content { padding-top: 4px; }
.step-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    margin-left: 23px;
    margin: 12px 0 12px 23px;
}

/* --- Pricing --- */
.pricing { padding: 100px 0; background: var(--bg-secondary); }

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.toggle-label { font-size: 14px; font-weight: 500; color: var(--text-tertiary); }
.toggle-label.active { color: var(--text-primary); }

.save-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(15,240,179,0.1);
    padding: 2px 8px;
    border-radius: 100px;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s;
}

.toggle-switch.active { background: rgba(15,240,179,0.2); border-color: var(--accent-primary); }

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.active .toggle-knob { left: 25px; background: var(--accent-primary); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s;
}

.pricing-card:hover { border-color: var(--border-secondary); }

.pricing-card.popular {
    border-color: var(--accent-primary);
    position: relative;
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-inverse);
    background: var(--gradient-primary);
    border-radius: 100px;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 12px;
}

.price-currency { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.price-amount { font-family: var(--font-display); font-size: 48px; font-weight: 700; }
.price-period { font-size: 14px; color: var(--text-tertiary); margin-left: 4px; }

.pricing-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.pricing-features { list-style: none; margin-bottom: 28px; }

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- Testimonials --- */
.testimonials { padding: 100px 0; }

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

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.testimonial-stars { color: var(--accent-warning); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.ta-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(15,240,179,0.1);
    border-radius: 50%;
}

.ta-name { font-size: 14px; font-weight: 600; }
.ta-role { font-size: 12px; color: var(--text-tertiary); }

/* --- Resources --- */
.resources { padding: 100px 0; background: var(--bg-secondary); }

.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.resource-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.resource-card:hover { border-color: var(--border-secondary); }

.resource-card.featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-secondary);
    background: rgba(0,180,216,0.1);
    border-radius: 100px;
    margin-bottom: 12px;
}

.resource-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.resource-card.featured h3 { font-size: 24px; }

.resource-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

.resource-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    transition: opacity 0.2s;
}

.resource-link:hover { opacity: 0.8; }

/* --- CTA --- */
.cta { padding: 100px 0; }

.cta-inner {
    text-align: center;
    background: var(--gradient-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: rgba(15,240,179,0.06);
    border-radius: 50%;
    filter: blur(80px);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    position: relative;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-actions { position: relative; }

.cta-note {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

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

.footer-brand .logo { margin-bottom: 12px; }

.footer-tagline { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; margin-bottom: 16px; }

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.footer-social a:hover { color: var(--accent-primary); background: rgba(15,240,179,0.1); }

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-tertiary); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-primary); }

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 18px;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text-primary); }

.modal h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-subtitle { font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

.form-group input {
    padding: 12px 14px;
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus { border-color: var(--accent-primary); }

.modal-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

.modal-divider span { font-size: 12px; color: var(--text-tertiary); }

.modal-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

.modal-footer-text a { color: var(--accent-primary); font-weight: 500; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .algo-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-visual { order: 0; }
    .feature-row.reverse .feature-info { order: 0; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: span 3; }
    .dashboard-body { grid-template-columns: 160px 1fr; }
    .dash-metrics { grid-template-columns: repeat(2, 1fr); }
    .bl-overview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    .hero-title { font-size: 36px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .hero-cta { flex-direction: column; }

    .algo-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .resource-card.featured { grid-row: span 1; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .dashboard-body { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .dash-metrics { grid-template-columns: 1fr 1fr; }

    .feature-title { font-size: 26px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .comp-compare { flex-direction: column; }
    .comp-vs { margin: 0; }

    .kw-result-row { grid-template-columns: 2fr 0.7fr 0.5fr 1fr; }
    .kw-result-row > :nth-child(5), .kw-result-row > :nth-child(6) { display: none; }
    .rank-row { grid-template-columns: 2fr 0.6fr 0.7fr; }
    .rank-row > :nth-child(4), .rank-row > :nth-child(5) { display: none; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 24px; }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .trusted-logos { gap: 24px; }
    .trusted-logo { font-size: 16px; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}