:root {
    --bg: #050510;
    --panel: rgba(13, 13, 26, 0.95);
    --panel-strong: #0d0d1a;
    --cyan: #5594a8;
    --cyan-soft: #7fc7d8;
    --blue: #112257;
    --violet: #9f8eff;
    --violet-deep: #6d5cf0;
    --gold: #f1c44e;
    --orange: #ff8a4c;
    --green: #51e3a2;
    --pink: #ff6fcf;
    --ink: #d7f3ff;
    --muted: #9fb0c7;
    --line: rgba(85, 148, 168, 0.28);
    --shadow: rgba(0, 0, 0, 0.65);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    overscroll-behavior-y: auto;
}

body.landing-page {
    margin: 0;
    min-height: 100dvh;
    width: 100%;
    display: block;
    overflow-x: hidden;
    overflow-y: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: monospace;
    touch-action: none;
    overscroll-behavior-y: contain;
    position: relative;
}

.landing-scroll {
    min-height: 100dvh;
    height: 100dvh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    position: relative;
    z-index: 1;
}

.landing-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.scanlines::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 20;
}

.landing-shell {
    position: relative;
    min-height: 100%;
    padding: 18px 14px 36px;
    overflow: visible;
    background:
        radial-gradient(circle at top, rgba(159, 142, 255, 0.24), transparent 28%),
        radial-gradient(circle at 18% 12%, rgba(85, 148, 168, 0.26), transparent 20%),
        radial-gradient(circle at 82% 10%, rgba(255, 138, 76, 0.18), transparent 18%),
        radial-gradient(circle at 64% 70%, rgba(81, 227, 162, 0.12), transparent 22%),
        linear-gradient(180deg, #050510 0%, #07101e 50%, #050510 100%);
}

.landing-wrap {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: env(safe-area-inset-bottom);
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 8s ease-in-out infinite;
}

.ambient-one {
    width: 140px;
    height: 140px;
    top: 6%;
    right: -30px;
    background: radial-gradient(circle, rgba(159, 142, 255, 0.35), transparent 68%);
}

.ambient-two {
    width: 220px;
    height: 220px;
    bottom: 18%;
    left: -80px;
    background: radial-gradient(circle, rgba(85, 148, 168, 0.28), transparent 70%);
    animation-delay: -2s;
}

.ambient-three {
    width: 160px;
    height: 160px;
    top: 42%;
    right: 10%;
    background: radial-gradient(circle, rgba(110, 92, 240, 0.18), transparent 70%);
    animation-delay: -4s;
}

.digi-window {
    background: var(--panel);
    border: 2px solid var(--cyan);
    isolation: isolate;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 14px 36px var(--shadow),
        6px 6px 0 var(--blue);
    position: relative;
}

.digi-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%),
        linear-gradient(90deg, rgba(85, 148, 168, 0.08), transparent 20%, rgba(159, 142, 255, 0.05));
    z-index: 0;
    pointer-events: none;
}

.digi-window > * {
    position: relative;
    z-index: 1;
}

.landing-topbar {
    display: grid;
    gap: 8px;
    padding: 8px;
    background:
        linear-gradient(90deg, rgba(255, 111, 207, 0.08), transparent 38%, rgba(81, 227, 162, 0.08)),
        #080816;
    border: 2px solid rgba(241, 196, 78, 0.75);
    border-color: rgba(241, 196, 78, 0.75);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 14px 36px var(--shadow),
        6px 6px 0 #5c4311;
}

.topbar-screen {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(85, 148, 168, 0.55);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px),
        linear-gradient(180deg, rgba(17, 34, 87, 0.72), rgba(0, 0, 0, 0.22));
}

.topbar-signal {
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 4px;
    align-items: end;
    min-height: 28px;
}

.topbar-signal span {
    display: block;
    width: 8px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(81, 227, 162, 0.55);
}

.topbar-signal span:nth-child(1) {
    height: 8px;
}

.topbar-signal span:nth-child(2) {
    height: 14px;
}

.topbar-signal span:nth-child(3) {
    height: 20px;
}

.topbar-signal span:nth-child(4) {
    height: 26px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(241, 196, 78, 0.55);
}

.topbar-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--cyan);
    background: linear-gradient(180deg, #112257, #081126);
    color: #fff;
    font-family: "Press Start 2P", cursive;
    font-size: 11px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.65), 0 0 18px rgba(241, 196, 78, 0.2);
}

.brand-kicker,
.hero-kicker,
.section-kicker {
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: var(--cyan-soft);
}

.brand-title {
    margin-top: 6px;
    font-family: "Press Start 2P", cursive;
    font-size: 10px;
    line-height: 1.6;
    color: #fff;
}

.topbar-chip {
    padding: 8px 10px;
    border: 1px solid rgba(85, 148, 168, 0.5);
    background: rgba(0, 0, 0, 0.28);
    color: #bfffe2;
    text-align: center;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
}

.topbar-action {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid rgba(241, 196, 78, 0.85);
    background: linear-gradient(180deg, #ffbf4d, #ff7a43);
    color: #1a1000;
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.hero-grid,
.nostalgia-layout {
    display: grid;
    gap: 14px;
}

.hero-copy,
.hero-visual,
.nostalgia-panel,
.hud-panel,
.final-cta {
    border-radius: 2px;
    padding: 16px;
}

.hero-copy {
    border-color: rgba(255, 111, 207, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 14px 36px var(--shadow),
        6px 6px 0 #5a1450;
}

.hero-visual {
    border-color: rgba(81, 227, 162, 0.65);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 14px 36px var(--shadow),
        6px 6px 0 #0f5337;
}

.hero-copy h1,
.section-head h2 {
    margin: 0;
    font-family: "Press Start 2P", cursive;
    line-height: 1.55;
    color: #fff;
}

.hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(1.35rem, 3.8vw, 2.35rem);
    color: #fff8d6;
    text-shadow: 0 0 14px rgba(241, 196, 78, 0.08);
}

.hero-lead,
.section-head p,
.nostalgia-copy,
.feature-card p,
.hud-list,
.final-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-lead {
    margin-top: 14px;
    font-size: 0.97rem;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.cta-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border: 2px solid var(--cyan);
    text-decoration: none;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cta-primary {
    background: linear-gradient(180deg, #ffbf4d, #ff6f3c);
    border-color: #ffd46d;
    color: #190f00;
}

.cta-secondary {
    border-color: rgba(159, 142, 255, 0.9);
    color: #efeaff;
    background: linear-gradient(180deg, #36235f, #1a1237);
}

.cta-button:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hero-pills,
.tag-row,
.mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pills {
    margin-top: 16px;
}

.partner-roster {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.partner-roster-title {
    margin-top: 16px;
    color: #ffe29a;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    line-height: 1.7;
}

.partner-chip {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-height: 0;
    padding: 5px;
    border: 1px solid rgba(241, 196, 78, 0.28);
    background:
        radial-gradient(circle at 50% 42%, rgba(241, 196, 78, 0.18), transparent 45%),
        rgba(0, 0, 0, 0.28);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.partner-chip img {
    width: 100%;
    height: 100%;
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 8px rgba(241, 196, 78, 0.24));
}

.partner-chip:nth-last-child(1) {
    position: relative;
}

.partner-chip:nth-last-child(1)::after {
    content: "+";
    position: absolute;
    right: 4px;
    bottom: 3px;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.72);
    color: var(--gold);
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
}

.hero-pills span,
.tag-row span,
.mini-chip,
.hero-log {
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
}

.hero-pills span,
.tag-row span,
.mini-chip {
    padding: 8px 9px;
    border: 1px solid rgba(85, 148, 168, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--cyan-soft);
}

.mini-chip-cyan {
    border-color: rgba(85, 148, 168, 0.55);
    color: #b6f0ff;
}

.mini-chip-gold {
    border-color: rgba(241, 196, 78, 0.55);
    color: #ffe29a;
}

.mini-chip-violet {
    border-color: rgba(159, 142, 255, 0.6);
    color: #ddd4ff;
}

.mini-chip-green {
    border-color: rgba(81, 227, 162, 0.6);
    color: #bfffe2;
}

.hero-log {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(85, 148, 168, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #a8f0e0;
    display: grid;
    gap: 8px;
    line-height: 1.7;
}

.hero-visual {
    display: grid;
    gap: 14px;
}

.hero-console {
    display: grid;
    gap: 12px;
}

.hero-console-main {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border: 2px solid rgba(85, 148, 168, 0.7);
    background: linear-gradient(180deg, rgba(17, 34, 87, 0.88), rgba(7, 10, 24, 0.94));
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45);
}

.hero-console-bg,
.hero-console-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-console-bg {
    object-fit: cover;
    filter: saturate(1.22) contrast(1.08) brightness(0.72);
    transform: scale(1.06);
}

.hero-console-overlay {
    background:
        radial-gradient(circle at 50% 30%, rgba(241, 196, 78, 0.18), transparent 18%),
        radial-gradient(circle at 15% 20%, rgba(159, 142, 255, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56));
    mix-blend-mode: screen;
}

.hero-console-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.65);
    color: #ffeaa3;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    letter-spacing: 1px;
}

.hero-partner-sprite {
    position: absolute;
    right: 8px;
    bottom: 44px;
    z-index: 2;
    width: min(48%, 210px);
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 16px rgba(159, 142, 255, 0.45));
}

.hero-console-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px 12px 16px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
    color: #fff;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    line-height: 1.8;
}

.hero-console-sub {
    color: #ffd46d;
}

.hero-system-grid {
    display: grid;
    gap: 8px;
}

.hero-system {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 11px;
    border: 1px solid rgba(85, 148, 168, 0.4);
    background: rgba(0, 0, 0, 0.28);
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    color: #b6f0ff;
}

.hero-system strong {
    color: #fff;
    font-size: 8px;
    line-height: 1.5;
}

.hero-system-violet {
    color: #ddd4ff;
}

.hero-system-orange {
    color: #ffe0ba;
}

.window-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    letter-spacing: 1px;
    color: #0d0d1a;
    background: linear-gradient(180deg, #7fc7d8, #5594a8);
    padding: 9px 10px;
}

.window-led {
    width: 10px;
    height: 10px;
    background: #0d0d1a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.window-led-alt {
    background: #d7b84b;
}

.window-led-purple {
    background: #9f8eff;
}

.device-frame {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding-top: 2px;
}

.device-screen {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 2px solid rgba(85, 148, 168, 0.7);
    background:
        radial-gradient(circle at 50% 35%, rgba(85, 148, 168, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(17, 34, 87, 0.88), rgba(7, 10, 24, 0.94));
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45);
}

.screen-static {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%),
        repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.02) 7px 8px);
    opacity: 0.75;
}

.screen-label,
.screen-caption {
    position: relative;
    z-index: 1;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    letter-spacing: 1px;
    text-align: center;
}

.screen-label {
    color: var(--cyan-soft);
    padding-top: 16px;
}

.screen-caption {
    color: #fff;
    margin-top: 10px;
}

.companion-orb {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 150px;
    margin-top: 10px;
}

.orb-core,
.orb-ring,
.orb-pulse {
    position: absolute;
    border-radius: 50%;
}

.orb-core {
    width: 84px;
    height: 84px;
    background:
        radial-gradient(circle at 35% 30%, #fff, #bdf3ff 22%, #5594a8 44%, #112257 72%);
    border: 3px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 0 0 4px rgba(85, 148, 168, 0.15),
        0 0 24px rgba(85, 148, 168, 0.55);
}

.orb-ring {
    border: 1px dashed rgba(159, 142, 255, 0.55);
}

.orb-ring-a {
    width: 126px;
    height: 126px;
    animation: spin 18s linear infinite;
}

.orb-ring-b {
    width: 154px;
    height: 154px;
    animation: spinReverse 24s linear infinite;
}

.orb-pulse {
    width: 24px;
    height: 24px;
    background: rgba(159, 142, 255, 0.55);
    filter: blur(1px);
    animation: pulse 2s ease-in-out infinite;
}

.device-stats {
    display: grid;
    gap: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    font-family: "Press Start 2P", cursive;
    font-size: 8px;
    color: var(--cyan-soft);
}

.stat-bar {
    position: relative;
    height: 12px;
    padding: 2px;
    border: 1px solid rgba(85, 148, 168, 0.45);
    background: rgba(0, 0, 0, 0.35);
}

.stat-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #5594a8, #9f8eff);
    box-shadow: 0 0 10px rgba(159, 142, 255, 0.35);
}

.mini-grid {
    justify-content: space-between;
}

.section-block {
    display: grid;
    gap: 14px;
}

.section-head {
    padding: 4px 2px 0;
}

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(1.05rem, 3.2vw, 1.75rem);
}

.section-head p {
    margin-top: 10px;
    max-width: 62ch;
}

.feature-grid {
    display: grid;
    gap: 12px;
}

.feature-card {
    padding: 14px;
}

.feature-card {
    display: grid;
    gap: 10px;
}

.feature-card:nth-child(1) .feature-icon {
    color: var(--gold);
    border-color: rgba(241, 196, 78, 0.55);
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--violet);
    border-color: rgba(159, 142, 255, 0.55);
}

.feature-card:nth-child(3) .feature-icon {
    color: var(--green);
    border-color: rgba(81, 227, 162, 0.55);
}

.feature-card:nth-child(4) .feature-icon {
    color: var(--orange);
    border-color: rgba(255, 138, 76, 0.55);
}

.feature-card:nth-child(5) .feature-icon {
    color: var(--pink);
    border-color: rgba(255, 111, 207, 0.55);
}

.feature-card:nth-child(6) .feature-icon {
    color: #8ff1ff;
    border-color: rgba(143, 241, 255, 0.55);
}

.feature-card h3 {
    margin: 0;
    font-family: "Press Start 2P", cursive;
    font-size: 10px;
    line-height: 1.6;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(85, 148, 168, 0.6);
    background: rgba(0, 0, 0, 0.28);
    color: var(--cyan-soft);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.feature-icon i {
    font-size: 18px;
}

.nostalgia-copy {
    margin-top: 10px;
}

.tag-row {
    margin-top: 14px;
}

.hud-list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.hud-list li {
    line-height: 1.65;
}

.final-cta {
    display: grid;
    gap: 16px;
}

.section-head.compact {
    padding: 0;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.9;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@media (min-width: 640px) {
    .landing-shell {
        padding: 22px 18px 44px;
    }

    .landing-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }

    .topbar-status {
        grid-template-columns: repeat(3, max-content);
        align-content: stretch;
        align-items: stretch;
    }

    .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 220px));
        justify-content: start;
    }

    .partner-roster {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 960px) {
    .landing-wrap {
        gap: 18px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: stretch;
    }

    .hero-copy,
    .hero-visual {
        min-height: 100%;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nostalgia-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }
}
