/* =========================================================
   Lumenix TRADING™ — 3D edition
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --gold: #D4AF37;
    --gold-light: #F3DC86;
    --gold-dark: #AA771C;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 26px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 76px;

    --z-canvas: 0;
    --z-content: 2;
    --z-header: 100;
    --z-menu: 110;
    --z-banner: 200;
    --z-toast: 300;
}

[data-theme="dark"] {
    --bg: #0B0B0C;
    --bg-2: #111114;
    --surface: rgba(26, 26, 31, 0.62);
    --surface-strong: rgba(22, 22, 26, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.32);
    --text: rgba(255, 255, 255, 0.84);
    --heading: #FFFFFF;
    --muted: rgba(255, 255, 255, 0.56);
    --accent: #D4AF37;
    --accent-hover: #E6C652;
    --on-accent: #0B0B0C;
    --grad-gold: linear-gradient(135deg, #F3DC86 0%, #D4AF37 42%, #AA771C 100%);
    --grad-text: linear-gradient(180deg, #FFF6D6 0%, #F3DC86 30%, #D4AF37 62%, #9C6E1A 100%);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
    --shadow-hover: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 175, 55, 0.25);
    --glow: 0 0 50px rgba(212, 175, 55, 0.22);
    --glare: rgba(255, 236, 170, 0.16);
    --hero-veil: linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.62) 42%, rgba(11, 11, 12, 0) 72%);
    --hero-veil-bottom: linear-gradient(180deg, rgba(11, 11, 12, 0) 60%, #0B0B0C 100%);
    --floor-line: rgba(212, 175, 55, 0.16);
    --error: #FF6B6B;
    --success: #3ECF8E;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #F8F6F0;
    --bg-2: #FFFFFF;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --border: rgba(20, 16, 6, 0.08);
    --border-gold: rgba(170, 119, 28, 0.32);
    --text: rgba(22, 20, 16, 0.82);
    --heading: #0B0B0C;
    --muted: rgba(22, 20, 16, 0.58);
    --accent: #AA771C;
    --accent-hover: #8A6216;
    --on-accent: #FFFFFF;
    --grad-gold: linear-gradient(135deg, #D9B456 0%, #AA771C 55%, #7D5512 100%);
    --grad-text: linear-gradient(180deg, #C9A13A 0%, #AA771C 55%, #6E4A0F 100%);
    --shadow: 0 30px 60px -32px rgba(80, 60, 15, 0.35);
    --shadow-hover: 0 40px 80px -30px rgba(80, 60, 15, 0.42), 0 0 0 1px rgba(170, 119, 28, 0.28);
    --glow: 0 0 50px rgba(170, 119, 28, 0.16);
    --glare: rgba(255, 255, 255, 0.55);
    --hero-veil: linear-gradient(90deg, rgba(248, 246, 240, 0.96) 0%, rgba(248, 246, 240, 0.66) 42%, rgba(248, 246, 240, 0) 72%);
    --hero-veil-bottom: linear-gradient(180deg, rgba(248, 246, 240, 0) 60%, #F8F6F0 100%);
    --floor-line: rgba(170, 119, 28, 0.18);
    --error: #D64545;
    --success: #1F9D63;
    color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--heading);
    line-height: 1.2;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
    color: var(--on-accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-y: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: translateY(var(--btn-y));
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
}

.btn:hover::before {
    transform: translateX(120%);
}

.btn:hover {
    --btn-y: -3px;
}

.btn:active {
    --btn-y: 0px;
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--on-accent);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
    color: var(--on-accent);
    box-shadow: 0 18px 40px -12px rgba(212, 175, 55, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--heading);
    border-color: var(--border-gold);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    color: var(--heading);
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: var(--glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
    --btn-y: 0px;
}

.btn.is-loading .fa-paper-plane {
    animation: plane 0.9s ease-in-out infinite;
}

@keyframes plane {
    50% {
        transform: translate(4px, -4px);
    }
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-header);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: transform 0.45s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--surface-strong);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.5);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.logo:hover {
    color: var(--heading);
}

.logo img {
    width: 40px;
    height: 40px;
    transition: transform 0.6s var(--ease);
}

.logo:hover img {
    transform: perspective(200px) rotateY(180deg);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-list a {
    position: relative;
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-gold);
    transform: translateX(-50%);
    transition: width 0.35s var(--ease);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--heading);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 22px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--accent);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.5s var(--ease), border-color 0.25s ease;
}

.theme-toggle:hover {
    border-color: var(--border-gold);
    transform: rotate(-25deg);
}

.lang-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    width: 76px;
    height: 38px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

.lang-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: var(--grad-gold);
    box-shadow: 0 4px 14px -4px rgba(212, 175, 55, 0.7);
    transition: transform 0.4s var(--ease);
}

.lang-toggle[data-active="uz"]::before {
    transform: translateX(100%);
}

.lang-toggle span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s ease;
}

.lang-toggle span.active {
    color: var(--on-accent);
}

.burger-menu {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.burger-menu span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--heading);
    transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (3D) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 110px;
    overflow: hidden;
    isolation: isolate;
}

/* Page-wide 3D scene. z-index -1 paints it above the body background
   but below every section, so sections must keep transparent backgrounds */
.scene-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.scene-canvas.ready {
    opacity: 1;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: var(--z-canvas);
    display: none;
    background: url('../images/hero-bg.jpg') center / cover no-repeat;
}

.no-webgl .hero-fallback {
    display: block;
}

.no-webgl .scene-canvas,
.no-webgl .globe-stage {
    display: none;
}

/* Side veil only: the scene continues below the hero, so no fade to solid */
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--hero-veil);
}

.no-webgl .hero-veil {
    background: var(--hero-veil-bottom), var(--hero-veil);
}

.hero-inner {
    position: relative;
    z-index: var(--z-content);
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.hero-content {
    max-width: 620px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(3rem, 8vw, 6.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.hero-title-main {
    color: var(--heading);
    text-shadow:
        0 1px 0 rgba(212, 175, 55, 0.35),
        0 2px 0 rgba(212, 175, 55, 0.25),
        0 3px 0 rgba(170, 119, 28, 0.2),
        0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.3));
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 36px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
}

/* ---------- 3D tilt cards (shared) ---------- */
[data-tilt] {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    --lift: 0px;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-ready[data-tilt] {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--lift));
}

.tilt-ready[data-tilt].tilting {
    --lift: 10px;
}

.tilt-ready[data-tilt]:not(.tilting) {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
}

.tilt-ready[data-tilt].tilting {
    transition: opacity 0.9s var(--ease), transform 0.12s linear, box-shadow 0.4s ease, border-color 0.4s ease;
}

.tilt-ready .tilt-layer {
    transform: translateZ(50px);
}

.tilt-ready .tilt-layer-sm {
    transform: translateZ(26px);
}

.glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--gx) var(--gy), var(--glare), transparent 55%);
    transition: opacity 0.4s ease;
}

.tilting .glare {
    opacity: 1;
}

.badge,
.value-card,
.service-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--shadow);
}

.badge:hover,
.value-card:hover,
.service-card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-hover);
}

.badge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
}

.badge h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.badge p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.badge-icon,
.value-icon,
.service-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--on-accent);
    background: var(--grad-gold);
    box-shadow:
        0 12px 24px -10px rgba(212, 175, 55, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.badge-icon {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: var(--z-content);
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-gold);
    border-radius: 14px;
    transform: translateX(-50%);
}

.scroll-indicator span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 14px);
    }
}

/* ---------- Sections ---------- */
.section {
    position: relative;
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 16px;
    border-radius: 3px;
    background: var(--grad-gold);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 640px;
}

.section-description.center {
    text-align: center;
    margin: 0 auto 64px;
}

/* Reveal with 3D entrance */
.reveal {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 50px, -60px) rotateX(16deg);
    transform-origin: 50% 100%;
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal.tilt-ready[data-tilt]:not(.is-visible) {
    transform: perspective(1200px) translate3d(0, 50px, -60px) rotateX(16deg);
}

/* Once revealed, tilt cards take over the transform */
.reveal.is-visible.tilt-ready[data-tilt] {
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--lift));
}

/* ---------- About ---------- */
.about {
    background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 175, 55, 0.08), transparent 70%);
}

.about-head {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 48px;
    margin-bottom: 72px;
}

.coin-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: 300px;
    perspective: 900px;
}

.coin {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: coin-spin 9s linear infinite;
}

.coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 40%),
        conic-gradient(from 210deg, #F3DC86, #AA771C, #D4AF37, #7D5512, #F3DC86);
    box-shadow:
        inset 0 0 0 8px rgba(125, 85, 18, 0.55),
        inset 0 0 0 10px rgba(255, 236, 170, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.coin-face img {
    width: 58%;
    height: 58%;
    padding: 10px;
    border-radius: 50%;
    background: #0B0B0C;
    box-shadow: 0 0 0 3px rgba(255, 236, 170, 0.6);
}

.coin-front {
    transform: translateZ(7px);
}

.coin-back {
    transform: rotateY(180deg) translateZ(7px);
}

/* coin edge made of stacked rings */
.coin::before,
.coin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, #7D5512, #D4AF37, #7D5512);
}

.coin::before {
    transform: translateZ(3px);
}

.coin::after {
    transform: translateZ(-3px);
}

.coin-shadow {
    position: absolute;
    bottom: 18px;
    width: 160px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
    animation: coin-shadow 4.5s ease-in-out infinite;
}

@keyframes coin-spin {
    0% {
        transform: translateY(-8px) rotateX(10deg) rotateY(0deg);
    }

    50% {
        transform: translateY(8px) rotateX(10deg) rotateY(180deg);
    }

    100% {
        transform: translateY(-8px) rotateX(10deg) rotateY(360deg);
    }
}

@keyframes coin-shadow {
    50% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.value-card {
    padding: 36px 30px;
}

.value-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 26px;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--muted);
}

/* ---------- Services ---------- */
/* The page scene's 3D floor grid shows through here */
.services {
    overflow: hidden;
}

.services .container {
    position: relative;
    z-index: var(--z-content);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.service-card {
    flex: 0 1 calc((100% - 48px) / 3);
    display: flex;
    flex-direction: column;
    padding: 34px 30px 28px;
}

.service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 22px;
}

.service-link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact {
    background: radial-gradient(ellipse 50% 60% at 10% 80%, rgba(212, 175, 55, 0.08), transparent 70%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-form,
.contact-info {
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(127, 127, 127, 0.06);
    color: var(--heading);
    font: inherit;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

/* Off-screen rather than display:none, which some bots skip */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error-message {
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    font-size: 0.84rem;
    color: var(--error);
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.error-message.show {
    max-height: 40px;
    margin-top: 6px;
    opacity: 1;
}

.contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    word-break: break-word;
    transition: transform 0.35s var(--ease), border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.social-link:hover {
    color: var(--heading);
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(6px);
}

.social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1.15rem;
    color: var(--on-accent);
    background: var(--grad-gold);
}

/* ---------- Live ticker band ---------- */
.live-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: live-ping 1.6s ease-out infinite;
}

@keyframes live-ping {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

.ticker-band {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 74px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    padding: 0 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    border-right: 1px solid var(--border);
    background: rgba(212, 175, 55, 0.06);
}

.ticker-widget {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* An iframe stays transparent only when its color-scheme matches the page inside it */
.tradingview-widget-container iframe {
    color-scheme: normal;
}

/* ---------- Live market ---------- */
.market {
    overflow: hidden;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);
}

/* ---------- Session globe ---------- */
.globe-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 32px;
    margin-bottom: 56px;
}

.globe-copy h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading);
    margin-bottom: 14px;
}

.globe-copy p {
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 24px;
}

.globe-legend {
    list-style: none;
    display: grid;
    gap: 12px;
    font-size: 0.92rem;
}

.globe-legend li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-swatch {
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-day {
    background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
}

.legend-open {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), 0 0 14px var(--accent);
}

.legend-arc {
    height: 3px;
    width: 22px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* Empty box: the globe is rendered by the fixed page canvas behind it */
.globe-anchor {
    aspect-ratio: 1;
    width: 100%;
    max-width: 540px;
    justify-self: center;
}

.market .container {
    position: relative;
    z-index: var(--z-content);
}

.price-trace {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 220px;
    pointer-events: none;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.price-trace-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: trace-draw 9s linear infinite;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

@keyframes trace-draw {
    0% {
        stroke-dashoffset: 2400;
    }

    70%,
    100% {
        stroke-dashoffset: 0;
    }
}

.price-trace-dot {
    fill: var(--gold-light);
    filter: drop-shadow(0 0 8px var(--gold));
}

.market-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    width: fit-content;
    max-width: 100%;
    margin: -24px auto 40px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-gold);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--heading);
}

.market-status.is-closed .live-dot {
    background: var(--error);
}

.market-overlap {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--grad-gold);
    color: var(--on-accent);
    font-size: 0.8rem;
    font-weight: 600;
    animation: overlap-glow 2.4s ease-in-out infinite;
}

@keyframes overlap-glow {
    50% {
        box-shadow: 0 0 22px rgba(212, 175, 55, 0.6);
    }
}

.market-local {
    color: var(--muted);
}

.market-local strong {
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.session-card {
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--shadow);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.session-card.is-open {
    border-color: var(--border-gold);
    box-shadow: var(--shadow), inset 0 0 40px rgba(212, 175, 55, 0.07);
}

.session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.session-city {
    font-weight: 600;
    color: var(--heading);
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border: 1px solid var(--border);
}

.session-status .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.is-open .session-status {
    color: var(--success);
    border-color: rgba(62, 207, 142, 0.35);
}

.is-open .session-status .pulse {
    background: var(--success);
    animation: live-ping-soft 1.4s ease-in-out infinite;
}

@keyframes live-ping-soft {
    50% {
        box-shadow: 0 0 0 5px rgba(62, 207, 142, 0.15);
    }
}

.session-clock {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.is-open .session-clock {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.session-hours {
    margin: 4px 0 16px;
    font-size: 0.82rem;
    color: var(--muted);
}

.session-bar {
    position: relative;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.15);
    margin-bottom: 12px;
}

.session-bar span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s linear;
}

.is-open .session-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: bar-shine 2.2s ease-in-out infinite;
}

@keyframes bar-shine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.session-countdown {
    font-size: 0.85rem;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* 24h timeline */
.session-timeline {
    border-radius: var(--radius-lg);
    padding: 28px 30px 22px;
    margin-bottom: 28px;
}

.timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 20px;
}

.timeline-head h3 {
    font-size: 1.15rem;
}

.timeline-note {
    font-size: 0.82rem;
    color: var(--muted);
}

.timeline-body {
    --label-w: 92px;
}

.timeline-rows {
    position: relative;
    display: grid;
    gap: 12px;
}

.timeline-row {
    display: grid;
    grid-template-columns: var(--label-w) 1fr;
    align-items: center;
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.timeline-track {
    position: relative;
    height: 22px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg, rgba(127, 127, 127, 0.14) 0 1px, transparent 1px calc(100% / 24)),
        rgba(127, 127, 127, 0.07);
}

.timeline-bar {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 6px;
    background: var(--grad-gold);
    opacity: 0.85;
    box-shadow: 0 4px 14px -4px rgba(212, 175, 55, 0.6);
}

.timeline-row[data-session="sydney"] .timeline-bar,
.timeline-row[data-session="tokyo"] .timeline-bar {
    opacity: 0.55;
}

.timeline-needle {
    --pos: 0;
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: calc(var(--label-w) + (100% - var(--label-w)) * var(--pos));
    width: 2px;
    border-radius: 2px;
    background: var(--heading);
    box-shadow: 0 0 12px var(--accent);
    transition: left 1s linear;
}

.timeline-needle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.timeline-scale {
    display: flex;
    justify-content: space-between;
    margin: 12px 0 0 var(--label-w);
    font-size: 0.72rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* Economic calendar */
.calendar-card {
    border-radius: var(--radius-lg);
    padding: 28px 30px 18px;
}

.calendar-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.calendar-head h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.calendar-head p {
    font-size: 0.88rem;
    color: var(--muted);
}

.calendar-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.2rem;
    color: var(--on-accent);
    background: var(--grad-gold);
    box-shadow: 0 12px 24px -10px rgba(212, 175, 55, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.calendar-widget {
    position: relative;
    height: 560px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* TradingView sets height:100% inline on its container, so the fixed height lives on this wrapper */
.calendar-widget .tradingview-widget-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.widget-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.is-loaded > .widget-loading,
.is-blocked > .widget-loading {
    display: none;
}

/* Shown in place of TradingView until cookies are allowed */
.tv-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    height: 100%;
    padding: 12px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.tv-consent p {
    max-width: 520px;
}

.calendar-widget .tv-consent {
    flex-direction: column;
}

.widget-loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: loading-dot 1.2s ease-in-out infinite;
}

.widget-loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.widget-loading span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes loading-dot {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.tv-attribution {
    margin-top: 10px;
    text-align: right;
    font-size: 0.75rem;
}

.tv-attribution a {
    color: var(--muted);
}

.tv-attribution a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .sessions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .globe-stage {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .globe-anchor {
        order: -1;
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .sessions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .session-card {
        padding: 18px 14px;
    }

    .session-clock {
        font-size: 1.35rem;
    }

    .session-status {
        padding: 2px 7px;
        font-size: 0.62rem;
    }

    .session-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-timeline,
    .calendar-card {
        padding: 20px 16px;
    }

    .timeline-body {
        --label-w: 70px;
    }

    .calendar-widget {
        height: 480px;
    }

    .market-status {
        border-radius: var(--radius);
        margin-top: -16px;
    }

    .ticker-label {
        padding: 0 12px;
    }
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    padding: 72px 0 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}

[data-theme="dark"] .footer {
    background: #08080A;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    width: min(600px, 80%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 14px;
    color: var(--muted);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer h4 {
    margin-bottom: 16px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-nav a {
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--heading);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    transition: transform 0.4s var(--ease), color 0.25s ease, border-color 0.25s ease;
}

.social-icons a:hover {
    color: var(--accent);
    border-color: var(--border-gold);
    transform: perspective(300px) translateY(-4px) rotateX(15deg);
}

.footer-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.theme-switcher,
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.theme-option,
.lang-option {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-option:hover,
.lang-option:hover {
    border-color: var(--border-gold);
}

.theme-option.active,
.lang-option.active {
    background: var(--grad-gold);
    border-color: transparent;
    color: var(--on-accent);
}

.footer-disclaimer {
    padding: 24px 0;
}

.footer-disclaimer h4 {
    margin-bottom: 8px;
}

.footer-disclaimer p {
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 860px;
}

.footer-copyright {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-compact {
    padding: 28px 0;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: var(--z-toast);
    max-width: min(92vw, 420px);
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid var(--border-gold);
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    color: var(--heading);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 30px) perspective(600px) rotateX(-30deg);
    transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0) perspective(600px) rotateX(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

/* ---------- Cookie banner ---------- */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: var(--z-banner);
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border-gold);
    background: var(--surface-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.6s var(--ease), opacity 0.4s ease, visibility 0s linear 0.6s;
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.6s var(--ease), opacity 0.4s ease, visibility 0s;
}

.cookie-consent-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent-content p {
    flex: 1 1 360px;
    font-size: 0.92rem;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookie-policy-link {
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0 6px;
}

/* ---------- Cookie policy page ---------- */
.policy-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.policy-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212, 175, 55, 0.1), transparent 70%);
}

.policy-main {
    flex: 1;
    padding: calc(var(--header-h) + 48px) 0 40px;
}

.policy-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px;
    border-radius: var(--radius-lg);
}

.policy-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 36px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.policy-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.policy-section p {
    margin-bottom: 8px;
}

.policy-section ul {
    padding-left: 22px;
}

.policy-section li {
    margin-bottom: 6px;
}

.policy-section li::marker {
    color: var(--accent);
}

.policy-back {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .service-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .about-head {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .coin-stage {
        height: 260px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 68px;
    }

    .burger-menu {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        z-index: var(--z-menu);
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        padding: 32px 24px;
        background: var(--bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transform: perspective(900px) rotateX(-12deg) translateY(-20px);
        transform-origin: top center;
        transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0s linear 0.5s;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0s;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .nav-list a {
        font-size: 1.4rem;
        font-weight: 600;
        padding: 14px 8px;
        border-radius: 12px;
    }

    .nav-list a::after {
        left: 8px;
        transform: none;
    }

    /* 3D stage on top, content below it */
    .hero {
        align-items: flex-end;
        padding-top: calc(var(--header-h) + 30vh);
    }

    .hero-canvas {
        height: 64%;
    }

    .hero-veil {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 28%, var(--bg) 62%);
    }

    .hero-badges {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .hero-inner {
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 88px 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .logo span {
        font-size: 1rem;
    }

    .service-card {
        flex-basis: 100%;
    }

    .contact-form,
    .contact-info,
    .policy-content {
        padding: 26px 20px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-buttons .btn {
        flex: 1;
    }

    .coin {
        width: 170px;
        height: 170px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 380px) {
    .logo span {
        display: none;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
