/*
 * RankGenius site styling, layered over the Inspinia/Bootstrap 3 theme.
 * 2026 "modern technical" retheme: distinctive type (Bricolage Grotesque display +
 * IBM Plex Sans body / IBM Plex Mono code), near-black ink, a single electric-cyan
 * accent. Base typography below applies site-wide; `rg-`/`nh-` rules style the public
 * pages. Component colors read from the CSS variables, so the palette lives in one place.
 */

:root {
    --rg-font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --rg-font-display: 'Bricolage Grotesque', var(--rg-font-body);
    --rg-font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

    --rg-ink:           #0d1117;               /* headings, strong text */
    --rg-body:          #2b313b;               /* body copy */
    --rg-muted:         #6b7480;               /* secondary text */
    --rg-accent:        #0e9bc4;               /* cyan — links & accents (legible on white) */
    --rg-accent-strong: #0b7c9c;               /* darker cyan for text links */
    --rg-accent-2:      #00b4d8;               /* brighter cyan for fills/hero */
    --rg-accent-soft:   rgba(0, 180, 216, 0.12);
    --rg-hero-dark:     #0d1117;
}

/* ---- Base typography (site-wide lift over Inspinia's 13px system default) ---- */
body {
    font-family: var(--rg-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--rg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--rg-font-display);
    color: var(--rg-ink);
    letter-spacing: -0.015em;
    font-weight: 700;
}
a { color: var(--rg-accent-strong); }
a:hover, a:focus { color: var(--rg-accent); }
code, kbd, pre, samp { font-family: var(--rg-font-mono); }
.lead { font-size: 18px; line-height: 1.6; }

/* Public content reads bigger and roomier than the dense app chrome. */
.rg-docs, .rg-docs p, .rg-docs li,
.rg-block, .rg-block p, .rg-block li { font-size: 16px; }
.rg-docs p, .rg-docs li, .rg-block p { line-height: 1.7; color: var(--rg-body); }
.rg-docs h1 { font-size: 34px; }
.rg-docs h2 { font-size: 25px; }
.rg-docs h3 { font-size: 19px; }
.rg-section-title h2 { font-size: 30px; }

/* ---- Hero ---------------------------------------------------------------- */
.rg-hero {
    background: linear-gradient(135deg, #1ab394 0%, #1c84c6 100%);
    color: #fff;
    border-radius: 8px;
    padding: 64px 24px 72px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(28, 132, 198, 0.25);
    position: relative;
    overflow: hidden;
}
.rg-hero:after { /* subtle diagonal sheen */
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 420px; height: 420px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(35deg);
    border-radius: 60px;
}
.rg-hero h1 {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.rg-hero .lead { color: rgba(255,255,255,0.95); font-size: 19px; }
.rg-hero .btn-primary {
    background: #fff; color: #1c84c6; border-color: #fff; font-weight: 600;
}
.rg-hero .btn-primary:hover { background: #f1f7fb; color: #16709f; }
.rg-hero .btn-default {
    background: transparent; color: #fff; border-color: rgba(255,255,255,0.7);
}
.rg-hero .btn-default:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---- Feature row --------------------------------------------------------- */
.rg-feature { text-align: center; padding: 10px 12px; }
.rg-feature-icon {
    width: 66px; height: 66px; line-height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    font-size: 27px; color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.rg-feature h3 { margin-top: 4px; font-weight: 600; }

/* ---- Section headings ---------------------------------------------------- */
.rg-section-title { text-align: center; margin: 8px 0 6px; }
.rg-section-title h2 { font-weight: 700; margin-bottom: 10px; }
.rg-section-title:after {
    content: ""; display: block; width: 60px; height: 4px;
    margin: 14px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, #1ab394, #1c84c6);
}
.rg-group-label {
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
    font-weight: 700; color: #9aa4b2; margin: 26px 0 6px;
}

/* ---- Use-case cards ------------------------------------------------------ */
.rg-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    border-top: 4px solid var(--rg-accent, #1ab394);
    box-shadow: 0 3px 12px rgba(24, 40, 72, 0.08);
    padding: 22px 22px 20px;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(24, 40, 72, 0.16);
}
.rg-card-icon {
    width: 48px; height: 48px; line-height: 48px; text-align: center;
    border-radius: 12px; font-size: 22px; margin-bottom: 12px;
    color: var(--rg-accent, #1ab394);
    background: var(--rg-accent-soft, rgba(26,179,148,0.12));
}
.rg-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.rg-card h3 a { color: #2b3a4b; }
.rg-card h3 a:hover { color: var(--rg-accent, #1ab394); text-decoration: none; }
.rg-card .rg-tagline { color: #6b7583; margin-bottom: 12px; }
.rg-card .rg-tools { font-size: 12px; color: #9aa4b2; margin-bottom: 14px; }
.rg-card .rg-more {
    font-weight: 600; font-size: 13px; color: var(--rg-accent, #1ab394);
}
.rg-card--featured {
    box-shadow: 0 6px 22px rgba(237, 85, 101, 0.18);
}
.rg-ribbon {
    position: absolute; top: 14px; right: -2px;
    background: var(--rg-accent, #ED5565); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
    padding: 3px 10px; border-radius: 3px 0 0 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---- Use-case detail page ------------------------------------------------ */
.rg-detail-head {
    border-radius: 8px; color: #fff; padding: 34px 28px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--rg-accent, #1ab394), #2b3a4b);
    box-shadow: 0 10px 26px rgba(24,40,72,0.16);
}
.rg-detail-head h1 { margin: 0 0 8px; font-weight: 700; }
.rg-detail-head .lead { color: rgba(255,255,255,0.95); margin-bottom: 0; }
.rg-detail-head .rg-tools { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 10px; }
.rg-detail-head .rg-head-icon { font-size: 34px; opacity: 0.9; margin-bottom: 8px; }

.rg-block { background:#fff; border-radius:8px; padding:22px 24px; margin-bottom:20px;
    box-shadow: 0 2px 10px rgba(24,40,72,0.06); }
.rg-block > h2 { margin-top: 0; font-size: 20px; font-weight: 600; }
.rg-block-title { display:flex; align-items:center; }
.rg-block-title i { color: var(--rg-accent, #1ab394); margin-right: 10px; font-size: 18px; }
.rg-example { border-left: 4px solid var(--rg-accent, #1ab394); }
.rg-takeaway {
    background: linear-gradient(135deg, rgba(26,179,148,0.10), rgba(28,132,198,0.10));
    border: 1px solid rgba(28,132,198,0.18);
}
.rg-takeaway strong:first-child { color: #16709f; }

/* Colorize the delivery heat-map legend a touch */
.rg-example pre { background:#0f1b2d; color:#e6edf5; border:none; border-radius:6px; padding:16px; }

/* ---- CTA band ------------------------------------------------------------ */
.rg-cta {
    background: linear-gradient(135deg, #2b3a4b 0%, #1c84c6 100%);
    color:#fff; border-radius: 8px; padding: 36px 24px; text-align:center;
}
.rg-cta h2 { margin-top: 0; font-weight: 700; }
.rg-cta .text-muted { color: rgba(255,255,255,0.85) !important; }
.rg-cta .btn-primary { background:#fff; color:#1c84c6; border-color:#fff; font-weight:600; }
.rg-cta .btn-primary:hover { background:#eef5fb; }
.rg-cta .btn-default { background:transparent; color:#fff; border-color:rgba(255,255,255,0.7); }

@media (max-width: 767px) {
    .rg-hero { padding: 40px 18px 46px; }
    .rg-hero h1 { font-size: 30px; }
}

/* ---- Documentation ------------------------------------------------------- */
.rg-docs-nav { padding-right: 10px; }
.rg-docs-nav h4 {
    text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px;
    font-weight: 700; color: #1c84c6; margin: 18px 0 6px;
}
.rg-docs-nav ul { list-style: none; padding-left: 0; margin-bottom: 6px; }
.rg-docs-nav li { margin: 2px 0; }
.rg-docs-nav a { color: #5b6673; font-size: 13px; }
.rg-docs-nav a:hover { color: #1ab394; }
.rg-docs-nav .rg-docs-sub a { padding-left: 12px; font-size: 12px; color: #8a94a2; }
@media (min-width: 992px) { .rg-docs-nav { position: sticky; top: 20px; } }

.rg-docs pre.code, .rg-docs pre {
    background: #0f1b2d; color: #e6edf5; border: none; border-radius: 6px;
    padding: 14px 16px; font-size: 12.5px; line-height: 1.55; overflow-x: auto;
}
.rg-docs pre.code .tok { color: #7ee0c0; }
.rg-docs h2 { font-weight: 700; margin-top: 6px; padding-top: 6px; }
.rg-docs h3 { font-weight: 600; }
.rg-docs .rg-tool {
    border: 1px solid #e6e9ef; border-left: 4px solid var(--rg-accent, #1ab394);
    border-radius: 6px; padding: 18px 20px; margin-bottom: 22px; background: #fff;
}
.rg-docs .rg-tool h3 { margin-top: 0; }
.rg-docs .rg-tool-id {
    display: inline-block;
    font-size: 12px; color: #fff; background: var(--rg-accent, #1ab394);
    padding: 2px 8px; border-radius: 3px; font-family: monospace; margin-left: 8px;
    vertical-align: middle;
}
.rg-docs .table code, .rg-docs p code, .rg-docs td code {
    background: #eef1f6; color: #c7254e; padding: 1px 5px; border-radius: 3px;
}
.rg-docs .rg-req { color: #ED5565; font-weight: 600; }
.rg-docs .rg-opt { color: #9aa4b2; }
.rg-docs .rg-key {
    background: rgba(26,179,148,0.10); border: 1px dashed rgba(26,179,148,0.5);
    border-radius: 4px; padding: 8px 12px; font-family: monospace; font-size: 12px;
    word-break: break-all;
}

/* ---- Auth pages (login / signup / reset) --------------------------------- */
.rg-auth { max-width: 430px; margin: 44px auto; }
.rg-auth-card {
    background: #fff; border: 1px solid #e6e9ef; border-radius: 10px;
    box-shadow: 0 14px 34px rgba(28,132,198,0.12); overflow: hidden;
}
.rg-auth-head {
    background: linear-gradient(135deg, #1ab394 0%, #1c84c6 100%);
    color: #fff; padding: 28px 28px 26px; text-align: center; position: relative; overflow: hidden;
}
.rg-auth-head:after { /* subtle sheen, matches .rg-hero */
    content: ""; position: absolute; top: -60%; right: -20%;
    width: 260px; height: 260px; background: rgba(255,255,255,0.08);
    transform: rotate(35deg); border-radius: 50px;
}
.rg-auth-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.16); margin-bottom: 12px; position: relative;
}
.rg-auth-head h1 { font-size: 22px; font-weight: 700; margin: 4px 0 3px; text-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.rg-auth-head p { color: rgba(255,255,255,0.92); margin: 0; font-size: 14px; position: relative; }
.rg-auth-body { padding: 26px 28px 20px; }
.rg-auth-body .form-group { margin-bottom: 16px; }
.rg-auth-body label { font-weight: 600; color: #4a5765; font-size: 13px; }
.rg-auth-body .form-control { height: 42px; }
.rg-auth-body .btn-block { font-weight: 600; margin-top: 4px; }
.rg-auth-foot { text-align: center; padding: 4px 28px 24px; color: #8a97a7; font-size: 14px; line-height: 1.9; }
.rg-auth-foot a { color: #1ab394; font-weight: 600; }
.rg-auth-foot a:hover { color: #16997f; }

/* ---- Pricing ------------------------------------------------------------- */
.rg-price-card {
    position: relative; text-align: center; background: #fff;
    border: 1px solid #e6e9ef; border-radius: 10px; padding: 26px 22px 22px;
    margin-bottom: 26px; height: calc(100% - 26px);
    transition: box-shadow .15s ease, transform .15s ease;
}
.rg-price-card:hover { box-shadow: 0 10px 26px rgba(28,132,198,0.12); transform: translateY(-2px); }
.rg-price-card.rg-price-featured { border: 2px solid var(--rg-accent, #1ab394); }
.rg-price-amount { font-size: 34px; font-weight: 800; color: #2b3a4b; letter-spacing: -0.02em; line-height: 1.1; }
.rg-price-credits { color: var(--rg-accent, #1ab394); font-weight: 700; font-size: 16px; margin-top: 4px; }
.rg-price-sub { color: #8a97a7; font-size: 13px; margin: 4px 0 18px; }
.rg-price-note { color: #8a97a7; font-size: 13px; text-align: center; margin-top: 6px; }

/* Sign Up CTA — bright orange to pop against the dark header. */
.btn-signup, .btn-signup:link, .btn-signup:visited, .btn-signup:focus, .btn-signup:active { background-color: #ff7a18; border-color: #ff7a18; color: #fff !important; font-weight: 700; box-shadow: 0 2px 8px rgba(255, 122, 24, 0.35); }
.btn-signup:hover { background-color: #f26400; border-color: #f26400; color: #fff !important; }

/* ==========================================================================
 * Modern-technical retheme (2026): recolor components that carried the old
 * literal teal/blue to the near-black + electric-cyan palette. Rules that read
 * var(--rg-accent, …) already pick up the new palette from :root above.
 * ========================================================================== */

/* Hero — dark, technical, with a cyan wash instead of teal->blue. */
.rg-hero {
    background: linear-gradient(135deg, var(--rg-hero-dark) 0%, #0b3a4a 60%, #0e7490 100%);
    box-shadow: 0 18px 44px rgba(13, 17, 23, 0.30);
}
.rg-hero .btn-primary { color: var(--rg-accent-strong); }
.rg-hero .btn-primary:hover { color: #075063; }

/* Section underline + featured accents. */
.rg-section-title:after { background: linear-gradient(90deg, var(--rg-accent-2), var(--rg-accent-strong)); }

/* Docs left-nav. */
.rg-docs-nav h4 { color: var(--rg-accent-strong); }
.rg-docs-nav a:hover { color: var(--rg-accent); }
.rg-docs pre.code, .rg-docs pre { font-size: 13.5px; }

/* Auth pages (login / signup / reset). */
.rg-auth-head { background: linear-gradient(135deg, var(--rg-hero-dark) 0%, #0e7490 100%); }
.rg-auth-foot a { color: var(--rg-accent-strong); }
.rg-auth-foot a:hover { color: var(--rg-accent); }

/* CTA band + takeaway callout. */
.rg-cta { background: linear-gradient(135deg, #0d1117 0%, #0e7490 100%); }
.rg-cta .btn-primary { color: var(--rg-accent-strong); }
.rg-takeaway {
    background: linear-gradient(135deg, rgba(0,180,216,0.10), rgba(14,116,144,0.10));
    border: 1px solid rgba(14,116,144,0.20);
}
.rg-takeaway strong:first-child { color: var(--rg-accent-strong); }

/* Inline API-key sample. */
.rg-key {
    background: var(--rg-accent-soft); border: 1px dashed rgba(0,180,216,0.5);
    font-family: var(--rg-font-mono);
}

/* Headings/lead on dark surfaces must stay light — the site-wide near-black heading
 * ink (h1..h5 { color: var(--rg-ink) }) would otherwise render them unreadable. */
.rg-hero h1, .rg-hero .lead,
.rg-cta h2, .rg-cta .lead,
.rg-detail-head h1, .rg-detail-head .lead,
.rg-auth-head h1 { color: #fff; }

/* Use-case card grid: float-based Bootstrap columns wrap unevenly when cards differ in
 * height (rows of 3/2/1). Flex-wrap at desktop gives clean rows of three, equal height;
 * below md the columns stack normally (block, full width), so keep flex desktop-only. */
@media (min-width: 992px) {
    .rg-cards { display: flex; flex-wrap: wrap; }
    .rg-cards > .col-md-12 { flex: 0 0 100%; }
}
