/*
  Homepage-only stylesheet, scoped by `body.rw-home`. Mirrors the live Astro
  site's actual design tokens (remoty-site/tailwind.config.mjs — Inter +
  JetBrains Mono, the "olive"/emerald palette) rather than this app's
  Fraunces/case-file system, per explicit owner direction 2026-08-23: the
  landing page must look identical to the Astro site, not the redesign.
  Deliberately scoped to .rw-home only so other ported pages (jobs,
  companies, talent-pools) are untouched by this.
*/

body.rw-home {
    --rw-ink: hsl(240 5% 8%);
    --rw-ink-soft: hsl(240 3% 40%);
    --rw-ink-faint: hsl(240 3% 62%);
    --rw-paper: hsl(240 5% 96%);
    --rw-paper-muted: hsl(240 4% 92%);
    --rw-cream: hsl(40 20% 98%);
    --rw-olive: hsl(160 84% 39%);
    --rw-olive-soft: hsl(160 60% 50%);
    --rw-emerald-400: #34d399;
    --rw-emerald-500: #10b981;
    --rw-line: hsl(240 5% 8% / 0.08);
    --rw-line-soft: hsl(240 5% 8% / 0.05);

    background: var(--rw-paper);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body.rw-home .rw-mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
body.rw-home .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Hero ── */
body.rw-home .rw-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rw-line); }
body.rw-home .rw-hero-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px; max-width: 100%;
    background: radial-gradient(closest-side, hsl(160 84% 39% / 0.08), transparent 70%);
    filter: blur(40px); pointer-events: none;
}
body.rw-home .rw-hero-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 5rem 1.5rem 4rem; text-align: center; }
@media (min-width: 768px) { body.rw-home .rw-hero-inner { padding: 7rem 1.5rem 6rem; } }

body.rw-home .rw-ph-badge { display: flex; justify-content: center; margin-bottom: 1rem; }
body.rw-home .rw-ph-badge img { width: 250px; height: 54px; transition: transform .15s; }
body.rw-home .rw-ph-badge a:hover img { transform: scale(1.02); }

body.rw-home .rw-live-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 0.9rem; border-radius: 999px;
    background: hsl(240 5% 8% / 0.05); border: 1px solid var(--rw-line);
    color: var(--rw-ink-soft); font-size: 0.75rem; font-weight: 500;
    margin-bottom: 2rem; text-decoration: none; transition: background .15s;
}
body.rw-home .rw-live-badge:hover { background: hsl(240 5% 8% / 0.1); }
body.rw-home .rw-live-dot { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; }
body.rw-home .rw-live-dot-ping {
    position: absolute; inset: 0; border-radius: 999px; background: var(--rw-olive);
    opacity: 0.75; animation: rw-ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
body.rw-home .rw-live-dot-core { position: relative; display: block; width: 100%; height: 100%; border-radius: 999px; background: var(--rw-olive); }
@keyframes rw-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

body.rw-home .rw-hero-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--rw-ink); margin: 0; }
@media (min-width: 768px) { body.rw-home .rw-hero-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { body.rw-home .rw-hero-title { font-size: 3.75rem; } }
body.rw-home .rw-hero-gradient {
    background: linear-gradient(to bottom right, var(--rw-olive), var(--rw-emerald-400));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.rw-home .rw-hero-lede { max-width: 34rem; margin: 1.25rem auto 0; font-size: 1rem; line-height: 1.7; color: var(--rw-ink-soft); }
@media (min-width: 768px) { body.rw-home .rw-hero-lede { font-size: 1.125rem; } }
body.rw-home .rw-hero-lede-strong { color: var(--rw-ink); font-weight: 500; }

body.rw-home .rw-cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
body.rw-home .rw-cta-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border-radius: 999px; text-decoration: none;
    background: linear-gradient(to right, var(--rw-olive), var(--rw-emerald-500));
    color: #fff; font-size: 0.875rem; font-weight: 600;
    box-shadow: 0 2px 8px hsl(160 84% 39% / 0.2); transition: transform .15s, box-shadow .15s;
}
body.rw-home .rw-cta-primary:hover { transform: scale(1.02); box-shadow: 0 4px 14px hsl(160 84% 39% / 0.3); }
body.rw-home .rw-cta-arrow { color: rgba(255,255,255,0.7); }
body.rw-home .rw-cta-telegram {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border-radius: 999px; text-decoration: none;
    background: hsl(199 79% 46% / 0.1); border: 1px solid hsl(199 79% 46% / 0.3);
    color: #1a7ab5; font-size: 0.875rem; font-weight: 600; transition: transform .15s, background .15s;
}
body.rw-home .rw-cta-telegram:hover { transform: scale(1.02); background: hsl(199 79% 46% / 0.2); }
body.rw-home .rw-cta-arrow-muted { opacity: 0.6; }

body.rw-home .rw-stats-row { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
@media (min-width: 768px) { body.rw-home .rw-stats-row { gap: 4rem; } }
body.rw-home .rw-stat { text-align: center; text-decoration: none; }
body.rw-home .rw-stat-num { display: block; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; color: var(--rw-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { body.rw-home .rw-stat-num { font-size: 2.25rem; } }
body.rw-home .rw-stat-olive { color: var(--rw-olive); }
a.rw-stat:hover .rw-stat-num { color: var(--rw-olive-soft); }
body.rw-home .rw-stat-label { display: block; font-size: 0.875rem; color: var(--rw-ink-faint); margin-top: 0.375rem; font-weight: 500; }

body.rw-home .rw-newsletter { margin-top: 3rem; }
body.rw-home .rw-newsletter-lede { font-size: 0.875rem; color: var(--rw-ink-faint); margin-bottom: 0.75rem; font-weight: 500; }
body.rw-home .rw-newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; margin: 0 auto; }
@media (min-width: 640px) { body.rw-home .rw-newsletter-form { flex-direction: row; } }
body.rw-home .rw-newsletter-input {
    flex: 1; height: 3rem; border-radius: 0.75rem; border: 1px solid hsl(240 5% 8% / 0.15);
    background: hsl(40 20% 98% / 0.5); padding: 0 1rem; font-size: 0.875rem; font-family: inherit;
}
body.rw-home .rw-newsletter-input::placeholder { color: var(--rw-ink-faint); }
body.rw-home .rw-newsletter-btn {
    height: 3rem; padding: 0 2rem; border-radius: 0.75rem; border: 0; cursor: pointer;
    background: var(--rw-ink); color: var(--rw-cream); font-size: 0.875rem; font-weight: 600; font-family: inherit;
}
body.rw-home .rw-newsletter-btn:hover { background: hsl(240 5% 8% / 0.85); }
body.rw-home .rw-newsletter-fine { font-size: 0.75rem; color: hsl(240 3% 62% / 0.7); margin-top: 0.75rem; }
body.rw-home .rw-newsletter-fine a { color: var(--rw-olive); text-decoration: underline; text-underline-offset: 2px; }

/* ── Section shell ── */
body.rw-home .rw-section-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
body.rw-home .rw-h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--rw-ink); margin: 0; }
@media (min-width: 768px) { body.rw-home .rw-h2 { font-size: 1.5rem; } }
body.rw-home .rw-section-sub { font-size: 0.875rem; color: var(--rw-ink-soft); margin-top: 0.375rem; }
body.rw-home .rw-inline-link { color: var(--rw-olive); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }

/* ── Trust bar ── */
body.rw-home .rw-trust-bar { padding: 3rem 0; border-bottom: 1px solid var(--rw-line-soft); background: hsl(240 4% 92% / 0.3); }
body.rw-home .rw-trust-kicker { text-align: center; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rw-ink-faint); margin-bottom: 1.5rem; }
body.rw-home .rw-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { body.rw-home .rw-trust-grid { grid-template-columns: repeat(4, 1fr); } }
body.rw-home .rw-trust-item { text-align: center; }
body.rw-home .rw-trust-num { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; color: var(--rw-ink); }
body.rw-home .rw-trust-label { display: block; font-size: 0.875rem; color: var(--rw-ink-soft); margin-top: 0.25rem; }

/* ── Category hub ── */
body.rw-home .rw-category-hub { padding: 3rem 0; border-bottom: 1px solid var(--rw-line-soft); }
body.rw-home .rw-section-head { text-align: center; margin-bottom: 2rem; }
body.rw-home .rw-section-head .rw-section-sub { max-width: 32rem; margin: 0.5rem auto 0; }
body.rw-home .rw-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { body.rw-home .rw-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { body.rw-home .rw-category-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { body.rw-home .rw-category-grid { grid-template-columns: repeat(6, 1fr); } }
body.rw-home .rw-category-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    border-radius: 0.75rem; background: linear-gradient(to bottom, var(--rw-cream), var(--rw-paper));
    box-shadow: inset 0 0 0 1px hsl(240 5% 8% / 0.06); padding: 1rem; text-decoration: none;
    transition: box-shadow .15s;
}
body.rw-home .rw-category-card:hover { box-shadow: inset 0 0 0 1px hsl(240 5% 8% / 0.15); }
body.rw-home .rw-category-name { font-size: 0.875rem; font-weight: 600; color: var(--rw-ink); letter-spacing: -0.01em; }
body.rw-home .rw-category-card:hover .rw-category-name { color: var(--rw-olive); }
body.rw-home .rw-category-count { font-size: 0.75rem; color: var(--rw-ink-faint); margin-top: 0.25rem; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
body.rw-home .rw-see-all { text-align: center; margin-top: 1.5rem; }
body.rw-home .rw-see-all a { font-size: 0.875rem; color: var(--rw-olive); font-weight: 500; text-decoration: none; }
body.rw-home .rw-see-all a:hover { color: var(--rw-olive-soft); }

/* ── Filter bands ── */
body.rw-home .rw-filter-band { border-bottom: 1px solid var(--rw-line-soft); background: hsl(240 4% 92% / 0.2); }
body.rw-home .rw-filter-inner { max-width: 48rem; margin: 0 auto; padding: 1.25rem 1.5rem; }
body.rw-home .rw-filter-kicker { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rw-ink-faint); margin-bottom: 0.625rem; }
body.rw-home .rw-pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
body.rw-home .rw-pill {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
    color: var(--rw-ink-soft); background: hsl(240 5% 8% / 0.05); border: 1px solid hsl(240 5% 8% / 0.05);
    text-decoration: none; transition: background .15s, color .15s;
}
body.rw-home .rw-pill:hover { background: hsl(240 5% 8% / 0.1); color: var(--rw-ink); }
body.rw-home .rw-pill-active { background: var(--rw-ink); color: var(--rw-cream); font-weight: 600; border-color: transparent; }
body.rw-home .rw-pill-active:hover { background: var(--rw-ink); color: var(--rw-cream); }
body.rw-home .rw-pill-olive { background: hsl(160 84% 39% / 0.05); border-color: hsl(160 84% 39% / 0.15); }
body.rw-home .rw-pill-olive:hover { background: hsl(160 84% 39% / 0.1); color: var(--rw-olive); border-color: hsl(160 84% 39% / 0.3); }
body.rw-home .rw-pill-count { color: var(--rw-ink-faint); font-family: 'JetBrains Mono', monospace; font-size: 0.625rem; }

/* ── Listings ── */
body.rw-home .rw-listings { padding: 3rem 0; }
body.rw-home .rw-listings-alt { border-top: 1px solid var(--rw-line); background: hsl(240 4% 92% / 0.2); }
body.rw-home .rw-section-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
body.rw-home .rw-job-list { max-width: 80rem; margin: 0 auto; }
body.rw-home .rw-browse-more { margin-top: 1.5rem; text-align: center; }
body.rw-home .rw-browse-more-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem;
    border-radius: 999px; border: 1px solid hsl(240 5% 8% / 0.12); color: var(--rw-ink-soft);
    font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s;
}
body.rw-home .rw-browse-more-btn:hover { border-color: hsl(240 5% 8% / 0.24); color: var(--rw-ink); }

/* Job rows inherit the existing case-file component styling (grade stamp) —
   only the surrounding shell/section chrome above is re-themed. */
