@font-face { font-family: Sora; font-weight: 400; font-display: swap; src: url(fonts/sora-400.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 600; font-display: swap; src: url(fonts/sora-600.woff2) format('woff2'); }
@font-face { font-family: Sora; font-weight: 800; font-display: swap; src: url(fonts/sora-800.woff2) format('woff2'); }
@font-face { font-family: JBMono; font-weight: 500; font-display: swap; src: url(fonts/jbmono-500.woff2) format('woff2'); }

:root {
    --bg: #0a0c18; --bg2: #0f1326; --surface: #12162a; --surface2: #181d36; --border: #232a45;
    --text: #eaf6ff; --muted: #8fa3c0; --cyan: #00e5ff; --pink: #ff3dc8; --green: #2bf59a; --red: #ff5470;
    --grad: linear-gradient(90deg, var(--cyan), var(--pink));
    --r: 16px;
    /* Tebex legal footer colours, in case Tebex.js is added later */
    --tebex-legal-footer-background-color: var(--bg);
    --tebex-legal-footer-text-color: var(--muted);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Sora, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: JBMono, monospace; background: var(--surface2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(10, 12, 24, .92); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface); }
.basket-btn { display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 9px 14px; font: 600 .9rem Sora, sans-serif; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.basket-btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 229, 255, .25); }
.basket-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.basket-btn i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--grad); color: var(--bg); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.login-btn span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-btn.in { border-color: var(--cyan); }
.basket-btn i.zero { background: var(--surface2); color: var(--muted); }
.demo { background: linear-gradient(90deg, rgba(0, 229, 255, .14), rgba(255, 61, 200, .14)); border-bottom: 1px solid var(--border); text-align: center; padding: 8px 16px; font-size: .85rem; color: var(--text); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font: 700 .95rem Sora, sans-serif; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .15s, border-color .15s; }
.btn.primary { background: var(--grad); color: #071019; box-shadow: 0 0 24px rgba(0, 229, 255, .28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 61, 200, .35); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.wide { width: 100%; }
.x { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; width: 34px; height: 34px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.x.sm { width: 28px; height: 28px; font-size: 1.1rem; }
.x:hover { border-color: var(--red); color: var(--red); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; background:
    radial-gradient(50% 80% at 12% 15%, rgba(0, 229, 255, .22), transparent 60%),
    radial-gradient(45% 75% at 92% 90%, rgba(255, 61, 200, .22), transparent 60%),
    linear-gradient(135deg, #090b14, #0f1326 55%, #0a0c18); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 200, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-in { position: relative; padding: 96px 0 88px; max-width: 760px; margin-left: max(16px, calc((100% - 1180px) / 2)); }
.kicker { font-family: JBMono, monospace; letter-spacing: .28em; text-transform: uppercase; font-size: .75rem; color: #8fd8ff; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; margin: 14px 0 16px; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -36px; position: relative; }
.usp div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.usp b { display: block; margin-bottom: 4px; }
.usp span { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- sections */
.sec { font-size: 1.5rem; margin: 56px 0 20px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cat { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.cat div { position: relative; padding: 14px 18px 16px; background: var(--surface); }
.cat b { display: block; font-size: 1.2rem; }
.cat span { color: var(--muted); font-size: .85rem; }
.cat:hover img { transform: scale(1.04); }
.cat:hover { border-color: var(--cyan); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; color: var(--text); display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 10px 30px rgba(0, 229, 255, .12); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: .05em; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-family: JBMono, monospace; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.price { margin-top: auto; display: flex; gap: 8px; align-items: baseline; font-weight: 800; }
.price span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; }
.price.big { font-size: 1.8rem; margin: 6px 0 18px; }

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head.center { padding: 96px 0; }
.page-head.center .btn { margin-top: 20px; }
.crumb { display: inline-block; color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.crumb::before { content: '← '; }
.crumb:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- package page */
.pkg { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; padding-bottom: 24px; }
.gallery { position: sticky; top: 88px; }
.g-main { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: var(--bg2); }
.g-main img, .g-main video, .g-main iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.g-video { width: 100%; height: 100%; display: grid; place-content: center; gap: 8px; border: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(0, 229, 255, .15), transparent 75%), var(--bg2); color: var(--text); font: inherit; cursor: pointer; padding: 20px; text-align: center; }
.g-video b { font-size: 1.2rem; }
.g-video small { color: var(--muted); }
.g-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { flex: 0 0 96px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); padding: 0; background: var(--bg2); cursor: pointer; color: var(--text); }
.g-thumbs button.on { border-color: var(--cyan); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.buy h1 { font-size: 1.8rem; margin-top: 6px; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.facts li::before { content: '✓'; color: var(--green); margin-right: 8px; font-weight: 800; }
.rich { color: var(--text); }
.rich :is(p, ul, ol) { margin: 0 0 .9em; }
.rich ul { padding-left: 1.2em; }
.rich img { border-radius: 10px; margin: 10px 0; }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; max-width: 820px; padding-bottom: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 80px; border-top: 1px solid var(--border); background: var(--bg2); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 36px 0 20px; }
.foot-brand p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-links a { color: var(--muted); font-size: .9rem; }
.foot-links a:hover { color: var(--text); }
.legal { border-top: 1px solid var(--border); padding: 16px 0 28px; color: var(--muted); font-size: .78rem; }
.legal p { margin: 4px 0; }
.legal a { color: var(--muted); text-decoration: underline; }

/* ---------------------------------------------------------------- drawer / modal / toast */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(4, 6, 14, .7); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.drawer-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.item img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.item b { display: block; font-size: .92rem; }
.item span { color: var(--muted); font-size: .85rem; }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--border); font-size: 1.05rem; }
.sum b { font-size: 1.3rem; }
.empty { text-align: center; padding: 40px 0; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 14, .75); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; width: min(440px, 100%); }
.modal-box .x { position: absolute; top: 12px; right: 12px; }
.login-list { display: grid; gap: 10px; margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--surface2); border: 1px solid var(--cyan); color: var(--text); padding: 12px 18px; border-radius: 12px; z-index: 70; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red); }

.loading { display: flex; gap: 8px; justify-content: center; padding: 120px 0; }
.loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); animation: pulse 1s infinite ease-in-out; }
.loading i:nth-child(2) { animation-delay: .15s; background: #7f8cf0; }
.loading i:nth-child(3) { animation-delay: .3s; background: var(--pink); }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 860px) {
    .pkg { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .usp { grid-template-columns: 1fr; margin-top: 24px; }
    .hero-in { padding: 64px 0 56px; }
}
@media (max-width: 620px) {
    .top-in { gap: 10px; }
    .top .brand span { display: none; }
    .basket-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
