/* =========================================================
   RSF Group - public site & private zone stylesheet
   Design language: deep ink-navy ground, warm amber + teal
   accents, an editorial serif for display type, a network /
   orbit motif to express "one group, many companies".
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --bg: #0a0f1e;
    --bg-soft: #0e1530;
    --surface: #121b38;
    --surface-2: #182447;
    --border: rgba(255, 255, 255, 0.09);
    --text: #eef0f8;
    --text-muted: #97a0c2;
    --text-faint: #6b7396;
    --amber: #f3a93c;
    --amber-deep: #d68a1f;
    --teal: #39c5b6;
    --rose: #e8718a;

    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -10%, #15214a 0%, var(--bg) 55%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

h2 em, h1 em { font-style: italic; color: var(--amber); }

p { margin: 0; }

/* ---------------------------------------------------------
   Background texture - faint dot grid, purely decorative
   --------------------------------------------------------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 30, 0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--amber), var(--amber-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: #18120a;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-name span { color: var(--text-muted); font-weight: 400; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-size: 14.5px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-amber {
    background: var(--amber);
    color: #1a1206;
}
.btn-amber:hover { background: #ffb955; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: var(--text);
    cursor: pointer;
}

/* ---------------------------------------------------------
   Hero + orbit signature element
   --------------------------------------------------------- */
.hero {
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}

.hero-eyebrow {
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(36px, 4.6vw, 58px);
    letter-spacing: -0.01em;
}

.hero-sub {
    margin-top: 22px;
    font-size: 17px;
    color: var(--text-muted);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.hero-meta {
    margin-top: 46px;
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.hero-meta .stat-num {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--amber);
}
.hero-meta .stat-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Orbit diagram */
.orbit-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}
.orbit-ring.r1 { width: 62%; height: 62%; margin: -31% 0 0 -31%; }
.orbit-ring.r2 { width: 92%; height: 92%; margin: -46% 0 0 -46%; }

.orbit-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 132px;
    height: 132px;
    margin: -66px 0 0 -66px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    box-shadow: 0 0 0 1px rgba(243, 169, 60, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
}
.orbit-hub .hub-mark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--amber);
}
.orbit-hub .hub-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 4px;
}

.orbit-spin {
    position: absolute;
    inset: 0;
    animation: spin 50s linear infinite;
}
.orbit-spin.reverse { animation-duration: 64s; animation-direction: reverse; }

.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    animation: counter-spin 50s linear infinite;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.orbit-spin.reverse .orbit-node { animation-duration: 64s; animation-direction: reverse; }
.orbit-node:hover { border-color: var(--amber); transform: scale(1.08); }
.orbit-node img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter-spin { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
    .orbit-spin, .orbit-node { animation: none !important; }
}

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
.section { padding: 80px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }
.section-head .desc { color: var(--text-muted); max-width: 440px; font-size: 15px; }

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    border: 0;
    margin: 0;
}

/* About band */
.about-band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.about-grid p { color: var(--text-muted); font-size: 16px; }
.about-pillars { display: grid; gap: 18px; }
.pillar {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.pillar .code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal);
    flex-shrink: 0;
    padding-top: 2px;
}
.pillar h3 { font-size: 16px; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.pillar p { font-size: 13.5px; color: var(--text-muted); }

/* ---------------------------------------------------------
   Companies grid
   --------------------------------------------------------- */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}
.chip {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.02em;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}
.chip:hover { border-color: var(--amber); color: var(--text); }
.chip.active { background: var(--amber); color: #1a1206; border-color: var(--amber); }

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

.company-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.company-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 169, 60, 0.4);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.65);
}

.company-card.is-hidden { display: none; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.company-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(150deg, var(--surface-2), var(--bg-soft));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--amber);
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.featured-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid rgba(243, 169, 60, 0.35);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.company-card h3 { font-size: 19px; font-family: var(--font-body); font-weight: 700; }

.category-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--teal);
    margin-top: 2px;
}

.company-card .desc {
    color: var(--text-muted);
    font-size: 14.5px;
    flex-grow: 1;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.visit-link:hover { color: var(--amber); border-color: var(--amber); }
.visit-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.visit-link:hover svg { transform: translate(2px, -2px); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-size: 14.5px;
}

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band {
    border-radius: 20px;
    background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
    border: 1px solid var(--border);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; max-width: 480px; }
.cta-band p { color: var(--text-muted); margin-top: 10px; max-width: 480px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 30px;
    background: var(--bg-soft);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
.footer-grid h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.footer-grid p, .footer-grid a {
    color: var(--text-muted);
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--amber); }

/* ---------------------------------------------------------
   Private Zone
   --------------------------------------------------------- */
.pz-page { min-height: 100vh; display: flex; flex-direction: column; }
.pz-main { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }

.pz-gate {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 38px;
    text-align: center;
}
.pz-gate .lock-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(243, 169, 60, 0.12);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pz-gate h1 { font-size: 24px; margin-bottom: 10px; }
.pz-gate p.lead { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }

.field { margin-bottom: 16px; text-align: left; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
}
.field input, .field select, .field textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: left;
    border: 1px solid transparent;
}
.alert-error { background: rgba(232, 113, 138, 0.12); color: #f2a6b6; border-color: rgba(232, 113, 138, 0.3); }
.alert-success { background: rgba(57, 197, 182, 0.12); color: #7fe0d4; border-color: rgba(57, 197, 182, 0.3); }

.btn-block { width: 100%; padding: 13px 20px; border-radius: var(--radius-sm); }

.pz-unlocked-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.pz-search input {
    width: 280px;
}

.pz-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.pz-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}
.pz-row:last-child { border-bottom: none; }
.pz-row:hover { background: var(--surface-2); }
.pz-row.is-hidden { display: none; }
.pz-row .proj-name { font-weight: 600; }
.pz-row .proj-company { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal); }
.pz-row .proj-notes { font-size: 13px; color: var(--text-muted); }
.pz-row .proj-link-cell { display: flex; justify-content: flex-end; }

.pz-table-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr auto;
    gap: 16px;
    padding: 14px 22px;
    background: var(--bg-soft);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 920px) {
    .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 20px 28px; gap: 18px; display: none; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .hero .wrap { grid-template-columns: 1fr; }
    .orbit-wrap { max-width: 320px; }
    .about-grid { grid-template-columns: 1fr; }
    .company-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .wrap { padding: 0 18px; }
    .hero { padding: 60px 0 40px; }
    .company-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 36px 24px; text-align: center; justify-content: center; }
    .pz-table-head { display: none; }
    .pz-row { grid-template-columns: 1fr; gap: 6px; }
    .pz-row .proj-link-cell { justify-content: flex-start; margin-top: 8px; }
}
