/* ================================
   ThetaSecure — 2026 redesign
   Loaded AFTER styles.css on redesigned pages only.
   Re-themes the existing nav/footer/buttons via CSS var overrides,
   then adds new component styles scoped to .rd-* classes.
   ================================ */

:root {
    --primary-color: #0B1F33;
    --primary-dark: #081521;
    --primary-light: #1E3A52;
    --secondary-color: #0B1F33;
    --secondary-dark: #081521;
    --gradient-primary: linear-gradient(135deg, #0B1F33 0%, #16324A 100%);
    --gradient-dark: linear-gradient(135deg, #0B1F33 0%, #081521 100%);
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
}

.rd {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: #FFFFFF;
}
.rd .mono { font-family: 'IBM Plex Mono', monospace; }
.rd a { text-decoration: none; }
.rd .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- animations ---- */
@keyframes rdFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rdPulse { 0% { box-shadow: 0 0 0 0 rgba(11,31,51,0.35); } 70% { box-shadow: 0 0 0 9px rgba(11,31,51,0); } 100% { box-shadow: 0 0 0 0 rgba(11,31,51,0); } }
@keyframes rdFlowX { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.rd-fade-up { opacity: 0; animation: rdFadeUp .7s ease forwards; }
.rd-pulse { animation: rdPulse 2s infinite; }
.rd-lift { transition: transform .2s ease, box-shadow .2s ease; }
.rd-lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(15,23,42,0.25); }

/* ---- hero ---- */
.rd-hero { padding: 140px 0 72px; }
.rd-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.rd-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); background: #EAEFF4; padding: 6px 12px; border-radius: 4px; margin-bottom: 24px; font-family: 'IBM Plex Mono', monospace; }
.rd-h1 { font-size: 52px; line-height: 1.1; font-weight: 800; margin: 0 0 22px; letter-spacing: -0.02em; }
.rd-h1 .accent { color: var(--primary-color); }
.rd-sub { font-size: 17px; line-height: 1.6; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; }
.rd-btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rd-btn { display: inline-block; background: var(--primary-color); color: #fff !important; font-weight: 600; font-size: 14.5px; padding: 14px 26px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(11,31,51,0.5); transition: transform .15s ease; }
.rd-btn:hover { transform: translateY(-2px); }
.rd-link-underline { font-weight: 600; font-size: 14.5px; border-bottom: 2px solid var(--text-primary); color: var(--text-primary) !important; }

/* ---- live activity card ---- */
.rd-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; }
.rd-live-card { padding: 4px; box-shadow: 0 30px 60px -28px rgba(26,23,19,0.28); }
.rd-live-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.rd-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E2E8F0; }
.rd-live-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.rd-live-row:last-child { border-bottom: none; }
.rd-live-row .d { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.rd-live-row .t { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-secondary); margin-left: auto; }

/* ---- generic sections ---- */
.rd-section { padding: 72px 0; }
.rd-section.tint { background: #FAFBFC; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.rd-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.rd-kicker.accent { color: var(--primary-dark); }
.rd-h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }

/* ---- 3-col grids / step diagrams ---- */
.rd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rd-steps { position: relative; }
.rd-steps .line { position: absolute; top: 23px; left: 16.5%; right: 16.5%; height: 2px; background: var(--border-color); overflow: hidden; }
.rd-steps .line .dot { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color); animation: rdFlowX 3.4s linear infinite; }
.rd-step { position: relative; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.rd-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-bottom: 16px; font-family: 'IBM Plex Mono', monospace; }
.rd-step h4 { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.rd-step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- feature cards ---- */
.rd-feature { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.rd-feature h4 { font-weight: 800; font-size: 16px; margin: 0 0 8px; }
.rd-feature p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ---- pills / segmented control ---- */
.rd-pills { display: inline-flex; gap: 4px; border-radius: 999px; background: #F1F5F9; padding: 5px; flex-wrap: wrap; }
.rd-pill { border: none; background: transparent; color: var(--text-secondary); padding: 10px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.rd-pill.active { background: var(--primary-color); color: #fff; box-shadow: 0 2px 6px -2px rgba(15,23,42,0.15); }

/* ---- badges ---- */
.rd-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: 'IBM Plex Mono', monospace; }
.rd-badge.green { background: #DCFCE7; color: #16A34A; }
.rd-badge.navy { background: #EAEFF4; color: var(--primary-dark); }

/* ---- gateway diagram ---- */
.rd-gateway { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 32px; }
.rd-gateway-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 16px; }
.rd-gateway-box { border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; font-size: 13.5px; font-weight: 600; text-align: center; }
.rd-gateway-mid { position: relative; border: 2px solid var(--primary-color); background: #EAEFF4; border-radius: 10px; padding: 16px; text-align: center; }
.rd-gateway-mid .conn { position: absolute; top: 50%; width: 16px; height: 2px; background: var(--text-secondary); }
.rd-gateway-mid .conn.l { left: -16px; } .rd-gateway-mid .conn.r { right: -16px; }
.rd-gateway-sync { display: flex; justify-content: center; margin-top: 16px; }

/* ---- policy composer ---- */
.rd-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 10px; cursor: pointer; margin-bottom: 12px; }
.rd-switch { width: 40px; height: 22px; border-radius: 11px; background: #D9D2C2; position: relative; display: inline-block; transition: background .15s; }
.rd-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.rd-switch.on { background: #16A34A; }
.rd-switch.on .knob { left: 20px; }
.rd-result { padding: 16px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px; text-align: center; font-family: 'IBM Plex Mono', monospace; }
.rd-result.ok { background: #DCFCE7; color: #16A34A; }
.rd-result.blocked { background: #EAEFF4; color: var(--primary-dark); }

/* ---- tables ---- */
.rd-table-wrap { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(26,23,19,0.2); }
.rd-table-wrap .rd-tr { display: grid; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.rd-table-wrap .rd-tr:last-child { border-bottom: none; }
.rd-table-wrap .rd-tr.head { padding: 12px 22px; background: #F8FAFC; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }

/* ---- solutions cards ---- */
.rd-sol-card { cursor: pointer; border: 1px solid var(--border-color); border-radius: 10px; padding: 16px; transition: border-color .15s, background .15s; display: block; }
.rd-sol-card:hover, .rd-sol-card.active { border-color: var(--primary-color); background: #EAEFF4; }
.rd-sol-card h5 { font-weight: 600; font-size: 14.5px; margin: 0 0 4px; }
.rd-sol-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.rd-ind-chip { border: 1px solid var(--border-color); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; color: var(--text-secondary); display: inline-block; }
.rd-ind-chip:hover { border-color: var(--primary-color); color: var(--primary-dark); }

/* ---- FAQ ---- */
.rd-faq details { border-bottom: 1px solid var(--border-color); padding: 18px 0; }
.rd-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq .a { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 12px; }

/* ---- responsive ---- */
@media (max-width: 860px) {
    .rd-hero { padding: 110px 0 48px; }
    .rd-hero-grid, .rd-grid-3, .rd-grid-2, .rd-gateway-row { grid-template-columns: 1fr !important; }
    .rd-gateway-mid .conn { display: none; }
    .rd-steps .line { display: none; }
    .rd-h1 { font-size: 32px !important; }
    .rd-h2 { font-size: 24px !important; }
    .rd-table-wrap { overflow-x: auto; }
    .rd-table-wrap .rd-tr { min-width: 520px; }
}
