:root {
    --bg-primary: #0b1a2a;
    --bg-secondary: #112a44;
    --panel: rgba(12, 28, 47, 0.64);
    --panel-strong: rgba(10, 24, 41, 0.82);
    --border: rgba(111, 183, 255, 0.24);
    --border-soft: rgba(111, 183, 255, 0.16);
    --text-main: #f3f8ff;
    --text-soft: #a8c2e3;
    --accent: #00aeef;
    --accent-2: #3b82f6;
    --shadow-main: 0 24px 58px rgba(2, 9, 18, 0.5);
    --glow: 0 0 0 1px rgba(120, 201, 255, 0.26), 0 0 28px rgba(44, 130, 255, 0.26);
}

html[data-theme="sunset"] {
    --bg-primary: #edf5ff;
    --bg-secondary: #e6f0ff;
    --panel: rgba(250, 253, 255, 0.86);
    --panel-strong: rgba(244, 250, 255, 0.96);
    --border: rgba(95, 145, 208, 0.34);
    --border-soft: rgba(112, 156, 214, 0.3);
    --text-main: #163250;
    --text-soft: #4d688a;
    --accent: #2c7ff2;
    --accent-2: #5ba2ff;
    --shadow-main: 0 18px 36px rgba(95, 135, 191, 0.26);
    --glow: 0 0 0 1px rgba(90, 150, 222, 0.25), 0 0 22px rgba(103, 163, 233, 0.24);
}

html[data-theme="sunset"] body {
    color: var(--text-main);
    background:
        radial-gradient(1250px 580px at 14% -16%, rgba(128, 185, 255, 0.36), transparent 72%),
        radial-gradient(1060px 500px at 92% -8%, rgba(121, 205, 255, 0.24), transparent 74%),
        linear-gradient(160deg, #f8fbff 0%, #edf5ff 38%, #e4eeff 100%);
}

html[data-theme="sunset"] .glass-panel,
html[data-theme="sunset"] .selected-panel,
html[data-theme="sunset"] .mode-card {
    border-color: var(--border-soft);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 255, 0.75));
    box-shadow: var(--shadow-main);
}

html[data-theme="sunset"] .mode-card p,
html[data-theme="sunset"] .selected-desc,
html[data-theme="sunset"] .selected-meta,
html[data-theme="sunset"] .subtext {
    color: var(--text-soft);
}

html[data-theme="sunset"] .header-btn {
    border-color: rgba(106, 153, 216, 0.36);
    background: rgba(255, 255, 255, 0.78);
    color: #1b3555;
}

html[data-theme="sunset"] .header-btn.ghost {
    color: #537092;
    background: rgba(236, 246, 255, 0.84);
}

html[data-theme="sunset"] .orb {
    opacity: 0.74;
    filter: blur(34px);
}

html[data-theme="sunset"] .orb-a {
    background: radial-gradient(circle at 34% 32%, rgba(86, 152, 236, 0.5), rgba(86, 152, 236, 0.04) 72%);
}

html[data-theme="sunset"] .orb-b {
    background: radial-gradient(circle at 56% 48%, rgba(56, 165, 221, 0.42), rgba(56, 165, 221, 0.03) 74%);
}

html[data-theme="sunset"] .orb-c {
    background: radial-gradient(circle at 58% 48%, rgba(118, 131, 232, 0.36), rgba(118, 131, 232, 0.03) 74%);
}

html[data-theme="sunset"] .curve {
    border-color: rgba(95, 140, 197, 0.24);
}

html[data-theme="sunset"] .grid-fade {
    background-image: linear-gradient(rgba(102, 150, 211, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(102, 150, 211, 0.07) 1px, transparent 1px);
}

html[data-theme="sunset"] .eyebrow {
    color: #204d7a;
    border-color: rgba(100, 151, 214, 0.4);
    background: rgba(105, 154, 217, 0.14);
}

html[data-theme="sunset"] .selected-label,
html[data-theme="sunset"] .selected-meta,
html[data-theme="sunset"] .mode-card p,
html[data-theme="sunset"] .subtext {
    color: var(--text-soft);
}

html[data-theme="sunset"] .icon-shell {
    background: linear-gradient(145deg, rgba(54, 132, 236, 0.16), rgba(93, 158, 234, 0.22));
    border-color: rgba(102, 151, 213, 0.4);
}

html[data-theme="sunset"] .icon-shell svg {
    stroke: #2f608f;
}

html[data-theme="sunset"] .card-cta {
    border-color: rgba(104, 153, 214, 0.42);
    background: rgba(244, 250, 255, 0.9);
    color: #294e78;
}

html[data-theme="sunset"] .mode-card.active .card-cta {
    border-color: rgba(95, 149, 214, 0.6);
    background: rgba(109, 161, 226, 0.16);
    box-shadow: inset 0 0 0 1px rgba(103, 156, 216, 0.26);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1300px 600px at 14% -16%, rgba(59, 130, 246, 0.26), transparent 72%),
        radial-gradient(1100px 520px at 92% -8%, rgba(0, 174, 239, 0.2), transparent 74%),
        linear-gradient(160deg, #081524 0%, var(--bg-primary) 35%, #102744 100%);
    overflow-x: hidden;
    position: relative;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.6;
}

.orb-a {
    width: 460px;
    height: 460px;
    left: -130px;
    top: -120px;
    background: radial-gradient(circle at 34% 32%, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0.03) 72%);
}

.orb-b {
    width: 520px;
    height: 520px;
    right: -210px;
    top: 44px;
    background: radial-gradient(circle at 56% 48%, rgba(0, 174, 239, 0.44), rgba(33, 71, 140, 0.03) 74%);
    animation: orbFloat 16s ease-in-out infinite;
}

.orb-c {
    width: 480px;
    height: 480px;
    left: 24%;
    bottom: -260px;
    background: radial-gradient(circle at 58% 48%, rgba(80, 99, 221, 0.4), rgba(16, 40, 74, 0.02) 74%);
    animation: orbFloat 17s ease-in-out infinite reverse;
}

.curve {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(137, 192, 255, 0.16);
}

.curve-a {
    width: 760px;
    height: 760px;
    left: -350px;
    top: 96px;
    transform: rotate(-20deg);
}

.curve-b {
    width: 940px;
    height: 540px;
    right: -430px;
    top: 250px;
    transform: rotate(8deg);
}

.grid-fade {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(152, 201, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 201, 255, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 38%, black 42%, transparent 78%);
}

.mode-shell {
    width: min(1230px, 92vw);
    margin: 0 auto;
    padding: 108px 0 46px;
}

.glass-panel {
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(160deg, rgba(13, 29, 49, 0.74), rgba(10, 22, 39, 0.52));
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 36px rgba(2, 8, 16, 0.34);
}

.mode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    color: #04182b;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 24px rgba(0, 174, 239, 0.34);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(112, 182, 255, 0.38);
    background: rgba(16, 40, 66, 0.42);
    color: #dbedff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.header-btn:hover {
    box-shadow: var(--glow);
}

.header-btn.ghost {
    color: #a0bbde;
    border-color: rgba(112, 182, 255, 0.2);
    background: rgba(11, 28, 48, 0.44);
}

.hero-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}

.intro-column {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(95, 167, 249, 0.34);
    background: rgba(21, 49, 81, 0.36);
    color: #d4e7ff;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.intro-column h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.02rem, 4.4vw, 3.82rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.subtext {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.start-btn {
    margin-top: 24px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 13px;
    border: none;
    cursor: pointer;
    color: #04182c;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 36px rgba(0, 174, 239, 0.34);
    transition: 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(0, 174, 239, 0.42);
}

.start-btn.is-locked-cta {
    color: #ebf3ff;
    background: linear-gradient(145deg, rgba(83, 109, 154, 0.96), rgba(67, 87, 128, 0.92));
    box-shadow: 0 16px 32px rgba(10, 20, 36, 0.34);
}

.selected-panel {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(12, 28, 49, 0.78), rgba(12, 24, 42, 0.56));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.selected-label {
    color: #9cc0e8;
    font-size: 0.76rem;
    margin-bottom: 6px;
}

.selected-title {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
}

.selected-desc {
    margin-top: 8px;
    color: #b0c9e6;
    line-height: 1.65;
    font-size: 0.91rem;
}

.selected-meta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8db3da;
    font-size: 0.74rem;
    font-weight: 600;
}

.meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6ec8ff;
}

.cards-column {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    perspective: 900px;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.mode-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    background: linear-gradient(170deg, var(--panel), rgba(10, 24, 42, 0.56));
    box-shadow: var(--shadow-main);
    padding: 18px 18px 16px;
    min-height: 214px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) translateY(0);
}

.mode-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(145deg, rgba(95, 164, 255, 0.2), rgba(0, 174, 239, 0.06), transparent 66%);
    pointer-events: none;
}

.mode-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.14) 42%, transparent 67%);
    transform: translateX(-135%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.mode-card:hover::after {
    transform: translateX(120%);
}

.mode-card:hover {
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) translateY(-7px);
    border-color: rgba(132, 206, 255, 0.74);
    box-shadow: 0 0 0 1px rgba(120, 201, 255, 0.3), 0 24px 46px rgba(2, 9, 18, 0.54), 0 0 30px rgba(52, 127, 255, 0.24);
}

.mode-card.active {
    border-color: rgba(132, 206, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(120, 201, 255, 0.38), 0 26px 52px rgba(2, 9, 18, 0.56), 0 0 36px rgba(52, 127, 255, 0.3);
    background: linear-gradient(170deg, var(--panel-strong), rgba(13, 31, 54, 0.68));
    animation: pulseGlow 3s ease-in-out infinite;
}

.mode-card.is-locked {
    border-color: rgba(140, 162, 199, 0.22);
    background: linear-gradient(170deg, rgba(16, 29, 45, 0.94), rgba(10, 22, 36, 0.86));
}

.mode-card.is-locked:hover {
    border-color: rgba(140, 162, 199, 0.42);
    box-shadow: 0 0 0 1px rgba(119, 144, 183, 0.2), 0 24px 46px rgba(2, 9, 18, 0.54), 0 0 24px rgba(88, 122, 182, 0.12);
}

.mode-card.is-beta {
    border-color: rgba(168, 185, 214, 0.26);
    background: linear-gradient(170deg, rgba(20, 31, 47, 0.95), rgba(11, 22, 35, 0.88));
}

.mode-card.is-development {
    border-color: rgba(205, 183, 140, 0.28);
    background: linear-gradient(170deg, rgba(36, 30, 18, 0.94), rgba(19, 16, 11, 0.9));
    box-shadow: 0 22px 48px rgba(8, 8, 8, 0.48), 0 0 20px rgba(224, 182, 93, 0.08);
}

.card-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: linear-gradient(145deg, #8ad8ff, #56b7ff);
    color: #072136;
    font-size: 0.69rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
}

.card-badge.muted {
    background: linear-gradient(145deg, #bfd6ee, #9bb4d0);
    color: #1b304a;
}

.card-badge.locked {
    background: linear-gradient(145deg, rgba(198, 214, 237, 0.96), rgba(146, 173, 214, 0.94));
    color: #0b233b;
}

.icon-shell {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(0, 174, 239, 0.22), rgba(59, 130, 246, 0.26));
    border: 1px solid rgba(117, 182, 255, 0.35);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.icon-shell svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #d7ecff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mode-card h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mode-card p {
    color: #adc6e4;
    font-size: 0.89rem;
    line-height: 1.58;
}

.card-cta {
    margin-top: 16px;
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(112, 182, 255, 0.32);
    background: rgba(15, 39, 64, 0.58);
    color: #d7ecff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mode-card.is-locked .card-cta {
    border-color: rgba(157, 180, 217, 0.26);
    background: rgba(17, 31, 49, 0.82);
    color: #e3efff;
}

.mode-card.is-beta .card-cta {
    border-color: rgba(182, 196, 226, 0.28);
    background: rgba(26, 36, 52, 0.88);
    color: #f2f7ff;
}

.mode-card.is-development .card-cta {
    border-color: rgba(230, 194, 122, 0.28);
    background: rgba(56, 42, 18, 0.78);
    color: #fff1cc;
}

.mode-card.active .card-cta {
    border-color: rgba(120, 201, 255, 0.76);
    background: rgba(16, 62, 101, 0.68);
    box-shadow: inset 0 0 0 1px rgba(120, 201, 255, 0.22);
}

.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(120, 201, 255, 0.36), 0 24px 52px rgba(2, 9, 18, 0.56), 0 0 30px rgba(52, 127, 255, 0.24);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(120, 201, 255, 0.54), 0 24px 52px rgba(2, 9, 18, 0.56), 0 0 42px rgba(52, 127, 255, 0.34);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(14px, -18px, 0);
    }
}

@media (max-width: 1240px) {
    .cards-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .cards-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mode-shell {
        width: min(95vw, 620px);
        padding-top: 136px;
    }

    .mode-header {
        padding: 11px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .cards-column {
        grid-template-columns: 1fr;
    }

    .mode-card {
        min-height: 206px;
    }

    .subtext {
        font-size: 0.97rem;
    }
}

@media (max-width: 540px) {
    .mode-shell {
        width: min(100vw - 12px, 620px);
        padding-top: 124px;
        padding-bottom: 96px;
    }

    .hero-layout {
        gap: 22px;
    }

    .intro-column,
    .selected-panel,
    .mode-card {
        border-radius: 22px;
    }

    .intro-column h1 {
        font-size: clamp(1.55rem, 8.2vw, 2.3rem);
        line-height: 1.05;
    }

    .eyebrow,
    .subtext,
    .selected-desc,
    .mode-card p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .cards-column {
        gap: 12px;
    }

    .mode-card {
        min-height: 190px;
        padding: 16px 16px 14px;
    }

    .icon-shell {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .mode-card h3 {
        font-size: 1.06rem;
    }
}

@media (max-width: 420px) {
    .start-btn,
    .card-cta {
        width: 100%;
    }

    .selected-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}
