/*
 * Tools Landing Page styles
 * Scoped under .tools-landing to avoid affecting other pages.
 * Reuses brand tokens from theme: primary #6631F8, body font Inter.
 */

.tools-landing {
    --tl-primary: #6631F8;
    --tl-primary-hover: #5924ec;
    --tl-primary-soft: rgba(102, 49, 248, 0.08);
    --tl-primary-glow: rgba(141, 61, 252, 0.3);
    --tl-ink: #0f172a;
    --tl-text: #475569;
    --tl-muted: #64748b;
    --tl-border: #e6e8f0;
    --tl-bg-soft: #f8f9fb;
    --tl-bg-grad-start: #f5f1ff;
    --tl-bg-grad-end: #ffffff;
    --tl-radius: 14px;
    --tl-shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
    --tl-shadow-card-hover: 0 10px 32px rgba(102, 49, 248, 0.12);
    color: var(--tl-text);
}

.tools-landing section { padding: 72px 0; }
.tools-landing h1,
.tools-landing h2,
.tools-landing h3 { color: var(--tl-ink); font-weight: 700; }
.tools-landing h2 { font-size: 34px; line-height: 1.2; margin-bottom: 16px; }
.tools-landing h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.tools-landing .section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tl-primary);
    background: var(--tl-primary-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.tools-landing .section-head { margin-bottom: 48px; }
.tools-landing .section-head p { color: var(--tl-muted); font-size: 17px; max-width: 720px; margin: 0 auto; }

/* ---------- Hero ---------- */
.tools-landing .tl-hero {
    background-image: linear-gradient(135deg, #6631F8 0%, #1A0A3E 100%);
    background-size: cover, 4px 4px, 4px 4px;
    background-blend-mode: overlay;
    color: #fff;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}
.tl-hero::before {
    content: "";
    position: absolute;
    top: -160px; right: -160px;
    width: 480px; height: 480px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.10), transparent 70%);
    z-index: 0;
}
.tl-hero::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -160px;
    width: 460px; height: 460px;
    background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), transparent 70%);
    z-index: 0;
}
.tl-hero .container { position: relative; z-index: 1; }
.tl-hero h1 { color: #fff; font-size: 48px; line-height: 1.1; margin-bottom: 18px; }
.tl-hero .tl-hero-sub { font-size: 19px; color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; max-width: 620px; }
.tl-hero .tl-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 600; font-size: 14px;
    padding: 8px 14px; border-radius: 999px;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.tl-hero .tl-hero-badge .star { color: #facc15; }
.tl-hero .tl-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.tl-hero .btn-primary {
    background-color: #fff !important;
    border-color: #fff;
    color: var(--tl-primary) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.tl-hero .btn-primary:hover,
.tl-hero .btn-primary:focus {
    background-color: #f5f1ff !important;
    border-color: #f5f1ff;
    color: var(--tl-primary-hover) !important;
}
.tl-hero .btn-outline-primary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: transparent;
    box-shadow: none;
}
.tl-hero .btn-outline-primary:hover,
.tl-hero .btn-outline-primary:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff !important;
}
.tl-hero .tl-trust { margin-top: 24px; color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.tl-hero .tl-trust strong { color: #fff; }

/* Hero visual: resume -> match -> JD */
.tl-hero-visual {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--tl-shadow-card-hover);
    position: relative;
}
.tl-hero-visual-grid {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    gap: 14px;
    align-items: center;
}
.tl-doc-card {
    border: 1px solid var(--tl-border);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}
.tl-doc-card .tl-doc-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--tl-primary);
    margin-bottom: 8px;
}
.tl-doc-card .tl-doc-line {
    height: 8px; border-radius: 4px; background: #eef0f5; margin-bottom: 8px;
}
.tl-doc-card .tl-doc-line.short { width: 60%; }
.tl-doc-card .tl-doc-line.mid { width: 80%; }
.tl-match-circle {
    width: 110px; height: 110px; border-radius: 50%;
    background: conic-gradient(var(--tl-primary) 0 87%, #e9ecf3 87% 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    margin: 0 auto;
}
.tl-match-circle::after {
    content: ""; position: absolute; inset: 8px;
    background: #fff; border-radius: 50%;
}
.tl-match-circle .tl-match-num {
    position: relative; z-index: 1;
    font-weight: 700; font-size: 22px; color: var(--tl-ink);
}
.tl-match-circle .tl-match-num small { display: block; font-size: 11px; color: var(--tl-muted); font-weight: 600; }
.tl-skill-bar {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: var(--tl-text); margin-top: 10px;
}
.tl-skill-bar .name { width: 80px; }
.tl-skill-bar .track { flex: 1; height: 6px; background: #eef0f5; border-radius: 3px; overflow: hidden; }
.tl-skill-bar .fill { height: 100%; background: var(--tl-primary); border-radius: 3px; }

/* ---------- Featured tool ---------- */
.tl-featured {
    background: #fff;
}
.tl-featured-card {
    background: linear-gradient(135deg, #6631F8 0%, #8b5cf6 100%);
    color: #fff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 20px 48px rgba(102, 49, 248, 0.22);
    position: relative;
    overflow: hidden;
}
.tl-featured-card::before {
    content: ""; position: absolute; top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(closest-side, rgba(255,255,255,0.2), transparent 70%);
}
.tl-featured-card h2 { color: #fff; }
.tl-featured-card p { color: rgba(255,255,255,0.92); }
.tl-featured-card .tl-popular-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.18);
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 6px 12px; border-radius: 999px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.tl-featured-list { list-style: none; padding: 0; margin: 20px 0 28px; }
.tl-featured-list li {
    padding: 8px 0 8px 28px; position: relative;
    color: rgba(255,255,255,0.96); font-size: 15px;
}
.tl-featured-list li::before {
    content: "✓"; position: absolute; left: 0; top: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.tl-featured-card .btn-light {
    background: #fff; color: var(--tl-primary); border: none;
    font-weight: 600;
}
.tl-featured-card .btn-light:hover { background: #f5f1ff; color: var(--tl-primary-hover); }
.tl-featured-card .btn-outline-light {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6);
}
.tl-featured-card .btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Tools grid ---------- */
.tl-tools { background: var(--tl-bg-soft); }
.tl-tool-card {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    padding: 28px;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex; flex-direction: column;
}
.tl-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tl-shadow-card-hover);
    border-color: rgba(102, 49, 248, 0.3);
}
.tl-tool-card .tl-tool-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--tl-primary-soft);
    color: var(--tl-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.tl-tool-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.tl-tool-card ul li {
    padding: 4px 0 4px 22px; position: relative;
    font-size: 14px; color: var(--tl-text);
}
.tl-tool-card ul li::before {
    content: "•"; position: absolute; left: 6px; top: 4px;
    color: var(--tl-primary); font-weight: 700;
}
.tl-tool-card .tl-tool-link {
    margin-top: auto;
    color: var(--tl-primary); font-weight: 600; font-size: 15px;
    text-decoration: none;
}
.tl-tool-card .tl-tool-link:hover { color: var(--tl-primary-hover); }
.tl-tool-card .tl-tool-link .arrow { transition: transform 0.18s ease; display: inline-block; }
.tl-tool-card .tl-tool-link:hover .arrow { transform: translateX(4px); }

/* ---------- Benefits ---------- */
.tl-benefits { background: #fff; }
.tl-benefit-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px;
    border-radius: 12px;
    background: var(--tl-bg-soft);
    height: 100%;
}
.tl-benefit-item .tl-check {
    flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--tl-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.tl-benefit-item h3 { font-size: 17px; margin-bottom: 4px; }
.tl-benefit-item p { font-size: 14px; color: var(--tl-muted); margin: 0; }

/* ---------- How it works ---------- */
.tl-how {
    background: linear-gradient(180deg, #ffffff 0%, var(--tl-bg-soft) 100%);
}
.tl-how-steps { position: relative; }
.tl-step {
    background: #fff;
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    padding: 24px;
    text-align: center;
    height: 100%;
    position: relative;
}
.tl-step .tl-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--tl-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    margin: 0 auto 14px;
    box-shadow: 0 6px 16px var(--tl-primary-glow);
}
.tl-step h3 { font-size: 16px; margin-bottom: 6px; }
.tl-step p { font-size: 14px; color: var(--tl-muted); margin: 0; }

/* ---------- Social proof ---------- */
.tl-proof { background: #fff; text-align: center; }
.tl-metric {
    padding: 28px 20px;
}
.tl-metric .tl-metric-num {
    font-size: 44px; font-weight: 800;
    background: linear-gradient(135deg, #6631F8, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.tl-metric .tl-metric-label {
    font-size: 15px; color: var(--tl-muted); font-weight: 500;
}

/* ---------- Final CTA ---------- */
.tl-cta-final {
    background: linear-gradient(135deg, #1a1530 0%, #2a1a5e 100%);
    color: #fff;
    text-align: center;
}
.tl-cta-final h2 { color: #fff; font-size: 38px; }
.tl-cta-final p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .tools-landing .tl-hero { padding: 120px 0 56px; }
    .tl-hero h1 { font-size: 36px; }
    .tl-hero-visual { margin-top: 40px; }
    .tl-featured-card { padding: 32px; }
    .tools-landing h2 { font-size: 28px; }
    .tl-cta-final h2 { font-size: 30px; }
}
@media (max-width: 575.98px) {
    .tools-landing section { padding: 52px 0; }
    .tools-landing .tl-hero { padding: 110px 0 48px; }
    .tl-hero h1 { font-size: 30px; }
    .tl-hero .tl-hero-sub { font-size: 16px; }
    .tl-hero-visual-grid { grid-template-columns: 1fr; }
    .tl-match-circle { width: 96px; height: 96px; }
    .tl-featured-card { padding: 24px; border-radius: 14px; }
    .tl-metric .tl-metric-num { font-size: 34px; }
}
