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

:root {
    --bg:    #0a0418;
    --bg-2:  #050210;
    --ink:   #ffffff;
    --muted: rgba(255, 255, 255, 0.6);
    --line:  rgba(255, 255, 255, 0.1);
    --purple: #8b2fe6;
    --purple-deep: #6c1dc4;
    --purple-soft: #c084fc;
    --lavender: #e9d5ff;
    --glass-pink: #ec4cff;
    --chip-bg: rgba(139, 47, 230, 0.08);
    --chip-border: rgba(139, 47, 230, 0.25);
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (hover: none), (pointer: coarse) { html, body { cursor: auto; } }

.back-link {
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    cursor: none;
    opacity: 0.85;
    transition: opacity 0.3s, transform 0.3s;
}
.back-link:hover { opacity: 1; transform: translateY(-2px); }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--purple-soft);
    border-radius: 50%;
}
.cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(192, 132, 252, 0.5);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
    width: 60px; height: 60px;
    border-color: var(--purple-soft);
    background: rgba(192, 132, 252, 0.08);
}
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* =========================================================
   LOADER — Pulsing orb + voice waves
   ========================================================= */
.loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: radial-gradient(ellipse at center, var(--bg) 0%, var(--bg-2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.loader__stage {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader__rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.loader__rings span {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(192, 132, 252, 0.5);
    will-change: transform, opacity;
}

.loader__orb {
    position: relative;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--purple-soft), var(--purple-deep) 70%);
    box-shadow: 0 0 40px rgba(139, 47, 230, 0.6),
                inset 0 0 20px rgba(233, 213, 255, 0.3);
    z-index: 2;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader__orb-inner {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.4), transparent 60%);
}
.loader__orb-core {
    position: absolute;
    inset: 35%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(4px);
    will-change: transform;
}
.loader__check {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
    opacity: 0;
}

.loader__bars {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    align-items: center;
    height: 40px;
}
.loader__bars span {
    display: block;
    width: 3px;
    min-height: 4px;
    background: var(--purple-soft);
    border-radius: 2px;
    will-change: transform, height;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.5);
}

.loader__meta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    text-transform: uppercase;
}
.loader__counter {
    color: var(--purple-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
}

/* =========================================================
   VOXR SECTION
   ========================================================= */
.voxr {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 780px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(139, 47, 230, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(139, 47, 230, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.voxr__glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 500px; height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 47, 230, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

/* ---------- Top nav ---------- */
.topnav {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
}

.topnav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    cursor: none;
    will-change: transform;
}
.topnav__logo-mark { width: 32px; height: 32px; }
.topnav__logo-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 8px rgba(139, 47, 230, 0.5)); }
.topnav__logo-text em {
    font-style: normal;
    background: linear-gradient(135deg, var(--purple-soft), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topnav__links {
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
}
.topnav__links a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.3rem 0;
    cursor: none;
    will-change: transform;
}
.topnav__links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--purple-soft);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}
.topnav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.topnav__actions {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.3rem;
}
.topnav__contact {
    color: var(--ink);
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: none;
    will-change: transform;
    border-radius: 999px;
    transition: background 0.3s;
}
.topnav__contact:hover { background: rgba(255, 255, 255, 0.06); }

.topnav__login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--bg);
    text-decoration: none;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: none;
    will-change: transform;
    box-shadow: 0 0 30px rgba(139, 47, 230, 0.5);
    position: relative;
}
.topnav__login-arrow {
    width: 30px; height: 30px;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.topnav__login-arrow svg { width: 14px; height: 14px; }
.topnav__login:hover .topnav__login-arrow { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 2rem 3rem 3rem;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
}

.hero__left { max-width: 720px; padding-top: 2rem; }

.hero__title {
    font-weight: 700;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 2rem;
}
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.04em;
}
.hero__line em {
    font-style: normal;
    background: linear-gradient(135deg, var(--lavender) 0%, #c9a7e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__char {
    display: inline-block;
    will-change: transform;
}
.hero__char.is-space { width: 0.25em; }

.hero__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.cta-big {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--bg);
    text-decoration: none;
    padding: 0.7rem 0.7rem 0.7rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: none;
    will-change: transform;
    box-shadow: 0 0 50px rgba(139, 47, 230, 0.6),
                0 0 20px rgba(139, 47, 230, 0.4);
}
.cta-big__arrow {
    width: 38px; height: 38px;
    background: var(--purple);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.cta-big__arrow svg { width: 16px; height: 16px; }
.cta-big:hover .cta-big__arrow { transform: rotate(-45deg); }

/* ---------- Chips (right column) ---------- */
.hero__chips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 2rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
    color: var(--ink);
    cursor: none;
    will-change: transform;
    transition: border-color 0.3s, background 0.3s;
}
.chip__icon {
    width: 18px; height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chip__icon svg { width: 100%; height: 100%; }
.chip:hover {
    border-color: var(--purple-soft);
    background: rgba(139, 47, 230, 0.15);
}

.chip:nth-child(1) { margin-left: 0; }
.chip:nth-child(2) { margin-left: 12%; }
.chip:nth-child(3) { margin-left: 4%; }

/* ---------- 3D Scene ---------- */
.scene {
    position: absolute;
    left: 45%;
    right: 0;
    bottom: 0;
    height: 45%;
    z-index: 5;
    pointer-events: none;
    perspective: 1000px;
    overflow: hidden;
}

.scene__platform {
    position: absolute;
    left: 5%;
    right: -10%;
    bottom: 0;
    height: 50%;
    background: radial-gradient(ellipse at center top, rgba(236, 76, 255, 0.3) 0%, rgba(139, 47, 230, 0.15) 50%, transparent 100%);
    border-radius: 100% 100% 0 0 / 60% 60% 0 0;
    filter: blur(2px);
    will-change: transform;
}
.scene__light {
    position: absolute;
    left: 30%;
    right: 20%;
    bottom: 10%;
    height: 20%;
    background: linear-gradient(90deg, transparent, rgba(236, 76, 255, 0.6), transparent);
    filter: blur(8px);
    border-radius: 50%;
    will-change: transform;
}

.scene__check {
    position: absolute;
    left: 18%;
    bottom: 35%;
    width: 120px;
    height: 140px;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 3;
}
.scene__check-face {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(236, 76, 255, 0.4);
    border-radius: 20px 20px 40px 40px / 20px 20px 50px 50px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 40px rgba(139, 47, 230, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(236, 76, 255, 0.2);
}
.scene__check-face svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 6px rgba(236, 76, 255, 0.6));
}

.scene__orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(233, 213, 255, 0.1) 50%, rgba(139, 47, 230, 0.05) 100%);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(139, 47, 230, 0.25),
                inset 0 3px 10px rgba(255, 255, 255, 0.2);
    will-change: transform;
}
.scene__orb--1 { width: 70px; height: 70px; bottom: 58%; left: 42%; }
.scene__orb--2 { width: 60px; height: 60px; bottom: 48%; left: 60%; }
.scene__orb--3 { width: 50px; height: 50px; bottom: 65%; left: 78%; }
.scene__orb--4 { width: 44px; height: 44px; bottom: 40%; left: 88%; }
.scene__orb--5 { width: 38px; height: 38px; bottom: 70%; left: 92%; }

/* ---------- Initial hidden states ---------- */
[data-magnetic], [data-link], [data-fade], [data-title-line], [data-chip], [data-cta], [data-scene] {
    opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .topnav__links { display: none; }
    .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
    .hero__chips { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
    .chip { margin-left: 0 !important; font-size: 0.8rem; padding: 0.6rem 1rem; }
    .scene { left: 50%; height: 40%; }
    .scene__check { width: 80px; height: 95px; }
}
@media (max-width: 760px) {
    .topnav { padding: 1rem 1.25rem; gap: 0.5rem; }
    .topnav__logo-text { font-size: 1.1rem; }
    .topnav__contact { display: none; }
    .hero { padding: 1rem 1.25rem; gap: 1.5rem; }
    .hero__title { font-size: clamp(1.75rem, 9vw, 3rem); }
    .hero__desc { font-size: 0.9rem; }
    .cta-big { font-size: 0.9rem; padding: 0.55rem 0.55rem 0.55rem 1.4rem; }
    .cta-big__arrow { width: 32px; height: 32px; }
    .scene { height: 30%; left: 40%; }
    .scene__check { display: none; }
    .scene__orb { transform: scale(0.7); }
}
@media (max-width: 480px) {
    .hero__chips { display: none; }
}
