:root {
    --bg-deep: #05070d;
    --bg-midnight: #0d1222;
    --bg-dark: #05070d;
    --bg-panel: #101a31;
    --panel: rgba(14, 23, 45, 0.56);
    --line-soft: rgba(128, 248, 255, 0.2);
    --line-strong: rgba(128, 248, 255, 0.55);
    --text-main: #dff7ff;
    --text-soft: #9cb5cc;
    --neon-cyan: #78f0ff;
    --accent-cyan: #78f0ff;
    --accent-teal: #3fcfc0;
    --neon-blue: #4a7dff;
    --neon-pink: #f94bc1;
    --hero-aurora: radial-gradient(circle at 18% 22%, rgba(69, 127, 255, 0.34), transparent 46%), radial-gradient(circle at 82% 18%, rgba(249, 75, 193, 0.28), transparent 42%), radial-gradient(circle at 50% 68%, rgba(120, 240, 255, 0.16), transparent 52%);
    --shadow-neon: 0 0 18px rgba(120, 240, 255, 0.26), 0 0 42px rgba(74, 125, 255, 0.2);
    --radius-xl: 24px;
    --radius-md: 14px;
    --trans-fast: 220ms ease;
    --trans-mid: 380ms cubic-bezier(0.22, 1, 0.36, 1);
    --rotateX: 0deg;
    --rotateY: 0deg;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    background: linear-gradient(170deg, #04060f 0%, #071022 55%, #04060f 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

.page-ambient {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    pointer-events: none;
    z-index: -3;
}

.glass-panel {
    background: linear-gradient(145deg, rgba(13, 25, 45, 0.58), rgba(7, 13, 28, 0.48));
    border: 1px solid rgba(167, 230, 255, 0.16);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.navbar {
    position: fixed;
    inset: 14px 22px auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-radius: 18px;
    z-index: 1000;
    box-shadow: 0 10px 36px rgba(2, 7, 18, 0.55);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-size: 1.05rem;
}

.logo span {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(120, 240, 255, 0.7);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

button {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.07em;
    cursor: pointer;
    border: none;
}

.btn-ghost,
.btn-solid,
.btn-battle {
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    transform: perspective(700px) rotateX(var(--rotateX)) rotateY(var(--rotateY)) translateZ(0);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
}

.btn-ghost,
.btn-solid {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 0.7rem;
}

.btn-ghost {
    color: var(--neon-cyan);
    border: 1px solid rgba(120, 240, 255, 0.38);
    background: rgba(5, 14, 32, 0.5);
}

.btn-solid {
    color: #031221;
    border: 1px solid rgba(120, 240, 255, 0.5);
    background: linear-gradient(115deg, #90f5ff 0%, #5ec4ff 52%, #8b9cff 100%);
}

.btn-battle {
    min-height: 52px;
    padding: 13px 30px;
    border-radius: 14px;
    color: #07101d;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(115deg, #73e8ff 0%, #66f5d4 40%, #8f8dff 100%);
    box-shadow: 0 10px 28px rgba(50, 111, 255, 0.32);
}

.btn-ghost:hover,
.btn-solid:hover,
.btn-battle:hover,
.btn-ghost.is-tilting,
.btn-solid.is-tilting,
.btn-battle.is-tilting {
    box-shadow: var(--shadow-neon);
}

.btn-ghost::after,
.btn-solid::after,
.btn-battle::after,
.glow-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(125deg, transparent 15%, rgba(140, 255, 255, 0.52), transparent 62%);
    opacity: 0;
    transition: opacity var(--trans-fast);
    z-index: -1;
}

.btn-ghost:hover::after,
.btn-solid:hover::after,
.btn-battle:hover::after,
.glow-card:hover::after {
    opacity: 1;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 146px 5vw 70px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 36px;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hero-aurora);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.5px);
    opacity: 0.5;
}

.orb-a {
    width: 340px;
    height: 340px;
    left: -4%;
    top: 15%;
    background: radial-gradient(circle, rgba(120, 240, 255, 0.25), transparent 70%);
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-b {
    width: 420px;
    height: 420px;
    right: -6%;
    top: -3%;
    background: radial-gradient(circle, rgba(249, 75, 193, 0.18), transparent 70%);
    animation: floatOrb 14s ease-in-out infinite reverse;
}

.orb-c {
    width: 300px;
    height: 300px;
    left: 46%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(74, 125, 255, 0.2), transparent 74%);
    animation: floatOrb 13s ease-in-out infinite;
}

.pulse-line {
    position: absolute;
    width: 55vw;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(120, 240, 255, 0.75) 50%, transparent 100%);
    opacity: 0.45;
    animation: pulseLine 8s linear infinite;
}

.pulse-1 {
    top: 26%;
    left: -10%;
}

.pulse-2 {
    top: 46%;
    right: -16%;
    animation-delay: 1.8s;
}

.pulse-3 {
    top: 68%;
    left: -8%;
    animation-delay: 3.2s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0.4px, transparent 0.5px);
    background-size: 3px 3px;
    opacity: 0.06;
    pointer-events: none;
}

.hero-content {
    max-width: 740px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: #9ac2de;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 204, 233, 0.3);
    background: rgba(5, 17, 35, 0.55);
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
}

.hero h1 {
    font-size: clamp(2.1rem, 7vw, 5rem);
    line-height: 1.06;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 16px rgba(120, 240, 255, 0.58);
}

.hero p {
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    color: #bdd8ee;
    line-height: 1.65;
    max-width: 650px;
}

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

.hero-glass {
    border-radius: var(--radius-xl);
    padding: 18px;
    border: 1px solid rgba(150, 222, 255, 0.28);
    background: linear-gradient(145deg, rgba(13, 23, 44, 0.62), rgba(6, 12, 25, 0.45));
    backdrop-filter: blur(12px);
    align-self: center;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
    position: relative;
    z-index: 2;
}

.glass-item {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(131, 201, 232, 0.2);
    background: rgba(5, 12, 25, 0.48);
}

.glass-item + .glass-item {
    margin-top: 12px;
}

.glass-item span {
    display: block;
    font-size: 0.84rem;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.glass-item strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #b9f8ff;
}

main {
    position: relative;
    z-index: 1;
}

.features-vision,
.platforms-section,
.cta-section {
    width: min(1180px, 92vw);
    margin: 0 auto;
    padding: 88px 0;
}

.features-vision h2,
.platforms-section h2,
.cta-section h2 {
    font-size: clamp(1.45rem, 4.5vw, 2.7rem);
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-soft);
    max-width: 620px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
}

.feature-box {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(160deg, rgba(8, 15, 31, 0.72), rgba(8, 13, 25, 0.5));
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.feature-box:hover,
.feature-box.is-tilting {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-neon);
}

.feature-box i {
    font-size: 2rem;
    margin-bottom: 18px;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(120, 240, 255, 0.46);
}

.feature-box h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-soft);
    line-height: 1.64;
}

.platform-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    border-radius: var(--radius-xl);
    padding: 12px;
}

.platform-rail span {
    border: 1px solid rgba(120, 240, 255, 0.18);
    border-radius: 12px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(4, 10, 24, 0.56);
    color: #d8f8ff;
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.platform-rail span:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 240, 255, 0.45);
    box-shadow: 0 0 18px rgba(120, 240, 255, 0.26);
}

.cta-section {
    padding-bottom: 120px;
}

.site-footer {
    width: min(1180px, 92vw);
    margin: 0 auto 42px;
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(120, 240, 255, 0.18);
    background: linear-gradient(145deg, rgba(9, 17, 32, 0.72), rgba(5, 11, 22, 0.66));
    position: relative;
    z-index: 2;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

.site-footer a {
    color: #d4ebff;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.site-footer a:hover {
    color: var(--neon-cyan);
}

.legal-page {
    max-width: 980px;
    margin: 120px auto 48px;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(120, 240, 255, 0.22);
    background: linear-gradient(160deg, rgba(8, 15, 31, 0.76), rgba(8, 13, 25, 0.6));
}

.legal-page h1 {
    margin-bottom: 12px;
}

.legal-page h2 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
}

.legal-page p {
    color: #bdd6eb;
    line-height: 1.7;
}

.legal-back-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--neon-cyan);
    text-decoration: none;
}

.cta-panel {
    border-radius: var(--radius-xl);
    padding: clamp(26px, 4vw, 52px);
    text-align: center;
    border: 1px solid rgba(141, 232, 255, 0.24);
    box-shadow: 0 24px 54px rgba(1, 8, 19, 0.58);
}

.cta-panel p {
    max-width: 760px;
    margin: 12px auto 30px;
    color: #b0c8db;
    line-height: 1.72;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 17, 0.72);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 18px;
}

.modal-content {
    width: min(92vw, 470px);
    border-radius: var(--radius-xl);
    padding: 30px;
    position: relative;
    border: 1px solid rgba(120, 240, 255, 0.35);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-right: 20px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    color: #daf8ff;
    cursor: pointer;
}

.auth-form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(148px, 42%) 1fr;
    gap: 10px;
}

.phone-row select,
.phone-row input {
    width: 100%;
}

.auth-form select {
    border-radius: 10px;
    border: 1px solid rgba(147, 204, 236, 0.22);
    padding: 12px 13px;
    background: rgba(4, 9, 20, 0.72);
    color: #ecf9ff;
    outline: none;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.auth-form select:focus {
    border-color: rgba(120, 240, 255, 0.64);
    box-shadow: 0 0 0 3px rgba(120, 240, 255, 0.12);
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b8d1e9;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 4px;
}

.terms-check input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-cyan);
    margin-top: 2px;
    flex: 0 0 auto;
}

.terms-check a {
    color: var(--neon-cyan);
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

.auth-form input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(147, 204, 236, 0.22);
    padding: 12px 13px;
    background: rgba(4, 9, 20, 0.72);
    color: #ecf9ff;
    outline: none;
    transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 240, 255, 0.25);
    background: rgba(9, 17, 34, 0.75);
    color: #bfe8ff;
    cursor: pointer;
    transition: border-color var(--trans-fast), color var(--trans-fast), box-shadow var(--trans-fast);
}

.password-toggle:hover {
    border-color: rgba(120, 240, 255, 0.55);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(120, 240, 255, 0.24);
}

.auth-form input:focus {
    border-color: rgba(120, 240, 255, 0.64);
    box-shadow: 0 0 0 3px rgba(120, 240, 255, 0.12);
}

.w-100 {
    width: 100%;
    margin-top: 8px;
}

.terms {
    text-align: center;
    color: #9fb2c7;
    font-size: 0.78rem;
    line-height: 1.45;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal-start {
    opacity: 0;
    transform: translateY(36px) scale(0.99);
    transition: opacity 640ms ease, transform 640ms cubic-bezier(0.18, 0.98, 0.34, 1);
}

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

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -18px, 0);
    }
}

@keyframes pulseLine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.45;
    }
    100% {
        transform: translateX(28vw);
        opacity: 0;
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: left;
        padding-top: 128px;
    }

    .hero-glass {
        max-width: 520px;
    }

    .grid-features {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .platform-rail {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 680px) {
    .navbar {
        inset: 10px 10px auto;
        padding: 12px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .btn-ghost,
    .btn-solid {
        flex: 1;
        font-size: 0.62rem;
        padding-inline: 8px;
    }

    .hero {
        padding-inline: 6vw;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-features,
    .platform-rail,
    .form-row,
    .phone-row {
        grid-template-columns: 1fr;
    }

    .features-vision,
    .platforms-section,
    .cta-section {
        padding: 70px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .js .reveal-start,
    .js .reveal-start.is-visible {
        opacity: 1;
        transform: none;
    }
}