/**
 * MasterNoder home — compact hero, smart links, 4D starmap, news + agent void
 */
.fp-main {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 92px;
}

.fp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: 32px;
    min-height: min(72vh, 660px);
    padding: 48px 26px 42px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(0, 255, 136, 0.08), transparent 42%),
        radial-gradient(circle at 82% 28%, rgba(0, 212, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(7, 10, 22, 0.82), rgba(17, 12, 34, 0.74));
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.35);
}

.fp-hero::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.fp-hero::after {
    content: '';
    position: absolute;
    inset: -40% -10%;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.09) 50%, transparent 70%);
    transform: translateX(-60%) rotate(8deg);
    animation: fpScanBeam 8s ease-in-out infinite;
    pointer-events: none;
}

.fp-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.fp-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.fp-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 999px;
    color: #9dffd4;
    background: rgba(0, 255, 136, 0.08);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fp-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(3rem, 8vw, 6.8rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 0.92;
    text-transform: uppercase;
    background: linear-gradient(120deg, #00ff88, #00d4ff, #c4a7ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fpHeroShine 8s ease-in-out infinite;
}

@keyframes fpHeroShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fp-tagline {
    margin: 0 0 14px;
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-hero-text {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
    line-height: 1.65;
}

.fp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.fp-primary-action,
.fp-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fp-primary-action {
    color: #00160c;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    box-shadow: 0 0 34px rgba(0, 255, 136, 0.28);
}

.fp-secondary-action {
    color: #dff8ff;
    border: 1px solid rgba(0, 212, 255, 0.34);
    background: rgba(0, 212, 255, 0.08);
}

.fp-primary-action:hover,
.fp-secondary-action:hover {
    transform: translateY(-2px);
}

.fp-primary-action:focus-visible,
.fp-secondary-action:focus-visible,
.fp-sound-power:focus-visible,
.fp-sound-mode:focus-visible,
.theme-sound-toggle:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.85);
    outline-offset: 3px;
}

.fp-hero-core {
    position: relative;
    z-index: 1;
    min-height: 360px;
}

.fp-core-ring,
.fp-core-pulse,
.fp-core-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fp-core-ring {
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 136, 0.28);
    box-shadow: inset 0 0 42px rgba(0, 212, 255, 0.08), 0 0 36px rgba(0, 255, 136, 0.08);
}

.fp-core-ring-a {
    width: min(78vw, 340px);
    height: min(78vw, 340px);
    animation: fpCoreSpin 22s linear infinite;
}

.fp-core-ring-b {
    width: min(56vw, 250px);
    height: min(56vw, 250px);
    border-color: rgba(196, 167, 255, 0.3);
    animation: fpCoreSpin 14s linear infinite reverse;
}

.fp-core-pulse {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00160c;
    background: radial-gradient(circle, #d8fff1 0%, #00ff88 45%, #00a8cc 100%);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 0 46px rgba(0, 255, 136, 0.42);
    animation: fpCorePulse 2.6s ease-in-out infinite;
}

.fp-core-node {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #eafcff;
    background: rgba(8, 12, 22, 0.86);
    border: 1px solid rgba(0, 212, 255, 0.38);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.18);
}

.fp-core-node-a {
    transform: translate(calc(-50% + 82px), calc(-50% - 166px));
}

.fp-core-node-b {
    transform: translate(calc(-50% + 116px), calc(-50% + 96px));
}

.fp-core-node-c {
    transform: translate(calc(-50% - 184px), calc(-50% + 44px));
}

@keyframes fpScanBeam {
    0%, 40%, 100% { transform: translateX(-65%) rotate(8deg); opacity: 0; }
    55% { opacity: 1; }
    72% { transform: translateX(60%) rotate(8deg); opacity: 0; }
}

@keyframes fpCoreSpin {
    to { rotate: 360deg; }
}

@keyframes fpCorePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.fp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.fp-stat {
    background: linear-gradient(145deg, rgba(22, 22, 34, 0.92), rgba(12, 14, 24, 0.94));
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.fp-stat:hover {
    border-color: rgba(0, 255, 136, 0.45);
    transform: translateY(-2px);
}

.fp-stat .v {
    font-size: 1.55rem;
    font-weight: 800;
    color: #00ff88;
    line-height: 1.1;
}

.fp-stat .l {
    margin-top: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.fp-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00d4ff;
    margin: 0 0 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fp-v20-upgrade,
.fp-sound-console {
    margin-bottom: 32px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background:
        radial-gradient(circle at 18% 10%, rgba(0, 255, 136, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(13, 17, 32, 0.94), rgba(12, 10, 26, 0.94));
}

.fp-v20-upgrade h2,
.fp-sound-console h2 {
    margin: 0;
    color: #f2fbff;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    letter-spacing: 0.02em;
}

.fp-upgrade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.fp-upgrade-grid article {
    min-height: 126px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-upgrade-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #00ff88;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-upgrade-grid span,
.fp-sound-copy p,
.fp-sound-status {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fp-sound-console {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    align-items: center;
    gap: 22px;
    border-color: rgba(0, 255, 136, 0.24);
}

.fp-sound-copy p {
    margin: 12px 0 0;
    max-width: 440px;
}

.fp-sound-board {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-sound-power {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid rgba(0, 255, 136, 0.38);
    border-radius: 14px;
    color: #00160c;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.fp-sound-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #122318;
    box-shadow: 0 0 0 rgba(0, 255, 136, 0);
}

body.mn-sound-active .fp-sound-led {
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
}

.fp-sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 78px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.fp-sound-wave span {
    display: block;
    width: 8px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    opacity: 0.42;
    transform-origin: center;
}

body.mn-sound-active .fp-sound-wave span {
    animation: fpWave 0.9s ease-in-out infinite;
    opacity: 0.95;
}

body.mn-sound-active .fp-sound-wave span:nth-child(2) { animation-delay: 0.1s; }
body.mn-sound-active .fp-sound-wave span:nth-child(3) { animation-delay: 0.18s; }
body.mn-sound-active .fp-sound-wave span:nth-child(4) { animation-delay: 0.28s; }
body.mn-sound-active .fp-sound-wave span:nth-child(5) { animation-delay: 0.36s; }

@keyframes fpWave {
    0%, 100% { transform: scaleY(0.65); }
    50% { transform: scaleY(2.2); }
}

.fp-sound-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.fp-sound-mode {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.fp-sound-mode:hover,
.fp-sound-mode.is-active {
    color: #00160c;
    border-color: rgba(0, 255, 136, 0.68);
    background: #00ff88;
}

.fp-sound-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-sound-volume input {
    flex: 1;
    min-width: 0;
    accent-color: #00ff88;
}

.fp-sound-status {
    margin: 0;
}

.fp-smartlinks {
    margin-bottom: 32px;
}

.fp-smart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.fp-smart-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(18, 22, 36, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-smart-card:hover {
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.fp-smart-card .icon {
    font-size: 1.35rem;
}

.fp-smart-card .label {
    font-weight: 700;
    font-size: 0.98rem;
}

.fp-smart-card .why {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.35;
}

.fp-starmap {
    margin-bottom: 36px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(14, 12, 28, 0.95), rgba(8, 10, 22, 0.92));
    border: 1px solid rgba(196, 167, 255, 0.25);
}

.fp-starmap-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 14px;
}

.fp-starmap-head h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #c4a7ff;
    letter-spacing: 0.04em;
}

.fp-starmap-head p {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    min-width: 0;
}

.fp-starmap-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.fp-starmap-controls label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.fp-starmap-controls input[type="range"] {
    width: 160px;
    accent-color: #c4a7ff;
}

.fp-starmap-open {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.35);
    color: #00ff88;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.fp-starmap-open:hover {
    background: rgba(0, 255, 136, 0.22);
}

#fp-starmap4d {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, rgba(30, 20, 60, 0.5) 0%, rgba(4, 6, 14, 0.95) 70%);
    min-height: 280px;
}

.fp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 820px) {
    .fp-split {
        grid-template-columns: 1fr;
    }
}

.fp-panel {
    padding: 20px;
    border-radius: 16px;
    background: rgba(16, 18, 30, 0.94);
    border: 1px solid rgba(0, 255, 136, 0.18);
}

.fp-panel h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #00ff88;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fp-muted {
    margin: 0 0 14px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.58);
}

.fp-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fp-news-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
}

.fp-news-list li:last-child {
    border-bottom: none;
}

.fp-news-list a {
    color: #e8f0ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.fp-news-list a:hover {
    color: #00d4ff;
}

.fp-news-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fp-news-list li.fp-news-platform a {
    color: #00ff88;
}

.fp-news-summary {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
}

.fp-news-divider {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    padding-top: 14px !important;
    border-bottom: none !important;
}

.fp-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.fp-agent-card {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(196, 167, 255, 0.22);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.fp-agent-card:hover {
    border-color: rgba(196, 167, 255, 0.55);
    transform: translateY(-2px);
}

.fp-agent-card span {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.frontpage-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(165deg, rgba(4, 8, 18, 0.88), rgba(10, 14, 32, 0.75)),
        url("/static/images/frontpage-bg-theme.png"),
        radial-gradient(circle at 18% 40%, rgba(0, 255, 136, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 70%, rgba(0, 212, 255, 0.08) 0%, transparent 42%);
    background-size: cover, cover, auto, auto;
    background-position: center, center, center, center;
    pointer-events: none;
}

.theme-sound-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 0.82rem;
    background: rgba(8, 12, 22, 0.88);
    color: #e8f7ff;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.theme-sound-toggle:hover {
    border-color: rgba(0, 255, 136, 0.45);
    color: #9dffd4;
}

body.mn-sound-active .theme-sound-toggle {
    border-color: rgba(0, 255, 136, 0.62);
    color: #00160c;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 20000;
    background: #00ff88;
    color: #00140a;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus {
    left: 12px;
}

@media (max-width: 900px) {
    .fp-hero,
    .fp-sound-console {
        grid-template-columns: 1fr;
    }

    .fp-hero {
        min-height: auto;
        padding: 36px 18px 30px;
    }

    .fp-hero-core {
        min-height: 300px;
    }

    .fp-upgrade-grid {
        grid-template-columns: 1fr;
    }
}

/* MN2 crypto band — landing + wallet CTA */
.fp-mn2-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.06)),
        rgba(8, 12, 24, 0.72);
}

.fp-mn2-band-copy h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #9dffd4;
}

.fp-mn2-band-copy p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
}

.fp-mn2-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fp-mn2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #041018;
    box-shadow: 0 8px 28px rgba(0, 255, 136, 0.22);
}

.fp-mn2-badge:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.fp-mn2-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
}

.fp-mn2-link:hover {
    background: rgba(0, 212, 255, 0.14);
}

.fp-mn2-balance-pill {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.fp-mn2-balance-pill strong {
    color: #00ff88;
    font-size: 1rem;
}

.fp-stat.fp-stat-mn2 {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
}

@media (max-width: 620px) {
    .fp-main {
        padding-inline: 12px;
    }

    .fp-mn2-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-hero-actions,
    .fp-sound-modes {
        grid-template-columns: 1fr;
    }

    .fp-primary-action,
    .fp-secondary-action {
        width: 100%;
    }

    .fp-sound-modes {
        display: grid;
    }

    .fp-core-node-a {
        transform: translate(calc(-50% + 58px), calc(-50% - 138px));
    }

    .fp-core-node-b {
        transform: translate(calc(-50% + 84px), calc(-50% + 84px));
    }

    .fp-core-node-c {
        transform: translate(calc(-50% - 140px), calc(-50% + 38px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-hero h1,
    .fp-hero::after,
    .fp-core-ring-a,
    .fp-core-ring-b,
    .fp-core-pulse,
    body.mn-sound-active .fp-sound-wave span {
        animation: none;
    }
}
