/* Project Xander — style.css */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #06080f;
    --bg2:         #0c0f1d;
    --purple:      #7c3aed;
    --purple-lt:   #a78bfa;
    --cyan:        #06b6d4;
    --cyan-lt:     #67e8f9;
    --discord:     #5865F2;
    --white:       #f8fafc;
    --gray:        #94a3b8;
    --gray-dim:    #475569;
    --card-bg:     rgba(255,255,255,0.03);
    --card-border: rgba(255,255,255,0.07);
    --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* slim purple scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.45); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.7); }

::selection { background: rgba(124,58,237,0.35); color: var(--white); }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* animated gradient text */
@keyframes grad-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.grad {
    background: linear-gradient(135deg, var(--purple-lt), var(--cyan-lt), #c4b5fd, var(--cyan-lt), var(--purple-lt));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: grad-shift 6s ease infinite;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 6%;
    gap: 2rem;
    transition: background 0.35s, border-color 0.35s;
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: rgba(6,8,15,0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-color: var(--card-border);
}

.nav-logo { text-decoration: none; line-height: 1; flex-shrink: 0; display: flex; align-items: center; gap: 0.65rem; }
.nav-logo-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo .n-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: -0.03em;
    transition: color 0.2s;
}
.nav-logo:hover .n-title { color: var(--purple-lt); }
.nav-logo .n-sub {
    font-size: 0.63rem;
    color: var(--gray-dim);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    display: block;
}

.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0 auto; }
.nav-links a {
    position: relative;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
    padding-bottom: 2px;
}
/* sliding gradient underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--purple-lt), var(--cyan-lt));
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--gray);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s, background 0.2s;
}
.nav-toggle:hover span { background: var(--white); }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--purple-lt); outline-offset: 3px; }

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #6d28d9; box-shadow: 0 8px 28px rgba(124,58,237,0.45); }

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4752c4; box-shadow: 0 8px 28px rgba(88,101,242,0.45); }

.btn-lg { padding: 0.85rem 1.9rem; font-size: 0.97rem; border-radius: 10px; }

/* ─── HERO ─── */

/* staggered entrance */
@keyframes hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: hero-in 0.7s ease 0.1s both; }
#hero h1      { animation: hero-in 0.7s ease 0.22s both; }
.hero-sub     { animation: hero-in 0.7s ease 0.38s both; }
.hero-ctas    { animation: hero-in 0.7s ease 0.52s both; }
.hero-media   { animation: hero-in 0.9s ease 0.68s both; }

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 5rem) 6% 6rem;
    overflow: hidden;
}

/* subtle dot-grid overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

/* ambient glow orbs */
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-1 {
    top: 5%; left: -15%;
    width: 65vw; height: 65vw;
    background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 65%);
    animation: drift 9s ease-in-out infinite alternate;
}
.orb-2 {
    bottom: 0; right: -15%;
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(6,182,212,0.11) 0%, transparent 65%);
    animation: drift 11s ease-in-out infinite alternate-reverse;
}
.orb-3 {
    top: 50%; left: 30%;
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 65%);
    animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(4%, 3%) scale(1.05); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124,58,237,0.11);
    border: 1px solid rgba(124,58,237,0.28);
    color: var(--purple-lt);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--purple-lt);
    border-radius: 50%;
    animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.75); }
}

#hero h1 {
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 2.75rem;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* hero trailer placeholder */
.hero-media {
    position: relative;
    margin-top: 5rem;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow:
        0 48px 120px rgba(0,0,0,0.7),
        0 0 0 1px rgba(124,58,237,0.07),
        0 0 80px rgba(124,58,237,0.09);
    z-index: 1;
    transition: box-shadow 0.35s, transform 0.35s;
}
.hero-media:hover {
    box-shadow:
        0 60px 140px rgba(0,0,0,0.75),
        0 0 0 1px rgba(124,58,237,0.18),
        0 0 100px rgba(124,58,237,0.16);
    transform: translateY(-4px);
}
.hero-media-inner {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(6,182,212,0.06) 100%);
}
.play-btn {
    width: 76px; height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 2px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.play-btn:hover {
    background: rgba(124,58,237,0.3);
    border-color: var(--purple-lt);
    transform: scale(1.12);
    box-shadow: 0 0 36px rgba(124,58,237,0.45);
}
.play-btn svg { width: 30px; height: 30px; fill: white; margin-left: 4px; }
.media-label { color: var(--gray-dim); font-size: 0.82rem; letter-spacing: 0.05em; }

/* ─── SECTIONS ─── */
section { padding: 7.5rem 6%; }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--purple-lt);
    margin-bottom: 0.85rem;
}
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.section-body {
    color: var(--gray);
    font-size: 1.02rem;
    line-height: 1.78;
    max-width: 540px;
}

/* ─── WHAT IS XANDER ─── */
#what {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}
.what-text { order: 1; }
.what-visual { order: 2; position: relative; }

.what-frame {
    aspect-ratio: 4/3;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(124,58,237,0.09) 0%, rgba(6,182,212,0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dim);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.what-frame:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 0 40px rgba(124,58,237,0.08);
}
.what-visual::before {
    content: '';
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stat:hover {
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.stat .val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--purple-lt);
    line-height: 1;
}
.stat .lbl { font-size: 0.72rem; color: var(--gray-dim); letter-spacing: 0.04em; margin-top: 0.2rem; }

/* ─── FEATURES ─── */
#features { background: var(--bg2); position: relative; }
#features::before, #features::after {
    content: '';
    position: absolute;
    left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}
#features::before { top: 0; }
#features::after  { bottom: 0; }

.features-hd { text-align: center; margin-bottom: 4rem; }
.features-hd .section-title,
.features-hd .section-body { margin-left: auto; margin-right: auto; }
.features-hd .section-body { max-width: 500px; }

.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1.2rem;
}
.feat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feat-card:hover {
    border-color: rgba(124,58,237,0.38);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 40px rgba(124,58,237,0.07);
}
.feat-card:hover::after { opacity: 1; }

.feat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.3rem;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.18);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feat-card:hover .feat-icon {
    background: rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.45);
    box-shadow: 0 0 20px rgba(124,58,237,0.28);
}
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.55rem; }
.feat-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.68; }

/* ─── COMMUNITY ─── */
#community { text-align: center; }
.comm-inner { max-width: 720px; margin: 0 auto; }
.comm-inner .section-title,
.comm-inner .section-body { margin-left: auto; margin-right: auto; }

.discord-box {
    margin-top: 3.5rem;
    background: linear-gradient(135deg, rgba(88,101,242,0.11) 0%, rgba(88,101,242,0.04) 100%);
    border: 1px solid rgba(88,101,242,0.26);
    border-radius: 22px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.discord-box:hover {
    border-color: rgba(88,101,242,0.48);
    box-shadow: 0 0 70px rgba(88,101,242,0.12);
}
.discord-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(88,101,242,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.discord-box svg.d-logo { display: block; margin: 0 auto 1.25rem; }
.discord-box h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.75rem; }
.discord-box p {
    color: var(--gray);
    max-width: 460px;
    margin: 0 auto 2rem;
    font-size: 0.93rem;
    line-height: 1.72;
}

.discord-widget-wrap {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}
.discord-widget-wrap iframe {
    border-radius: 12px;
    max-width: 100%;
}

.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1120px;
    margin: 4.5rem auto 0;
}
.shot {
    aspect-ratio: 16/9;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dim);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.shot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.07) 0%, rgba(6,182,212,0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.shot:hover {
    border-color: rgba(124,58,237,0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.shot:hover::after { opacity: 1; }

/* ─── ABOUT ─── */
#about { background: var(--bg2); position: relative; }
#about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.8rem 1.3rem;
    margin-top: 2.25rem;
    transition: border-color 0.2s;
}
.studio-badge:hover { border-color: rgba(124,58,237,0.25); }
.studio-badge .bi { font-size: 1.5rem; }
.studio-badge .bt { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; }
.studio-badge .bs { font-size: 0.72rem; color: var(--gray-dim); }

/* gradient border via mask trick */
.about-card {
    position: relative;
    border-radius: 22px;
    padding: 2.75rem 2.25rem;
    text-align: center;
    background: var(--card-bg);
    isolation: isolate;
}
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,58,237,0.55), rgba(6,182,212,0.4), rgba(124,58,237,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.about-card .big-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.4rem;
}
.about-card .tagline {
    color: var(--gray-dim);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tag {
    background: rgba(124,58,237,0.09);
    border: 1px solid rgba(124,58,237,0.2);
    color: var(--purple-lt);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.28rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s;
}
.tag:hover { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--card-border); padding: 2.75rem 6%; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.fl-logo .fn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}
.fl-logo .fs { font-size: 0.67rem; color: var(--gray-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.12rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--gray-dim); text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--gray-dim); font-size: 0.78rem; }

/* ─── SCROLL REVEAL ─── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    #what, .about-inner { grid-template-columns: 1fr; gap: 3.5rem; }
    .what-visual { order: -1; }
    .shots-grid { grid-template-columns: repeat(2, 1fr); }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(6,8,15,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 6% 2rem;
        border-bottom: 1px solid var(--card-border);
        gap: 1.25rem;
    }
    nav.open .nav-links { display: flex; }
    .nav-links a { font-size: 1rem; }
    .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
    section { padding: 5rem 5%; }
    .shots-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; max-width: 280px; justify-content: center; }
    .stat-row { gap: 0.75rem; }
    .discord-box { padding: 2rem 1.5rem; }
    #hero { padding-bottom: 4rem; }
}
