/* ══════════════════════════════════════════════════════════════
   RADIAN — 360° POLAR LIFE DIAL DESIGN SYSTEM
   KSM × Tech Applied AI Studio
   Chassis & Ground: Sectograph Dark Espresso (AppColors.dart)
   Visual System: KSM × Tech Vrindavan & BYF Design Language
   ══════════════════════════════════════════════════════════════ */

:root {
    /* ─── Ground & Chassis (AppColors.espressoChassisBg) ─── */
    --rd-bg: #1E1A16;
    --rd-surface-deep: #191613;
    --rd-surface: #28221D;
    --rd-surface-raised: #342B23;
    --rd-cell: #241F1A;
    --rd-border: #3D352E;
    --rd-border-subtle: #3A322A;
    --rd-border-glow: rgba(234, 160, 54, 0.35);

    /* ─── Typography Pigments (AppColors & Vrindavan) ─── */
    --rd-text: #EDE7DF;
    --rd-text-muted: #9E968D;
    --rd-text-subtle: #888177;

    /* ─── Strict Semantic Pigments ─── */
    --rd-amber: #EAA036;          /* Action / Add Block / Primary Lamp */
    --rd-gold: #F7C752;           /* Celestial Sun / Continuous Needle */
    --rd-calendar: #8DE3A6;       /* Routine Flow / Sadhana */
    --rd-calendar-bg: #24422D;
    --rd-mcp: #6366F1;            /* AI / MCP Server Intelligence */
    --rd-mcp-accent: #B8BEFF;
    --rd-mcp-bg: #2A2D5C;
    --rd-health: #FF8DA1;         /* Circadian Biology / Sleep / Health */
    --rd-health-bg: #4A202A;
    --rd-health-border: #8C384D;
    --rd-terracotta: #B33A2B;
    --rd-emerald: #22C55E;

    /* KSM × Tech Vrindavan & Radian Typography */
    --display: 'Eczar', Georgia, serif;
    --ui: 'Outfit', 'Yantramanav', 'Space Grotesk', system-ui, sans-serif;
    --devanagari: 'Noto Serif Devanagari', serif;
    --handwritten: 'Kalam', cursive;

    /* Fluid Mathematical Typography Scales (rem units) */
    --fs-hero: clamp(2.5rem, 1.84rem + 3.88vw, 4.5rem);
    --fs-h2: clamp(1.85rem, 1.5rem + 1.8vw, 3.25rem);
    --fs-h3: clamp(1.2rem, 1.1rem + 0.8vw, 1.85rem);
    --fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem);
    --fs-caption: clamp(0.75rem, 0.7rem + 0.18vw, 0.875rem);

    /* Apple HIG Signature Spring Timing Curve */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.radian-page {
    background-color: var(--rd-bg);
    color: var(--rd-text);
    font-family: var(--ui);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── TACTILE ANALOG MICRO-GRAIN NOISE OVERLAY (Vrindavan System) ─── */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ─── REMOVED CIRCULAR BACKGROUND WEBGL CANVAS (UNIFIED APP SUBSTRATE) ─── */
#webgl-canvas {
    display: none !important;
}

/* ─── CUSTOM INTERACTIVE MAGNETIC CURSOR ─── */
.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--rd-amber);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(234, 160, 54, 0.6);
}

.custom-cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(234, 160, 54, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, border-color 0.2s var(--ease-spring);
}

/* Mobile GPU optimization: eliminate SVG filter and cursor overhead on touch screens */
@media (max-width: 800px), (hover: none), (pointer: coarse) {
    .grain-overlay,
    .custom-cursor-dot,
    .custom-cursor-ring {
        display: none !important;
    }
}

/* ─── CLIP-PATH GEOMETRIC REVEAL & BLUR ATTENUATION ─── */
.clip-wipe {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: blur(0px);
    transition: clip-path 0.8s var(--ease-spring), filter 0.8s var(--ease-spring);
}

/* ─── HERO SECTION ─── */
.rd-hero {
    position: relative;
    z-index: 1;
    padding: clamp(6rem, 10vw, 10rem) 1.5rem 4rem;
    text-align: center;
}

.rd-deva {
    font-family: var(--devanagari, 'Noto Serif Devanagari', serif);
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--rd-text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: none;
}

.rd-product-title {
    font-family: 'Eczar', Georgia, serif;
    font-size: clamp(3.8rem, 8.5vw, 7.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--rd-text);
    margin-bottom: 20px;
    text-shadow: 0 6px 36px rgba(0, 0, 0, 0.7);
}

.rd-product-title em {
    font-style: italic;
    font-weight: 600;
    color: var(--rd-amber);
    text-shadow: none;
}

.rd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(234, 160, 54, 0.1);
    border: 1px solid rgba(234, 160, 54, 0.25);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-amber);
    margin-bottom: 24px;
}

.rd-eyebrow .dot {
    width: 7px;
    height: 7px;
    background: var(--rd-amber);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(234, 160, 54, 0.6);
}

.rd-hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: var(--rd-text);
}

.rd-hero-title {
    font-family: 'Eczar', Georgia, serif;
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: var(--rd-text);
}

.rd-hero-refusal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rd-text-muted);
    margin: 0 auto 34px;
    max-width: 820px;
}

.rd-hero-refusal span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.rd-hero-refusal span:not(:last-child)::after {
    content: "·";
    color: var(--rd-border);
    font-weight: 800;
}

.rd-hero-refusal .emph {
    color: var(--rd-amber);
    font-weight: 700;
}

.rd-gradient-text {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #EDE7DF 30%, var(--rd-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rd-hero-lead {
    font-size: var(--fs-body);
    color: var(--rd-text-muted);
    max-width: 740px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.rd-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.rd-btn {
    font-family: var(--ui);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease-spring), background 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring);
}

.rd-btn:active {
    transform: scale(0.97);
}

/* Primary Lamp: Download APK in Amber on Espresso (Single Hero Lamp) */
.rd-btn-primary,
.rd-btn-apk {
    background: var(--rd-amber);
    color: #1E1A16 !important;
    border: 1px solid var(--rd-amber);
    box-shadow: 0 4px 20px rgba(234, 160, 54, 0.35);
}

.rd-btn-primary:hover,
.rd-btn-apk:hover {
    background: #FFB854;
    border-color: #FFB854;
    color: #1E1A16 !important;
    box-shadow: 0 6px 28px rgba(234, 160, 54, 0.5);
    transform: translateY(-2px);
}

/* Secondary Button: Ghost Border */
.rd-btn-outline {
    background: transparent;
    border: 1px solid var(--rd-border);
    color: var(--rd-text);
}

.rd-btn-outline:hover {
    background: var(--rd-surface);
    border-color: var(--rd-amber);
    color: var(--rd-amber);
    transform: translateY(-2px);
}

/* ─── LAPTOP-TO-PHONE QR CODE CARD ─── */
.rd-laptop-qr-card {
    background: rgba(30, 26, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--rd-border);
    border-radius: 20px;
    padding: 24px;
    max-width: 440px;
    margin: 0 auto 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rd-laptop-qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 160, 54, 0.6), transparent);
}

.rd-qr-card-header {
    margin-bottom: 16px;
}

.rd-qr-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    background: rgba(234, 160, 54, 0.12);
    border: 1px solid rgba(234, 160, 54, 0.28);
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-amber);
    margin-bottom: 10px;
}

.rd-qr-pill-dot {
    width: 6px;
    height: 6px;
    background: var(--rd-amber);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(234, 160, 54, 0.7);
}

.rd-qr-card-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--rd-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.rd-qr-card-subtitle {
    font-size: 12px;
    line-height: 1.45;
    color: var(--rd-text-muted);
    margin: 0;
}

.rd-qr-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rd-qr-tabs {
    display: flex;
    gap: 6px;
    background: rgba(18, 15, 12, 0.8);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--rd-border);
    margin-bottom: 18px;
    width: 100%;
}

.rd-qr-tab {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rd-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rd-qr-tab.is-active {
    background: var(--rd-surface);
    border-color: rgba(234, 160, 54, 0.4);
    color: var(--rd-amber);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rd-qr-tab:hover:not(.is-active) {
    color: var(--rd-text);
    background: rgba(255, 255, 255, 0.03);
}

/* Scannable Frame with Reticle Viewfinder Corners */
.rd-qr-frame {
    position: relative;
    padding: 12px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 14px;
}

.rd-qr-reticle-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--rd-amber);
    border-style: solid;
    pointer-events: none;
}

.rd-qr-tl {
    top: -5px;
    left: -5px;
    border-width: 2.5px 0 0 2.5px;
    border-top-left-radius: 6px;
}

.rd-qr-tr {
    top: -5px;
    right: -5px;
    border-width: 2.5px 2.5px 0 0;
    border-top-right-radius: 6px;
}

.rd-qr-bl {
    bottom: -5px;
    left: -5px;
    border-width: 0 0 2.5px 2.5px;
    border-bottom-left-radius: 6px;
}

.rd-qr-br {
    bottom: -5px;
    right: -5px;
    border-width: 0 2.5px 2.5px 0;
    border-bottom-right-radius: 6px;
}

.rd-hero-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 156px;
}

.rd-hero-qrcode img,
.rd-hero-qrcode canvas {
    display: block;
    margin: 0 auto;
}

.rd-qr-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--rd-amber);
    line-height: 1.4;
}

.rd-qr-camera-icon {
    font-size: 14px;
}

/* Mobile Screen Behavior: on phones, direct button taps take precedence */
@media (max-width: 767px) {
    .rd-laptop-qr-card {
        display: none;
    }
}

/* ─── LIVE 360° DIAL SHOWCASE BOX & RESPONSIVE GRID ─── */
.rd-dial-showcase-box {
    border: none;
    background: transparent;
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.rd-dial-stage-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3.5vw, 3rem);
    align-items: center;
}

@media (max-width: 900px) {
    .rd-dial-stage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.rd-dial-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rd-dial-top-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.rd-dial-controls-below {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 14px;
    width: 100%;
}

.rd-preset-pills {
    display: inline-flex;
    gap: 6px;
    background: var(--rd-surface);
    padding: 5px;
    border-radius: 100px;
    border: 1px solid var(--rd-border);
    flex-wrap: wrap;
    justify-content: center;
}

.rd-preset-btn {
    background: transparent;
    color: var(--rd-text-muted);
    border: none;
    border-radius: 100px;
    padding: 8px 22px;
    min-height: 42px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--ui);
    transition: background 0.25s var(--ease-spring), color 0.25s var(--ease-spring), transform 0.2s ease, box-shadow 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rd-preset-btn:hover {
    color: var(--rd-text);
    background: var(--rd-surface-raised);
}

.rd-preset-btn.is-active {
    background: var(--rd-amber);
    color: #1E1A16;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(234, 160, 54, 0.35);
}

/* Flutter Web App Embed Box (Seamless Native Canvas on Dark Espresso #1E1A16) */
.rd-flutter-app-box {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--rd-bg);
    border: none;
    box-shadow: none;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.rd-flutter-app-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: var(--rd-bg);
}

.rd-hud-subtasks-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rd-hud-subtask-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--rd-surface-deep);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

.rd-fullscreen-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rd-amber);
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.rd-fullscreen-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.rd-dial-right-col {
    text-align: left;
}

@media (max-width: 900px) {
    .rd-dial-right-col {
        text-align: center;
    }
}

.rd-hud-overline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-amber);
    margin-bottom: 8px;
}

.rd-hud-title {
    font-family: 'Eczar', Georgia, serif;
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 14px;
    color: var(--rd-text);
}

.rd-hud-desc {
    color: var(--rd-text-muted);
    font-size: var(--fs-body);
    line-height: 1.65;
    margin-bottom: 24px;
}

.rd-hud-active-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-left: 4px solid var(--rd-amber);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    transition: border-left-color 0.3s var(--ease-spring);
}

.rd-hud-time {
    font-family: 'Space Grotesk', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--rd-gold);
    margin-bottom: 4px;
}

.rd-hud-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--rd-text);
    margin-bottom: 4px;
}

.rd-hud-sub {
    font-size: 13px;
    color: var(--rd-text-muted);
}

.rd-sector-selectors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .rd-sector-selectors {
        justify-content: center;
    }
}

.rd-sector-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: 44px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--rd-text) !important;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    font-family: var(--ui);
    transition: transform 0.25s var(--ease-spring), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.rd-sector-btn:hover {
    color: #FFFFFF !important;
    background: var(--rd-surface-raised) !important;
    border-color: var(--rd-amber) !important;
    transform: translateY(-1px);
}

.rd-sector-btn.is-active,
.rd-sector-btn[aria-selected="true"] {
    color: var(--rd-amber) !important;
    background: var(--rd-surface-raised) !important;
    border-color: var(--rd-amber) !important;
    box-shadow: 0 0 14px rgba(234, 160, 54, 0.25);
}

.btn-nap { background: #241F1A; border-color: var(--rd-border); color: #B8BEFF !important; }
.btn-deep { background: #28221D; border-color: var(--rd-amber); color: #F7C752 !important; }
.btn-bed { background: #241F1A; border-color: var(--rd-border); color: var(--rd-text-muted) !important; }

.rd-mcp-connect-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.rd-mcp-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--rd-mcp-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pulse-beacon {
    width: 7px;
    height: 7px;
    background: var(--rd-mcp-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(184, 190, 255, 0.6);
}

.rd-mcp-url-display {
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
    color: var(--rd-text);
    word-break: break-all;
    user-select: all;
    background: var(--rd-surface-deep);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--rd-border);
}

.rd-hud-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .rd-hud-actions {
        justify-content: center;
    }
}

/* ─── KALAM HANDWRITTEN ANNOTATION SYSTEM (KSM × TECH) ─── */
.kalam-note {
    font-family: var(--handwritten);
    font-size: 16.5px;
    line-height: 1.35;
    color: #FCD34D;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    position: relative;
    user-select: none;
}

.kalam-note.cyan { color: var(--rd-mcp-accent); }
.kalam-note.rose { color: var(--rd-health); }
.kalam-note.pistachio { color: var(--rd-calendar); }
.kalam-note.lavender { color: var(--rd-mcp-accent); }

.kalam-tilt-left { transform: rotate(-2.5deg); }
.kalam-tilt-right { transform: rotate(2deg); }

.kalam-badge {
    font-family: var(--handwritten);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    border: 1.5px dashed rgba(252, 211, 77, 0.45);
    background: rgba(252, 211, 77, 0.08);
    color: #FCD34D;
    font-size: 14.5px;
    font-weight: 700;
}

.kalam-floating-hero-note {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    font-family: var(--handwritten);
    font-size: 15px;
    color: #FCD34D;
    background: rgba(7, 9, 14, 0.85);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px dashed rgba(252, 211, 77, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
    .kalam-floating-hero-note {
        position: static;
        margin: 8px 0;
        display: inline-flex;
    }
}

/* ─── AUTHENTIC FLUTTER APP COMPONENTS & NUMERALS ─── */

/* ─── /01 MARGADARSHAK EDITORIAL FEATURE GROUPS ─── */
.rd-feature-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 3rem 0;
}

.rd-fg {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: 32px 28px;
    position: relative;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.rd-fg:hover {
    transform: translateY(-3px);
    border-color: rgba(234, 160, 54, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Modeled after BYF's .bf-step-num */
.rd-fg-num {
    font-family: var(--ui);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    font-style: normal;
    margin-bottom: 14px;
    opacity: 0.85;
    letter-spacing: -0.02em;
}

.rd-fg:nth-child(1) .rd-fg-num { color: var(--rd-calendar); }
.rd-fg:nth-child(2) .rd-fg-num { color: var(--rd-mcp-accent); }
.rd-fg:nth-child(3) .rd-fg-num { color: var(--rd-health); }

/* Modeled after BYF's .bf-feeling-tag */
.rd-fg-badge {
    font-family: var(--ui);
    font-size: 10px;
    letter-spacing: 0.14em;
    font-weight: 700;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.rd-fg:nth-child(1) .rd-fg-badge { color: var(--rd-calendar); border-color: rgba(141, 227, 166, 0.3); background: rgba(36, 66, 45, 0.35); }
.rd-fg:nth-child(2) .rd-fg-badge { color: var(--rd-mcp-accent); border-color: rgba(184, 190, 255, 0.3); background: rgba(42, 45, 92, 0.35); }
.rd-fg:nth-child(3) .rd-fg-badge { color: var(--rd-health); border-color: rgba(255, 141, 161, 0.3); background: rgba(74, 32, 42, 0.35); }

.rd-fg-title {
    font-family: var(--ui);
    font-size: 20px;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.rd-fg-tagline {
    font-size: 14px;
    color: var(--rd-text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.rd-fg-list {
    list-style: none;
    border-top: 1px solid var(--rd-border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-fg-list li {
    font-size: 13px;
    color: var(--rd-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-fg-list li::before {
    content: "•";
    color: var(--rd-amber);
    font-size: 16px;
    font-weight: 800;
}

/* ─── /02 ASYMMETRIC ROUTINE CARDS (EventCard.dart) ─── */
.rd-app-cards-grid,
.rd-app-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 2.5rem 0;
}

.rd-app-card {
    background: var(--rd-surface);
    border: 1px solid var(--card-color-border, var(--rd-border));
    border-radius: 28px 14px 28px 14px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.rd-app-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-color, var(--rd-amber));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

/* Modeled after BYF's .bf-how-num */
.rd-card-num {
    font-family: var(--ui);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    font-style: normal;
    opacity: 0.75;
    margin-bottom: 12px;
    display: block;
}

.rd-card-main-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.rd-card-pillar {
    width: 4px;
    min-width: 4px;
    height: 48px;
    border-radius: 4px;
}

.rd-card-squircle-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    flex-shrink: 0;
}

.rd-card-squircle-icon svg {
    width: 20px;
    height: 20px;
}

.rd-card-meta {
    flex: 1;
    min-width: 0;
}

.rd-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.rd-card-title {
    font-family: var(--ui);
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-text);
    line-height: 1.25;
}

.rd-card-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: rgba(234, 160, 54, 0.15);
    color: var(--rd-amber);
    border: 1px solid rgba(234, 160, 54, 0.35);
}

.rd-card-active-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rd-amber);
    box-shadow: 0 0 6px rgba(234, 160, 54, 0.6);
}

.rd-card-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--rd-text-muted);
}

.rd-card-time-bold {
    font-weight: 700;
    color: var(--rd-text);
}

.rd-pebble-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.rd-pebble-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ui);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 100px;
    background: var(--rd-surface-deep);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.rd-pebble-chip:hover {
    background: var(--rd-surface-raised);
    border-color: rgba(255, 255, 255, 0.2);
}

.rd-pebble-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.rd-card-kalam-callout {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--rd-border);
}

/* ─── /03 CONCENTRIC POLAR SOLVER (ConcentricSolver.dart) ─── */
.rd-concentric-container {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 24px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 2.5rem 0;
}

.rd-concentric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rd-border);
}

.rd-concentric-title {
    font-family: var(--ui);
    font-size: 18px;
    font-weight: 700;
    color: var(--rd-text);
}

.rd-concentric-track-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    padding: 20px;
}

.rd-concentric-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-track-label {
    font-family: var(--ui);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rd-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-track-num {
    font-family: var(--ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.04);
}

.rd-track-timeline {
    height: 40px;
    background: var(--rd-surface);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rd-border);
}

.rd-track-block {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── /04 MODEL CONTEXT PROTOCOL (McpStatusSheet.dart) ─── */
.rd-mcp-sheet-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 24px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 2.5rem 0;
    position: relative;
}

.rd-mcp-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 20px;
}

.rd-mcp-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rd-border);
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.rd-mcp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--rd-calendar);
    background: rgba(141, 227, 166, 0.12);
    border: 1px solid rgba(141, 227, 166, 0.3);
    padding: 5px 12px;
    border-radius: 100px;
}

.rd-mcp-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.rd-mcp-user-bubble {
    background: var(--rd-surface-raised);
    border: 1px solid var(--rd-border);
    border-radius: 16px 16px 4px 16px;
    padding: 16px 20px;
    font-size: 14.5px;
    color: var(--rd-text);
    line-height: 1.55;
    max-width: 680px;
    align-self: flex-end;
}

.rd-mcp-agent-bubble {
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-left: 3px solid var(--rd-mcp-accent);
    border-radius: 4px 16px 16px 16px;
    padding: 18px 22px;
    font-size: 14px;
    color: var(--rd-text);
    line-height: 1.6;
    max-width: 720px;
    align-self: flex-start;
}

.rd-mcp-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--rd-text-muted);
}

.rd-step-num {
    font-family: var(--ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--rd-amber);
    background: rgba(234, 160, 54, 0.12);
    border: 1px solid rgba(234, 160, 54, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.rd-mcp-step-check {
    color: var(--rd-calendar);
    font-weight: 800;
}

/* ─── /05 CIRCADIAN BIOLOGY (HealthInsightsSheet.dart) ─── */
.rd-circadian-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 24px;
    padding: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 2.5rem 0;
}

.rd-circadian-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .rd-circadian-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 580px) {
    .rd-circadian-strip {
        grid-template-columns: 1fr;
    }
}

.rd-circadian-phase {
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-top: 3px solid var(--phase-color, var(--rd-amber));
    border-radius: 14px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rd-circadian-phase:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modeled after BYF's .bf-how-num */
.rd-phase-num {
    font-family: var(--ui);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    font-style: normal;
    color: var(--phase-color, var(--rd-amber));
    opacity: 0.85;
    margin-bottom: 8px;
    display: block;
}

.rd-phase-time {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--rd-text-muted);
    margin-bottom: 4px;
}

.rd-phase-title {
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 6px;
}

.rd-phase-desc {
    font-size: 11.5px;
    color: var(--rd-text-muted);
    line-height: 1.45;
}

/* ─── INTERACTIVE BEFORE/AFTER COMPARISON SURFACE ─── */
.split-slider-wrapper.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 3rem 0;
}

@media (max-width: 800px) {
    .split-slider-wrapper.before-after {
        grid-template-columns: 1fr;
    }
}

.split-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
}

.card-before { border-top: 3px solid var(--rd-terracotta); }
.card-after { border-top: 3px solid var(--rd-amber); }

.split-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.badge-before { background: rgba(179, 58, 43, 0.15); color: #FF8DA1; }
.badge-after { background: rgba(234, 160, 54, 0.15); color: var(--rd-amber); }

.split-title {
    font-family: 'Eczar', Georgia, serif;
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: var(--rd-text);
}

.split-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--rd-text-muted);
}

.split-list li span {
    font-weight: 800;
}

.card-before .split-list li span { color: var(--rd-terracotta); }
.card-after .split-list li span { color: var(--rd-amber); }

.rd-editorial-media-box {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--rd-border);
    margin: 2rem 0;
}

.rd-media-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.rd-editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── KSM × TECH EDITORIAL SECTION REGISTERS (Modeled after BYF .bf-section-num) ─── */
.rd-section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    position: relative;
    z-index: 1;
}

.rd-section-header {
    text-align: left;
    max-width: 860px;
    margin: 0 0 clamp(2.5rem, 5vw, 4rem) 0;
}

.rd-section-num {
    font-family: var(--ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--rd-amber);
    display: block;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.rd-section-h2 {
    font-family: var(--display, 'Eczar', Georgia, serif);
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 18px;
}

.rd-section-h2 em {
    font-style: italic;
    font-weight: 600;
    color: var(--rd-gold);
}

.rd-section-lead {
    font-family: var(--ui);
    font-size: var(--fs-body);
    color: var(--rd-text-muted);
    line-height: 1.65;
    max-width: 760px;
    margin: 0;
}

.rd-manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.glow-card {
    background: var(--rd-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: 2.25rem;
    transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.glow-card:hover {
    transform: translateY(-3px);
    border-color: rgba(234, 160, 54, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.rd-manifesto-icon-svg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.glow-card h3 {
    font-family: 'Eczar', Georgia, serif;
    font-size: var(--fs-h3);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    color: var(--rd-text);
}

.glow-card p {
    font-size: 14.5px;
    color: var(--rd-text-muted);
    line-height: 1.6;
}

/* ─── MCP CONNECT SECTION ─── */
.rd-mcp-box {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: clamp(2rem, 4vw, 3rem);
    backdrop-filter: blur(24px);
    margin-bottom: 5rem;
}

.rd-mcp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rd-mcp-title {
    font-family: 'Eczar', Georgia, serif;
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--rd-text);
}

.rd-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 700;
}

.pulse-beacon-green {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
}

.rd-mcp-lead {
    color: var(--rd-text-muted);
    font-size: var(--fs-body);
    margin-bottom: 20px;
}

.rd-mcp-endpoint-bar {
    display: flex;
    align-items: center;
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    padding: 8px 8px 8px 18px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-mcp-endpoint-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 13.5px;
    color: var(--rd-text);
    flex: 1;
    word-break: break-all;
}

.rd-btn-copy {
    background: var(--rd-amber);
    color: var(--rd-bg);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    min-height: 44px;
    min-width: 44px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), filter 0.2s ease;
}

.rd-btn-copy:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.rd-runner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 8px;
}

.rd-code-snip {
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    padding: 14px;
    overflow-x: auto;
    font-family: 'Space Grotesk', monospace;
    font-size: 12.5px;
    color: var(--rd-mcp-accent);
}

/* ─── /07 TECHNICAL ARCHITECTURE & SPEC (TABLE & TOOLS) ─── */
.rd-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 20px;
    overflow: hidden;
    margin: 2.5rem 0;
}

.rd-spec-table th,
.rd-spec-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--rd-border-subtle);
}

.rd-spec-table th {
    font-family: var(--ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rd-amber);
    background: var(--rd-surface-raised);
    border-bottom: 1.5px solid var(--rd-border);
}

.rd-spec-key {
    font-family: var(--ui);
    font-weight: 700;
    font-size: 14px;
    color: var(--rd-text);
    white-space: nowrap;
}

.rd-spec-val {
    font-size: 13.5px;
    color: var(--rd-text-muted);
}

.rd-spec-num {
    font-family: var(--ui);
    font-size: 11px;
    font-weight: 700;
    color: var(--rd-amber);
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(234, 160, 54, 0.3);
    background: rgba(234, 160, 54, 0.1);
    display: inline-block;
}

/* ─── AGENT TOOLS GRID ─── */
.rd-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rd-tool-num {
    font-family: var(--ui);
    font-weight: 300;
    font-size: 24px;
    line-height: 1;
    font-style: normal;
    color: var(--rd-mcp-accent);
    margin-bottom: 12px;
    display: block;
    opacity: 0.85;
}

.rd-tool-name {
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 8px;
}

.rd-tool-desc {
    font-size: 13.5px;
    color: var(--rd-text-muted);
    line-height: 1.55;
}

/* ─── FLOATING FROSTED LIQUID-GLASS MOBILE CONVERSION DOCK ─── */
.rd-mobile-dock {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 460px;
    background: rgba(14, 19, 32, 0.88);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.6rem 0.8rem;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75);
}

@media (max-width: 768px) {
    .rd-mobile-dock {
        display: flex;
    }
}

.rd-mobile-dock-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.dock-beacon {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
}

.dock-text {
    display: flex;
    flex-direction: column;
}

.dock-title {
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
}

.dock-sub {
    font-size: 10px;
    color: var(--rd-text-muted);
}

.rd-mobile-dock-actions {
    display: flex;
    gap: 8px;
}

.dock-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
    border-radius: 100px;
    padding: 8px 14px;
    min-height: 44px;
    min-width: 44px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dock-wa-btn {
    background: var(--rd-amber);
    color: var(--rd-bg);
    text-decoration: none;
    border-radius: 100px;
    padding: 8px 16px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.nav-vip-link,
.nav a.nav-vip-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: rgba(234, 160, 54, 0.12) !important;
    color: var(--rd-amber) !important;
    border: 1px solid rgba(234, 160, 54, 0.35) !important;
    padding: 8px 20px !important;
    border-radius: 100px !important;
    font-family: var(--ui) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    min-height: 38px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: all 0.25s var(--ease-spring) !important;
}

.nav a.nav-vip-link::after {
    display: none !important;
}

.nav-vip-link:hover,
.nav a.nav-vip-link:hover {
    background: rgba(234, 160, 54, 0.22) !important;
    border-color: var(--rd-amber) !important;
    color: var(--rd-text) !important;
    box-shadow: 0 0 16px rgba(234, 160, 54, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* ─── WCAG 2.2 ACCESSIBILITY FOCUS-VISIBLE ─── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible {
    outline: 2px solid var(--rd-amber) !important;
    outline-offset: 3px !important;
}

/* ─── WCAG 2.2 PREFERS-REDUCED-MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── RADIAN SCROLLED HEADER BARRIER ─── */
.radian-page .header.scrolled {
    background: rgba(30, 26, 22, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--rd-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    padding: 16px 32px;
}

@media (max-width: 640px) {
    .radian-page .header.scrolled {
        padding: 14px 22px;
    }
}

/* ══════════════════════════════════════════════════════════════
   KALAM HANDWRITTEN MARGINALIA & FIELD NOTE SYSTEM
   Authentic personal handwriting layered over KSM × Tech editorial
   ══════════════════════════════════════════════════════════════ */
.kalam-note {
    font-family: var(--handwritten, 'Kalam', cursive);
    font-weight: 400;
    line-height: 1.35;
    position: relative;
    display: inline-block;
    color: var(--rd-gold);
    letter-spacing: 0.01em;
}

.kalam-note-cyan {
    color: var(--rd-mcp-accent);
}

.kalam-note-rose {
    color: var(--rd-health);
}

.kalam-note-green {
    color: var(--rd-calendar);
}

.kalam-note-gold {
    color: var(--rd-gold);
}

.kalam-tilt-left {
    transform: rotate(-2.5deg);
    display: inline-block;
}

.kalam-tilt-right {
    transform: rotate(2deg);
    display: inline-block;
}

.kalam-hero-note {
    position: absolute;
    font-size: clamp(13px, 1.2vw, 16px);
    z-index: 10;
    pointer-events: none;
    max-width: 200px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.kalam-hero-needle {
    top: 15%;
    left: -20px;
}

.kalam-hero-subtasks {
    top: 48%;
    bottom: auto;
    right: -20px;
}

.kalam-hero-bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: rotate(-0.5deg) !important;
    text-align: center;
    margin: 14px auto 0;
    white-space: nowrap;
    font-size: clamp(14px, 1.3vw, 17px);
    display: inline-block;
}

@media (max-width: 768px) {
    .kalam-hero-needle {
        top: 2%;
        left: 10px;
    }
    .kalam-hero-subtasks {
        top: 52%;
        bottom: auto;
        right: 10px;
    }
    .kalam-hero-bottom {
        bottom: auto !important;
        margin: 12px auto 0;
        white-space: normal;
    }
}

.kalam-arrow {
    display: inline-block;
    font-size: 1.2em;
    vertical-align: middle;
}

.kalam-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--handwritten, 'Kalam', cursive);
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(252, 211, 77, 0.1);
    border: 1px dashed rgba(252, 211, 77, 0.35);
    color: #FCD34D;
}

/* ══════════════════════════════════════════════════════════════
   AUTHENTIC FLUTTER APP COMPONENTS (SECTOGRAPH_MCP PORT)
   ══════════════════════════════════════════════════════════════ */

/* 1. M3 Expressive Asymmetric EventCard */
.rd-app-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.rd-app-card {
    position: relative;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px; /* Asymmetric M3 Expressive shape */
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: default;
}

.rd-app-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-color, rgba(234, 160, 54, 0.45));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.rd-card-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-card-pillar {
    width: 5px;
    height: 44px;
    border-radius: 4px;
    background: var(--card-color, var(--rd-amber));
    flex-shrink: 0;
}

.rd-card-squircle-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--card-color-alpha, rgba(234, 160, 54, 0.14));
    border: 1.2px solid var(--card-color-border, rgba(234, 160, 54, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color, var(--rd-amber));
    flex-shrink: 0;
}

.rd-card-meta {
    flex: 1;
    min-width: 0;
}

.rd-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.rd-card-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--rd-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rd-card-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #F87171;
    text-transform: uppercase;
}

.rd-card-active-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #EF4444;
    animation: pulse 1.8s infinite;
}

.rd-card-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--rd-text-muted);
}

.rd-card-time-bold {
    font-weight: 700;
    color: var(--rd-text);
}

.rd-pebble-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.rd-pebble-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px; /* River pebble smooth rounding */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rd-border);
    color: var(--rd-text);
}

.rd-pebble-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--card-color, var(--rd-gold));
}

.rd-card-kalam-callout {
    margin-top: 6px;
    font-family: var(--handwritten, 'Kalam', cursive);
    font-size: 13px;
    color: var(--card-color, var(--rd-gold));
    opacity: 0.95;
}

/* 2. Concentric Polar Track Solver Component */
.rd-concentric-container {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: 28px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.rd-concentric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.rd-concentric-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--rd-text);
    font-family: var(--display);
}

.rd-concentric-track-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rd-concentric-track {
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    padding: 16px;
    position: relative;
}

.rd-track-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rd-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-track-timeline {
    height: 44px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--rd-border-subtle);
}

.rd-track-block {
    position: absolute;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rd-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.rd-track-block:hover {
    transform: scale(1.02);
}

/* 3. Authentic McpStatusSheet Agent Component */
.rd-mcp-sheet-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: 24px;
    margin-top: 32px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    position: relative;
}

.rd-mcp-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 18px;
}

.rd-mcp-sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rd-border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.rd-mcp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 12px;
    border-radius: 100px;
}

.rd-mcp-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.rd-mcp-user-bubble {
    align-self: flex-end;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 18px 18px 4px 18px;
    padding: 12px 16px;
    max-width: 80%;
    color: var(--rd-text);
    font-size: 13.5px;
    line-height: 1.45;
}

.rd-mcp-agent-bubble {
    align-self: flex-start;
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 18px 4px;
    padding: 14px 18px;
    max-width: 85%;
    color: var(--rd-text);
    font-size: 13.5px;
    line-height: 1.5;
}

.rd-mcp-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--rd-text-muted);
    margin-top: 6px;
}

.rd-mcp-step-check {
    color: #10B981;
    font-weight: 800;
}

/* 4. HealthInsightsSheet 24-Hour Continuous Circadian Component */
.rd-circadian-card {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 28px 14px 28px 14px;
    padding: 24px;
    margin-top: 32px;
}

.rd-circadian-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .rd-circadian-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rd-circadian-phase {
    background: var(--rd-surface-deep);
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    padding: 14px;
    border-top: 3px solid var(--phase-color, var(--rd-amber));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rd-phase-time {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--rd-text-muted);
    letter-spacing: 0.04em;
}

.rd-phase-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--rd-text);
}

.rd-phase-desc {
    font-size: 11px;
    color: var(--rd-text-muted);
    line-height: 1.4;
}

/* ─── DOM CONTENT VISIBILITY CONTAINMENT (MOBILE 60FPS) ─── */
.rd-circadian-card,
.rd-mcp-section,
.rd-specs-section,
.rd-manifesto-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

