@font-face {
    font-family: "Centra";
    src: url("../font/CentraNo2-Book.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Centra";
    src: url("../font/CentraNo2-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Centra";
    src: url("../font/CentraNo2-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #120f18;
    --bg-2: #1a1622;
    --stone: #262130;
    --stone-2: #332c40;
    --line: rgba(255, 236, 210, 0.09);
    --text: #f3ece2;
    --muted: #b3a9a0;
    --torch: #ff8a3d;
    --gold: #ffc542;
    --mage: #7c6cff;
    --hunter: #43c46b;
    --radius: 18px;
    --title: "Lilita One", "Centra", system-ui, sans-serif;
    --body: "Centra", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(18, 15, 24, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.nav__inner {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav__brand {
    font-family: var(--title);
    font-size: 20px;
    text-decoration: none;
    margin-right: auto;
}
.nav__links { display: flex; gap: 24px; }
.nav__links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.lang {
    display: flex;
    background: var(--stone);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
}
.lang__btn {
    font: 700 13px var(--body);
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 999px;
    padding: 5px 11px;
    cursor: pointer;
}
.lang__btn[aria-pressed="true"] { background: var(--gold); color: #2a1a05; }

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 96px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 78% 40%, rgba(255, 138, 61, 0.22), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(124, 108, 255, 0.14), transparent 70%),
        linear-gradient(180deg, #17121f 0%, var(--bg) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.kicker {
    color: var(--torch);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(44px, 7vw, 84px);
    text-shadow: 0 4px 0 #0a0810, 0 0 40px rgba(255, 138, 61, 0.25);
}
.hero__tagline {
    font-family: var(--title);
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--gold);
    margin-top: 12px;
}
.hero__lead { color: var(--muted); font-size: 18px; max-width: 34em; margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }
.hero__note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.badge-link { display: inline-block; transition: transform 0.2s; }
.badge-link:hover { transform: translateY(-2px); }
.badge-img { height: 56px; width: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn i { font-size: 20px; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { background: rgba(88, 101, 242, 0.25); border-color: #5865f2; transform: translateY(-2px); }

.hero__art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero__logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
    animation: float 7s ease-in-out infinite;
}
.hero__phone {
    position: absolute;
    width: 42%;
    right: -14%;
    bottom: -10%;
    transform: rotate(6deg);
    animation: float 7s ease-in-out -3.5s infinite;
}
@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 2;
    translate: -50% 0;
    color: var(--muted);
    font-size: 20px;
    animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(6px); } }

.phone {
    display: block;
    border-radius: 26px;
    padding: 7px;
    background: linear-gradient(160deg, #3a3346, #17131d);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 48px rgba(0, 0, 0, 0.5);
}
.phone img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; }

.section { padding: 96px 0; }
.section__title { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    background: linear-gradient(180deg, var(--stone), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 138, 61, 0.12);
    color: var(--torch);
    font-size: 20px;
    margin-bottom: 20px;
}
.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; }

.section--classes {
    background:
        radial-gradient(50% 60% at 20% 50%, rgba(124, 108, 255, 0.10), transparent 70%),
        radial-gradient(50% 60% at 80% 50%, rgba(67, 196, 107, 0.08), transparent 70%);
}
.classes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.class-card {
    --accent: var(--mage);
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
}
.class-card--hunter { --accent: var(--hunter); }
.class-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent);
    z-index: 1;
}
.viewer {
    position: relative;
    height: 360px;
    cursor: grab;
    touch-action: pan-y;
    background:
        radial-gradient(45% 50% at 50% 62%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 72%),
        linear-gradient(180deg, #1f1a29, #15121c);
}
.viewer:active { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.viewer__loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    transition: opacity 0.4s;
}
.viewer.is-loaded .viewer__loader { opacity: 0; pointer-events: none; }
.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.class-card__body { padding: 24px 28px 28px; }
.class-card__name { display: flex; align-items: center; gap: 12px; font-size: 34px; margin-bottom: 12px; }
.class-card__body > p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips li {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.class-card__hint { font-size: 13px; color: var(--muted); opacity: 0.7; margin-top: 18px !important; }

.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gallery__nav { display: flex; gap: 10px; margin-bottom: 40px; }
.round-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--stone);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.round-btn:hover { background: var(--stone-2); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

.gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px max(16px, (100% - 1120px) / 2) 24px;
    scroll-padding-inline: max(16px, (100% - 1120px) / 2);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.shot { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.shot .phone { transition: transform 0.25s, box-shadow 0.25s; }
.shot .phone:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 197, 66, 0.4), 0 30px 50px rgba(0, 0, 0, 0.55); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }

.cta { padding: 40px 0 112px; }
.cta__inner {
    text-align: center;
    padding: 64px 24px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(255, 138, 61, 0.22), transparent 70%),
        var(--bg-2);
}
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta p { color: var(--muted); margin: 14px auto 0; max-width: 40em; text-wrap: balance; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer__links { display: flex; align-items: center; gap: 20px; }
.footer__links a { text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__links i { font-size: 20px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4) { transition-delay: 0.24s; }
.classes .reveal:nth-child(2) { transition-delay: 0.1s; }

@media (max-width: 960px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .nav__links { display: none; }
    .hero { padding-top: 88px; text-align: center; }
    .hero__inner { grid-template-columns: 1fr; gap: 28px; }
    .hero__lead { margin-inline: auto; margin-top: 14px; }
    .hero__actions { justify-content: center; margin-top: 24px; }
    .hero__art { width: min(200px, 52%); order: -1; }
    .hero__phone { right: -26%; bottom: -8%; }
    .kicker { margin-bottom: 10px; }
    .classes { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .features { grid-template-columns: 1fr; }
    .viewer { height: 300px; }
    .gallery__nav { display: none; }
    .shot { flex-basis: 62%; }
    .class-card__body { padding: 20px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__logo, .hero__phone, .hero__scroll { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
