/* ============================================================
   LEVELZ ENERGY - BRAND PORTAL
   Global Stylesheet
   ============================================================ */

/* --- CUSTOM FONTS --- */
@font-face {
    font-family: 'Liquorstore Jazz';
    src: url('/media/LiquorstoreJazz.woff2?v=3') format('woff2'),
         url('/media/LiquorstoreJazz%20Regular.ttf?v=3') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- VARIABLES --- */
:root {
    --black: #0A0A0A;
    --dark: #111111;
    --dark-grey: #1A1A1A;
    --border: #2E2E2E;
    --border-hover: #484848;
    --text-muted: #6B6B6B;
    --text-secondary: #A0A0A0;
    --text-primary: #E0E0E0;
    --white: #FFFFFF;
    --brand-purple: #6633fb;
    --brand-purple-dim: rgba(102,51,251,.12);
    --brand-pink: #ff158e;
    --brand-orange: #f27729;
    --brand-yellow: #fca41b;
    --fruit-pink: #e6246a;
    --fruit-orange: #f18b1c;
    --fruit-yellow: #ffd74b;
    --fruit-purple: #561e8e;
    --fruit-red: #ed1e36;
    --font-heading: 'Liquorstore Jazz', 'Outfit', sans-serif;
    --heading-transform: uppercase;
    --font-body: 'DM Sans', sans-serif;
    --max-width: 1120px;
    --section-pad: 120px;
    --radius: 10px;
    --radius-sm: 6px;
}

/* --- HEADING UPPERCASE --- */
.section-title, .hero h1, .page-hero h1, .sub-title, .gate-box h2,
.legal-block h3, .asset-cat-title, .logo-card-label, .showcase-name,
.type-display, .asset-name, .colour-name, .rule-title {
    text-transform: uppercase;
}

/* --- REGISTERED MARK --- */
.reg-mark {
    font-family: var(--font-body);
    font-size: 0.35em;
    vertical-align: super;
    line-height: 1;
    opacity: 0.7;
    margin-left: 2px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: url('https://levelzenergy.co.uk/wp-content/uploads/2025/11/Background-1920x1080-1.png') center center / cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}
body > * {
    position: relative;
    z-index: 1;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-purple); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
::selection { background: var(--brand-purple); color: var(--white); }

/* --- LAYOUT --- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--section-pad) 0; }
.divider { width: 100%; height: 1px; background: var(--border); }

/* --- NAVIGATION --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 10, .45);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-brand {
    font-family: var(--font-heading); font-weight: 700; font-size: 14px;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--white);
    display: flex; align-items: center; gap: 8px;
}
.nav-brand span { color: var(--brand-purple); font-size: 18px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    font-family: var(--font-heading); font-size: 12px; font-weight: 500;
    letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted);
    transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--white); margin: 4px 0; transition: .2s; }

/* --- SECTION HEADINGS --- */
.section-tag {
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    letter-spacing: 3.5px; text-transform: uppercase; color: var(--brand-purple); margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(26px, 3.8vw, 44px);
    font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--text-secondary); max-width: 540px; line-height: 1.7; }
.section-header { margin-bottom: 56px; }
.sub-title {
    font-family: var(--font-heading); font-size: 20px; font-weight: 600;
    color: var(--white); margin: 48px 0 20px;
}

/* --- CARDS --- */
.card {
    background: var(--dark-grey); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-body { padding: 24px; }

/* --- INFO NOTE --- */
.info-note {
    padding: 20px 24px; background: var(--dark-grey); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 16px; color: var(--text-secondary); line-height: 1.7;
}
.info-note strong { color: var(--white); }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 13px 26px; border-radius: var(--radius-sm); border: none;
    cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-primary { background: var(--brand-purple); color: var(--white); }
.btn-primary:hover { background: #5522dd; opacity: 1; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--brand-purple); border: 1px solid var(--brand-purple); }
.btn-outline:hover { background: var(--brand-purple-dim); opacity: 1; }
.btn-ghost {
    background: transparent; color: var(--brand-purple); padding: 0;
    font-size: 13px; letter-spacing: 2px;
}
.btn-ghost:hover { opacity: .7; }
.btn-ghost svg { width: 16px; height: 16px; }

/* --- ICON BADGES --- */
.icon-badge {
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 16px;
}
.icon-badge.green { background: var(--brand-purple-dim); color: var(--brand-purple); }
.icon-badge.red { background: rgba(255,21,142,.1); color: var(--brand-pink); }

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* --- HERO (shared structure) --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 60px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(102,51,251,.05) 0%, transparent 70%);
    transform: translate(-50%, -50%); pointer-events: none;
}
.hero-label {
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase; color: var(--brand-purple); margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(32px, 5.5vw, 64px);
    font-weight: 700; line-height: 1.08; color: var(--white); margin-bottom: 20px;
}
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 36px; line-height: 1.7; }

/* Page hero (smaller, for sub-pages) */
.page-hero {
    padding: 140px 0 80px; text-align: center;
}
.page-hero .hero-label { margin-bottom: 16px; }
.page-hero h1 {
    font-family: var(--font-heading); font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 700; line-height: 1.08; color: var(--white); margin-bottom: 16px;
}
.page-hero p { font-size: 17px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* --- FOOTER --- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col h4 {
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-legal { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-legal a { color: var(--text-muted); }
.footer-reg { font-size: 12px; color: #444; line-height: 1.6; margin-top: 8px; }

/* --- LOGO CARDS --- */
.logo-card-preview {
    aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; padding: 36px;
}
.logo-card-preview img { max-width: 180px; max-height: 80px; width: auto; height: auto; }
.logo-text {
    font-family: var(--font-heading); font-weight: 700; font-size: 26px;
    letter-spacing: 5px; text-transform: uppercase;
}
.logo-card-info { padding: 14px 18px; background: var(--dark-grey); border-top: 1px solid var(--border); }
.logo-card-label {
    font-family: var(--font-heading); font-size: 14px; font-weight: 600;
    letter-spacing: .5px; color: var(--text-primary);
}
.logo-card-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.bg-dark { background: var(--dark); }
.bg-white { background: var(--white) !important; }
.bg-purple { background: var(--brand-purple); }

/* --- COLOUR SWATCHES --- */
.colour-card { cursor: pointer; }
.colour-swatch { height: 88px; }
.colour-info { padding: 12px 14px; background: var(--dark-grey); }
.colour-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.colour-hex { font-family: var(--font-heading); font-size: 13px; color: var(--text-muted); letter-spacing: .5px; }
.colour-copied { font-size: 12px; color: var(--brand-purple); opacity: 0; transition: opacity .2s; margin-top: 3px; }
.colour-card.copied .colour-copied { opacity: 1; }

/* --- TYPE SPECIMEN --- */
.type-specimen { background: var(--dark-grey); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-bottom: 20px; }
.type-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.type-font-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-purple); }
.type-font-use { font-size: 13px; color: var(--text-muted); padding: 3px 8px; background: var(--dark); border-radius: 3px; }
.type-display { font-family: var(--font-heading); font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; line-height: 1.1; color: var(--white); }
.type-body-display { font-family: var(--font-body); font-size: 17px; color: var(--text-secondary); line-height: 1.7; max-width: 560px; }
.type-scale { display: grid; grid-template-columns: 80px 1fr; margin-top: 40px; }
.type-scale-row { display: contents; }
.type-scale-row > * { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; }
.type-scale-label { font-family: var(--font-heading); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }

/* --- ASSET CARDS --- */
.asset-cat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.asset-cat-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--white); }
.asset-cat-count { font-size: 13px; color: var(--text-muted); padding: 3px 8px; background: var(--dark); border-radius: 3px; }
.asset-preview {
    aspect-ratio: 4/3; background: var(--dark); display: flex; align-items: center;
    justify-content: center; padding: 20px; position: relative; overflow: hidden;
}
.asset-preview img { max-width: 140px; max-height: 70px; width: auto; height: auto; }
.asset-format-badge {
    position: absolute; top: 8px; right: 8px;
    font-family: var(--font-heading); font-size: 11px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px;
    background: rgba(0,0,0,.55); color: var(--text-secondary); border-radius: 3px;
}
.asset-info { padding: 12px 14px; }
.asset-name { font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 6px; }

/* --- BULK DOWNLOAD BAR --- */
.bulk-bar {
    margin-top: 28px; padding: 20px 28px; background: var(--dark-grey);
    border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.bulk-bar p { font-size: 16px; color: var(--text-secondary); }
.bulk-bar strong { color: var(--white); }

/* --- VOICE / TONE CARDS --- */
.voice-tag { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.voice-tag.yes { color: var(--brand-purple); }
.voice-tag.no { color: var(--brand-pink); }
.voice-example { font-size: 16px; color: var(--text-primary); line-height: 1.7; font-style: italic; margin-bottom: 10px; padding-left: 14px; border-left: 2px solid var(--border); }
.voice-note { font-size: 14px; color: var(--text-muted); }

/* --- CLEARSPACE --- */
.clearspace-block {
    background: var(--dark-grey); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 56px; display: flex; align-items: center; justify-content: center;
}
.clearspace-inner { border: 1px dashed rgba(102,51,251,.25); padding: 36px 48px; position: relative; }
.clearspace-label {
    position: absolute; font-family: var(--font-heading); font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; color: var(--brand-purple);
}
.clearspace-label.top { top: -18px; left: 50%; transform: translateX(-50%); }
.clearspace-label.left { left: -56px; top: 50%; transform: translateY(-50%) rotate(-90deg); }

/* --- RULES GRID --- */
.rule-card { padding: 28px 22px; }
.rule-title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.rule-text { font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.rule-card img.rule-img { max-width: 50%; height: auto; margin-bottom: 12px; opacity: .7; border-radius: 4px; }

/* --- PARTNER SHOWCASE --- */
.showcase-card .showcase-img {
    aspect-ratio: 9/16; background: var(--dark); display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.showcase-card .showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-meta { padding: 16px 18px; }
.showcase-name { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.showcase-platform { font-size: 14px; color: var(--brand-purple); margin-bottom: 6px; }
.showcase-desc { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* --- LEGAL --- */
.legal-block { margin-bottom: 40px; }
.legal-block h3 {
    font-family: var(--font-heading); font-size: 18px; font-weight: 600;
    color: var(--white); margin-bottom: 12px;
}
.legal-block p, .legal-block li {
    font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px;
}
.legal-block ul { list-style: none; padding-left: 0; }
.legal-block ul li::before { content: '·'; color: var(--brand-purple); margin-right: 8px; font-weight: 700; }

/* Credential strip */
.credentials {
    display: flex; flex-wrap: wrap; gap: 20px; padding: 28px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin: 40px 0;
}
.credential-item {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary);
}
.credential-item .cred-icon {
    width: 36px; height: 36px; border-radius: 8px; background: var(--dark-grey);
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: center; font-size: 16px;
}

/* --- ACCEPTANCE GATE --- */
.gate-overlay {
    position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-overlay.hidden { display: none; }
.gate-box {
    background: var(--dark-grey); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; max-width: 520px; width: 100%; text-align: center;
}
.gate-box h2 {
    font-family: var(--font-heading); font-size: 22px; font-weight: 700;
    color: var(--white); margin-bottom: 12px;
}
.gate-box p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.gate-box .terms-scroll {
    text-align: left; max-height: 200px; overflow-y: auto; padding: 16px;
    background: var(--black); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px;
}
.gate-box .terms-scroll::-webkit-scrollbar { width: 4px; }
.gate-box .terms-scroll::-webkit-scrollbar-track { background: var(--dark); }
.gate-box .terms-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.gate-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; text-align: left; }
.gate-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--brand-purple); }
.gate-check label { font-size: 15px; color: var(--text-secondary); cursor: pointer; }

/* --- PANDA DIVIDER --- */
.panda-divider {
    position: relative;
    width: 100%;
    height: 64px;
    overflow: hidden;
}
.panda-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.panda-runner {
    position: absolute;
    bottom: 0;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    animation: pandaRun 8s linear infinite;
}
@keyframes pandaRun {
    0%   { left: -64px; }
    100% { left: calc(100% + 64px); }
}

@media (max-width: 768px) {
    .panda-runner { animation-duration: 4s; }
}
@media (max-width: 480px) {
    .panda-runner { animation-duration: 3s; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    :root { --section-pad: 96px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    :root { --section-pad: 64px; }
    .wrap { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: fixed; top: 60px;
        left: 0; right: 0; background: rgba(10,10,10,.97);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        padding: 20px 28px; gap: 16px; border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .type-specimen { padding: 28px 20px; }
    .clearspace-block { padding: 28px; }
    .clearspace-inner { padding: 24px 32px; }
    .clearspace-label.left { display: none; }
    .footer-top { flex-direction: column; gap: 28px; }
    .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 480px) {
    :root { --section-pad: 48px; }
    .section-header { margin-bottom: 36px; }
    .grid-auto { grid-template-columns: 1fr; }
    .bulk-bar { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .credentials { flex-direction: column; }
}
