/* =============================================
   VERTEXDMA — Global Stylesheet
   Dark Crimson — Premium E-Commerce
   ============================================= */

/* ---- Poppins (self-hosted display font) ---- */
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-Light.ttf')     format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-Regular.ttf')   format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-Medium.ttf')    format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-SemiBold.ttf')  format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-Bold.ttf')      format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('images/fonts/Poppins-Black.ttf')     format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---- Mending (display serif) — solo per il wordmark del logo ---- */
@font-face { font-family: 'Mending'; src: url('images/fonts/Mending.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
    /* Core backgrounds — dark charcoal-grey.
       Page (primary) lighter than header/footer so they stand apart. */
    --bg-primary: #1c1c1c;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #242424;
    --bg-card: #272727;
    --bg-card-hover: #303030;
    --bg-card-gradient: linear-gradient(135deg, #2c2c2c 0%, #202020 100%);
    --bg-card-gradient-hover: linear-gradient(135deg, #353535 0%, #262626 100%);

    /* Text — clean contrast hierarchy */
    --text-primary: #F2F2F2;
    --text-secondary: #969696;
    --text-dim: #48384A;

    /* Crimson accent family */
    --accent-violet: #FF0054;
    --accent-bright: #FF3377;
    --accent-violet-dim: rgba(255, 0, 84, 0.12);
    --accent-violet-glow: rgba(255, 0, 84, 0.35);
    /* Legacy aliases */
    --accent-cyan: #FF0054;
    --accent-cyan-dim: rgba(255, 0, 84, 0.12);
    --accent-cyan-glow: rgba(255, 0, 84, 0.35);
    --accent-gold: #D4A506;

    /* Crimson gradient */
    --gradient-main: #FF0054;
    --gradient-text: var(--accent-violet);
    --gradient-card-border: rgba(255, 0, 84, 0.18);

    --glass-bg: rgba(10, 2, 8, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);

    /* Typography */
    --font-display: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --header-height: 116px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 180ms var(--ease-out-expo);
    --transition-base: 350ms var(--ease-out-expo);
    --transition-slow: 700ms var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

/* ---- Utility ---- */
.text-gradient,
.title-gradient {
    color: var(--accent-violet);
    background: none;
    -webkit-text-fill-color: unset;
}

/* Ensure page content renders above the fixed particle canvas */
.shop-page main,
.about-page main,
.contact-page main {
    position: relative;
    z-index: 1;
}

/* ---- Selection ---- */
::selection {
    background: var(--accent-violet-dim);
    color: var(--text-primary);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 84,0.45);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-violet);
}


/* =============================================
   HEADER
   ============================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    overflow: visible;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(8, 8, 10, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--transition-base), border-color var(--transition-base);
}

#main-header.scrolled {
    background: rgba(6, 6, 8, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 10;
}

.logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    /* Fluid size: scales with viewport but never overflows the header */
    height: clamp(34px, 3.8vw, 52px);
    max-height: calc(var(--header-height) - 12px);
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-violet);
}

/* Nav */
#main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-main);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Cart */
.cart-btn {
    position: relative;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 8px;
}

.cart-btn:hover {
    color: var(--accent-violet);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-violet);
    color: white;
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.cart-count.visible {
    opacity: 1;
    transform: scale(1);
}


/* =============================================
   HERO SECTION
   ============================================= */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Decorative radial orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 0, 84, 0.09) 0%, transparent 70%);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 84, 0.05) 0%, transparent 70%);
    bottom: 80px;
    right: 10%;
    z-index: 0;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    padding-top: var(--header-height);
    padding-bottom: 120px;
    width: 100%;
}

.hero-text-block {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--accent-violet);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    text-transform: uppercase;
    display: block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 10vw, 124px);
    font-weight: 800;
    line-height: 0.93;
    margin-bottom: 40px;
    letter-spacing: -4px;
}

.title-line {
    display: block;
}

.title-gradient {
    color: var(--accent-violet);
}

.title-dim {
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.38em;
    font-family: var(--font-body);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: normal;
    display: block;
    margin-top: 16px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    color: rgba(160, 155, 165, 1);
    max-width: 500px;
    margin: 0 auto 52px;
    opacity: 0;
    transform: translateY(20px);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    background: var(--accent-violet);
    border-radius: 100px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-fast);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(255, 0, 84, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    background: #e0004a;
    box-shadow: 0 8px 32px rgba(255, 0, 84, 0.45);
}

.cta-primary:active {
    transform: translateY(0);
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 600ms var(--ease-out-expo);
    z-index: -1;
}

.cta-primary:hover .cta-glow {
    left: 100%;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    padding: 16px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: color var(--transition-fast), border-color var(--transition-fast), gap var(--transition-fast);
}

.cta-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    gap: 12px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: var(--accent-violet);
    opacity: 0.5;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; height: 36px; }
    50% { opacity: 0.8; height: 48px; }
}


/* =============================================
   STATS BAR
   ============================================= */
#stats-bar {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 0, 84,0.12);
    border-bottom: 1px solid rgba(255, 0, 84,0.12);
    padding: 56px 0;
    z-index: 5;
    overflow: hidden;
}

.stats-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stat-value, .stat-value-text {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    display: block;
    line-height: 1;
    color: var(--text-primary);
}

.stat-value-text {
    font-size: 28px;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-violet);
    letter-spacing: 2px;
    display: block;
    margin-top: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 0, 84,0.25);
}


/* =============================================
   FEATURES GRID
   ============================================= */
#features {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    margin-bottom: 72px;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--accent-violet) !important;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.section-eyebrow::before,
.section-eyebrow::after {
    display: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 58px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.05;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
}

/* Bento grid */
.features-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
}

/* Speed card spans full width (row 1) */
.feature-card-wide {
    grid-column: span 2;
}

.feature-card {
    background: rgba(12, 2, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 22px;
    overflow: hidden;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    opacity: 0;
    transform: translateY(24px);
    min-height: 280px;
}

.feature-card-wide {
    min-height: auto;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.feature-card-inner {
    padding: 40px 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Wide (speed) card: two-column split — text left, metrics right */
.feature-card-wide .feature-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    align-items: center;
    row-gap: 0;
}

.feature-card-wide .feature-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 20px;
}

.feature-card-wide .feature-body {
    grid-column: 1;
    grid-row: 2;
}

.feature-card-wide .feature-tags {
    grid-column: 1;
    grid-row: 3;
    margin-top: 24px;
}

.feature-card-wide .feature-metrics {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
}

.feature-card-large { /* natural flow */ }

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(255, 0, 84, 0.09);
    border: 1px solid rgba(255, 0, 84, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-violet);
    flex-shrink: 0;
    margin-bottom: 24px;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: rgba(255, 255, 255, 0.08);
}

.feature-body {
    flex: 1;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}

.feature-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 80, 120, 0.7);
    background: rgba(255, 0, 84, 0.08);
    border: 1px solid rgba(255, 0, 84, 0.16);
    border-radius: 100px;
    padding: 5px 13px;
}

/* Metric Bars */
.feature-metrics {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 0;
}

.feature-metric { /* kept for JS .metric-fill selector */ }

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-violet);
    opacity: 0.9;
}

.metric-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #FF0054, #FF3377 90%);
    border-radius: 2px;
    transition: width 1.5s var(--ease-out-expo);
}


/* =============================================
   PRODUCT SHOWCASE
   ============================================= */
#products {
    padding: var(--section-padding);
    position: relative;
}

.product-showcase {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.product-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border-radius: 28px;
    overflow: hidden;
    padding: 64px;
    background: var(--bg-card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-violet-dim), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

/* PCB Placeholder */
.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-3d-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-outline {
    width: 280px;
    height: 200px;
    background: linear-gradient(135deg, #1a0810, #0d0208);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 84, 0.2);
    position: relative;
    box-shadow: 0 0 40px rgba(255, 0, 84, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: pcbFloat 4s ease-in-out infinite;
}

@keyframes pcbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

.chip {
    position: absolute;
    background: #0a0a0e;
    border: 1px solid rgba(212, 165, 6, 0.3);
    border-radius: 3px;
}

.chip-main {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 0, 84,0.15);
}

.chip-main::after {
    content: '◈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-violet);
    font-size: 18px;
    opacity: 0.6;
}

.chip-mem1 {
    width: 30px;
    height: 16px;
    top: 30px;
    right: 40px;
}

.chip-mem2 {
    width: 30px;
    height: 16px;
    bottom: 30px;
    right: 40px;
}

.connector-pcie {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 14px;
    background: linear-gradient(to bottom, var(--accent-gold), #8B7300);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px rgba(212, 165, 6, 0.2);
}

.traces span {
    position: absolute;
    background: rgba(255, 0, 84,0.08);
    border-radius: 1px;
}

.traces span:nth-child(1) { width: 60px; height: 1px; top: 45%; left: 20px; }
.traces span:nth-child(2) { width: 1px; height: 40px; top: 30px; left: 45%; }
.traces span:nth-child(3) { width: 40px; height: 1px; top: 60%; left: 30px; }
.traces span:nth-child(4) { width: 1px; height: 30px; bottom: 40px; right: 30%; }
.traces span:nth-child(5) { width: 50px; height: 1px; top: 35%; right: 20px; }
.traces span:nth-child(6) { width: 1px; height: 25px; top: 50px; left: 30%; }

/* Product Info */
.product-info {
    position: relative;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-violet);
    background: var(--accent-violet-dim);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 84, 0.2);
}

.product-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
}

.product-specs {
    margin-bottom: 32px;
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.product-specs li:last-child {
    border-bottom: none;
}

.spec-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-violet);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--accent-violet-glow);
}

.product-price-block {
    margin-bottom: 28px;
}

.product-price {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
    display: block;
}

.product-price-note {
    font-size: 13px;
    color: var(--text-dim);
    display: block;
    margin-top: 4px;
}

.product-cta {
    width: 100%;
    padding: 18px;
}


/* =============================================
   FAQ / SUPPORT
   ============================================= */
#support {
    padding: var(--section-padding);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: box-shadow 0.45s var(--ease-out-expo), background 0.45s ease;
}

.faq-item.active {
    box-shadow: -3px 0 0 var(--accent-violet);
    background: linear-gradient(90deg, rgba(255, 0, 84,0.055) 0%, transparent 70%);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-violet);
}

.faq-item.active .faq-question {
    color: rgba(255, 255, 255, 0.95);
}

.faq-chevron {
    color: var(--text-dim);
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    color: var(--accent-violet);
}

.faq-answer {
    overflow: hidden;
    height: 0;
}

.faq-answer p {
    font-family: var(--font-body);
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}


/* =============================================
   FOOTER
   ============================================= */
#main-footer {
    padding: 80px 0 0;
    background: var(--bg-secondary);
    border-top: none;
    position: relative;
}

/* ---- Animated glow separator line ---- */
@keyframes footer-line-shimmer {
    0%   { background-position: 200% center; opacity: 0.72; }
    50%  { background-position: 0% center;   opacity: 1; }
    100% { background-position: 200% center; opacity: 0.72; }
}
@keyframes footer-bloom-pulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 0.85; }
}

/* 1px glowing line */
#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent              0%,
        rgba(255, 0, 84, 0.18)  10%,
        rgba(255, 0, 84, 0.65)  30%,
        rgba(255, 51, 119, 1)   50%,
        rgba(255, 0, 84, 0.65)  70%,
        rgba(255, 0, 84, 0.18)  90%,
        transparent             100%
    );
    background-size: 200% auto;
    box-shadow:
        0 0 6px  1px rgba(255, 0, 84, 0.45),
        0 0 18px 2px rgba(255, 0, 84, 0.22),
        0 0 40px 4px rgba(255, 0, 84, 0.08);
    animation: footer-line-shimmer 6s ease-in-out infinite;
    will-change: background-position, opacity;
}

/* Diffuse bloom glow below the line */
#main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 60px;
    background: radial-gradient(
        ellipse 60% 100% at 50% 0%,
        rgba(255, 0, 84, 0.10) 0%,
        rgba(255, 0, 84, 0.04) 50%,
        transparent            100%
    );
    pointer-events: none;
    animation: footer-bloom-pulse 6s ease-in-out infinite;
    will-change: opacity;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 16px;
    max-width: 260px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-violet);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .features-grid {
        max-width: 100%;
        padding: 0 24px;
    }
    /* Speed card: stack vertically on tablet */
    .feature-card-wide .feature-card-inner {
        grid-template-columns: 1fr;
    }
    .feature-card-wide .feature-icon,
    .feature-card-wide .feature-body,
    .feature-card-wide .feature-tags,
    .feature-card-wide .feature-metrics {
        grid-column: 1;
        grid-row: unset;
    }
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .product-specs li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .header-inner {
        padding: 0 20px;
    }

    #main-nav {
        display: none;
    }

    .hero-content {
        padding: 0 20px 100px;
        padding-top: var(--header-height);
    }

    .hero-title {
        font-size: clamp(42px, 12vw, 72px);
        letter-spacing: -2px;
    }

    /* Bento: single column on mobile */
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 12px;
    }

    .feature-card-wide {
        grid-column: span 1;
    }

    .stats-inner {
        gap: 30px;
    }

    .stat-divider {
        display: none;
    }

    .product-card {
        padding: 30px;
    }

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

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

    .section-header {
        padding: 0 20px;
    }

    .faq-list {
        padding: 0 20px;
    }
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 8px 0;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-chevron {
    transition: transform var(--transition-fast);
}

.lang-selector:hover .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    background: rgba(11, 2, 10, 0.98);
    border: 1px solid rgba(255, 0, 84,0.16);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 190px;
    max-height: 280px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--transition-fast);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,0,84,0.3) transparent;
}

.lang-dropdown::-webkit-scrollbar { width: 4px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: rgba(255,0,84,0.3); border-radius: 2px; }

.lang-selector:hover .lang-dropdown,
.lang-dropdown.portal-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.lang-option:hover, .lang-option.active {
    color: var(--accent-violet);
    background: rgba(255, 0, 84,0.06);
}

.lang-code {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    min-width: 24px;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.lang-option:hover .lang-code,
.lang-option.active .lang-code {
    color: var(--accent-violet);
}

.lang-name {
    font-size: 13px;
    font-weight: 400;
}


/* =============================================
   AUTH BUTTONS & MODAL
   ============================================= */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 9px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: transparent;
    transition: all var(--transition-fast);
}

.auth-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

.auth-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 9px 20px;
    border: 1px solid var(--accent-violet);
    border-radius: 100px;
    background: var(--accent-violet);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 16px rgba(255, 0, 84, 0.25);
}

.auth-btn:hover {
    background: #CC0044;
    border-color: #CC0044;
    box-shadow: 0 4px 20px rgba(255, 0, 84, 0.45);
}

.auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.auth-username {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

/* ---- User dropdown ---- */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-dropdown-btn:hover {
    border-color: rgba(255, 0, 84,0.25);
    background: rgba(255, 0, 84,0.06);
}

.dropdown-chevron {
    color: var(--text-secondary);
    transition: transform var(--transition-fast);
}

.user-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 0, 84,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1500;
    overflow: hidden;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 0, 84,0.04);
}

.dropdown-avatar-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dropdown-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-mono);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    text-align: left;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 0, 84,0.07);
    color: var(--text-primary);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.dropdown-item:hover svg {
    color: var(--accent-violet);
}

.dropdown-item-danger {
    color: rgba(239, 68, 68, 0.75);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.07);
    color: #ef4444;
}

.dropdown-item-danger:hover svg {
    color: #ef4444;
}

/* ---- Password requirements ---- */
.pw-requirements {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
}

.pw-req {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.pw-req.met {
    color: #10b981;
}

.pw-req svg {
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

/* Modal */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-base);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-violet-dim);
}

.auth-modal-overlay.active .auth-modal-box {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.auth-tab {
    padding: 10px 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    position: relative;
}

.auth-tab.active {
    color: var(--text-primary);
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--transition-fast);
}

.auth-tab.active::after {
    width: 100%;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 10px var(--accent-violet-dim);
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
}

/* =============================================
   SHOPPING CART SLIDE-OVER DRAWER
   ============================================= */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms var(--ease-out-expo), visibility 400ms var(--ease-out-expo);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-box {
    position: fixed;
    top: 0;
    right: -460px;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: rgba(12, 2, 10, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 400ms var(--ease-out-expo);
}

.cart-drawer-overlay.active .cart-drawer-box {
    right: 0;
}

/* Header */
.cart-drawer-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-total-badge {
    color: var(--accent-violet);
    font-size: 16px;
    font-weight: 600;
}

.close-cart {
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 4px;
}

.close-cart:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Content Area */
.cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Empty State */
.cart-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.cart-empty-state h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cart-empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 240px;
}

.empty-cart-btn {
    padding: 14px 28px;
    font-size: 12px;
}

/* Cart Item Card */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.cart-item-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: border-color var(--transition-fast);
}

.cart-item-card:hover {
    border-color: rgba(255, 0, 84,0.2);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #15151a, #0d0d10);
    border: 1px solid rgba(255, 0, 84,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-thumbnail {
    font-size: 20px;
    color: var(--accent-violet);
    filter: drop-shadow(0 0 5px var(--accent-violet-glow));
}

.cart-item-details {
    flex: 1;
}

.cart-item-info {
    margin-bottom: 10px;
}

.cart-item-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-spec {
    font-size: 11px;
    color: var(--text-dim);
    display: block;
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-violet);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-remove {
    color: var(--text-dim);
    transition: color var(--transition-fast);
    padding: 6px;
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* Footer Section */
.cart-drawer-footer {
    padding: 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 2, 8, 0.95);
}

.promo-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.promo-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.promo-box input:focus {
    border-color: rgba(255, 0, 84,0.5);
}

.promo-apply-btn {
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.promo-apply-btn:hover {
    background: var(--accent-violet-dim);
    border-color: var(--accent-violet);
    color: var(--text-primary);
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.shipping-free {
    color: #10b981;
    font-weight: 600;
    letter-spacing: 1px;
}

.total-row-grand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: 4px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
}

/* =============================================
   CART PAGE LAYOUT
   ============================================= */
.cart-page-section {
    padding: 140px 0 120px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.cart-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Cart page header */
.cart-page-header {
    margin-bottom: 56px;
    text-align: center;
}

.cart-page-header .section-eyebrow {
    margin-bottom: 14px;
    justify-content: center;
    text-align: center;
}

.cart-page-header .section-eyebrow::before { display: none; }

.cart-page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

/* Checkout steps */
.cart-steps {
    display: flex;
    align-items: center;
}

.cart-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: opacity var(--transition-fast);
}

.cart-step.active { opacity: 1; }

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cart-step.active .step-num {
    border-color: var(--accent-violet);
    color: var(--accent-violet);
}

.step-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cart-step-line {
    width: 56px;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0 16px;
    flex-shrink: 0;
}

/* Empty state — premium */
.cart-page-empty {
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.cart-empty-inner {
    text-align: center;
    max-width: 460px;
    padding: 40px 20px;
}

.cart-empty-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-violet);
}

.cart-empty-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.cart-empty-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 36px;
}

.cart-empty-cta {
    display: inline-flex;
}

/* Trust row in summary */
.cart-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-body);
    letter-spacing: 0.2px;
}

.cart-trust-item svg { color: rgba(255,0,84,0.6); flex-shrink: 0; }

.cart-page-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Items List on Cart Page */
.cart-page-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-page-item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.cart-page-item-card:hover {
    border-color: rgba(255, 0, 84,0.2);
    transform: translateY(-2px);
}

.cart-page-item-img {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #15151a, #0d0d10);
    border: 1px solid rgba(255, 0, 84,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-page-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s var(--ease-out-expo);
}

.cart-page-item-card:hover .cart-page-item-img img {
    transform: scale(1.06);
}

.cart-page-item-img .pcb-thumbnail {
    font-size: 32px;
}

.cart-page-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .cart-page-item-card {
        flex-direction: row;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }
    .cart-page-item-details {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cart-page-item-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
    .cart-page-item-remove {
        top: 16px;
        right: 16px;
    }
}

.cart-page-item-info {
    max-width: 240px;
}

.cart-page-item-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cart-page-item-spec,
.cart-page-spec {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.cart-page-item-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.cart-page-item-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-page-item-remove {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

.cart-page-item-remove:hover {
    color: #ef4444;
}

/* Summary Card on Cart Page */
.cart-page-summary {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px;
    position: sticky;
    top: 112px;
}

.summary-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Empty State on Page */

/* =============================================
   NEW ADDITIONS: GLOBAL LOADER
   ============================================= */
#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.loader-3d-icon {
    font-size: 32px;
    animation: rotate3d 2s infinite linear;
    display: inline-block;
    color: var(--accent-violet);
    text-shadow: 0 0 15px var(--accent-violet);
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(20deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-main);
}

/* =============================================
   ADMIN DASHBOARD
   ============================================= */
.admin-dashboard {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 0, 84,0.3);
}

.admin-stat-card .stat-icon {
    font-size: 32px;
    background: rgba(255, 0, 84,0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.admin-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin: 4px 0;
}

.admin-stat-card .stat-trend {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-stat-card .stat-trend.positive {
    color: #10b981;
}

.admin-chart-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    height: 400px;
}

/* =============================================
   CART CHECKOUT FORMS
   ============================================= */
.checkout-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.checkout-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover, .payment-method input:checked + span {
    border-color: var(--accent-violet);
    background: rgba(255, 0, 84,0.05);
}

.shipping-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.shipping-form-grid .full-width {
    grid-column: 1 / -1;
}


/* =============================================
   HAMBURGER BUTTON
   ============================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
    transform-origin: center;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 990;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 32px 24px 48px;
    gap: 0;
    min-height: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 4px;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: left;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 0, 84,0.07);
}

.mobile-nav-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 4px;
}

.mobile-nav-divider {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0;
}

.mobile-nav-auth {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.mobile-nav-auth .auth-link,
.mobile-nav-auth .auth-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 14px 16px;
    font-size: 12px;
}

.mobile-lang-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
}

.mobile-lang-selector .lang-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-lang-selector .lang-option:active,
.mobile-lang-selector .lang-option.active {
    background: var(--accent-violet-dim);
    border-color: var(--accent-violet);
    color: var(--text-primary);
    box-shadow: 0 0 12px var(--accent-violet-glow);
}


.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    background: rgba(255, 0, 84,0.05);
    border: 1px solid rgba(255, 0, 84,0.15);
    border-radius: 10px;
    margin-bottom: 4px;
}

.mobile-nav-user .auth-avatar {
    flex-shrink: 0;
}

.mobile-nav-signout {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: rgba(239, 68, 68, 0.8);
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    margin-top: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-signout:hover {
    background: rgba(239, 68, 68, 0.07);
    color: #ef4444;
}


/* =============================================
   RESPONSIVE — 1024px (tablet)
   ============================================= */
@media (max-width: 1024px) {
    .features-grid { max-width: 100%; padding: 0 24px; }
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 48px 40px;
    }
    .product-specs li { justify-content: center; }
    .product-visual { order: -1; }
}


/* =============================================
   MOBILE — colori opachi (backdrop-filter causa
   "sbiancamento" su Android/iOS; si rimuove e
   si usano sfondi solidi per coerenza visiva)
   ============================================= */
@media (max-width: 768px) {
    /* Background body: sempre pieno su mobile */
    body { background-color: #0A020C; }

    /* Header più opaco */
    #main-header {
        background: rgba(5, 5, 7, 0.98) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    /* Feature cards — niente blur, sfondo pieno scuro */
    .feature-card-inner {
        background: rgba(12, 2, 10, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Product card */
    .product-card {
        background: rgba(10, 2, 8, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Auth modal */
    .auth-modal-box {
        background: rgb(10, 2, 10) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .auth-modal-overlay {
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Mobile nav overlay */
    .mobile-nav-overlay {
        background: rgb(6, 1, 8) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Cart items, summary */
    .cart-page-item-card,
    .cart-page-summary {
        background: rgba(10, 2, 9, 0.98) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* FAQ items */
    .faq-item {
        background: rgba(14, 14, 19, 0.96) !important;
    }

    /* Particle canvas: meno visibile su mobile per non lavare i contenuti */
    #particle-canvas { opacity: 0.35; }

    /* Stats bar */
    #stats-bar { background: rgb(10, 2, 10) !important; }
}


/* =============================================
   RESPONSIVE — 768px (tablet / large phone)
   ============================================= */
@media (max-width: 768px) {
    :root { --section-padding: 80px 0; }

    /* Header */
    .header-inner { padding: 0 20px; }
    #main-nav { display: none; }
    .hamburger-btn { display: flex; }
    .header-actions .lang-selector { display: none; }
    .header-actions .auth-buttons,
    .header-actions .user-dropdown { display: none; }
    .header-actions { gap: 16px; }

    /* Auth modal — sheet from bottom */
    .auth-modal-overlay { align-items: flex-end; }
    .auth-modal-box {
        max-width: 100%;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 32px 24px 44px;
        margin: 0;
        max-height: 92vh;
        overflow-y: auto;
    }

    /* Hero */
    .hero-content {
        padding: 0 20px 100px;
        padding-top: calc(var(--header-height) + 40px);
    }
    .hero-title { font-size: clamp(36px, 10vw, 58px); letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 15px; max-width: 100%; }

    /* Stats */
    .stats-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        justify-items: center;
        padding: 0 24px;
    }
    .stat-divider { display: none; }
    .stat-value { font-size: 32px; }

    /* Features */
    .features-grid {
        padding: 0 20px;
        gap: 16px;
    }
    .feature-card-inner {
        padding: 32px 28px;
    }

    /* Section headers */
    .section-header { padding: 0 20px; margin-bottom: 48px; }

    /* Product showcase */
    .product-showcase { padding: 0 20px; }
    .product-card { padding: 32px 24px; }

    /* FAQ */
    .faq-list { padding: 0 20px; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    /* Cart page */
    .cart-page-grid   { grid-template-columns: 1fr; }
    .cart-page-summary { position: static; }
    .shipping-form-grid  { grid-template-columns: 1fr; }
    .payment-methods     { grid-template-columns: 1fr; }
}


/* =============================================
   RESPONSIVE — 480px (small phone)
   ============================================= */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
        --header-height: 64px;
    }

    /* Hero */
    .hero-content {
        padding: 0 16px;
        padding-top: calc(var(--header-height) + 24px);
    }
    .hero-title {
        font-size: clamp(24px, 9vw, 34px);
        line-height: 1.2;
    }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cta-primary {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }
    .scroll-indicator { display: none; }

    /* Stats */
    .stats-inner { gap: 20px; padding: 0 16px; }
    .stat-value       { font-size: 26px; }
    .stat-value-text  { font-size: 20px; }

    /* Features */
    .features-grid { padding: 0 16px; gap: 14px; }
    .feature-card-inner { padding: 26px 22px; }

    /* Section */
    .section-header { padding: 0 16px; margin-bottom: 36px; }
    .section-title  { font-size: clamp(20px, 7vw, 30px); }

    /* Product */
    .product-showcase { padding: 0 16px; }
    .product-card { padding: 24px 18px; border-radius: 16px; }

    /* Footer */
    .footer-inner { padding: 0 16px; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { padding: 20px 16px; font-size: 12px; }

    /* Auth modal */
    .auth-modal-box { padding: 28px 18px 40px; }
    .auth-tabs { margin-bottom: 22px; }

    /* Cart */
    .cart-page-empty { padding: 50px 20px; }
    .cart-page-item-img { width: 72px; height: 72px; }

    /* Password requirements */
    .pw-requirements { padding: 8px 10px; gap: 4px; }
    .pw-req { font-size: 10px; }
}


/* =============================================
   SCROLL ANIMATIONS — data-scroll system
   ============================================= */

/* GPU hint */
[data-scroll], [data-split], [data-tilt] {
    will-change: transform, opacity;
}


/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-violet);
    z-index: 9997;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 0, 84,0.5);
    will-change: transform;
    transform: scaleX(0);
    transform-origin: left center;
}


/* =============================================
   TEXT SPLIT — line / word / char wrappers
   ============================================= */
.split-line-wrap {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}

.split-line {
    display: block;
}

.split-word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.06em;
}

.split-word,
.split-chars-inner {
    display: inline-block;
}

.split-char {
    display: inline-block;
}

.split-space {
    display: inline-block;
    width: 0.28em;
}


/* tilt removed */


/* =============================================
   CLIP-PATH REVEALS — ensure painted area
   ============================================= */
[data-scroll="clip-up"],
[data-scroll="clip-left"] {
    /* Ensure no overflow clipping fights the clip-path */
    overflow: visible;
}

/* Blur-in needs a stacking context */
[data-scroll="blur-in"] {
    isolation: isolate;
}


/* =============================================
   PAGE TRANSITION CURTAIN
   ============================================= */
#page-curtain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
    transform: translateY(0%);
}

.curtain-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    user-select: none;
    pointer-events: none;
}

.curtain-brand-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.curtain-brand-accent {
    color: var(--accent-violet);
}

/* Loading bar — track */
#page-curtain::before {
    content: '';
    position: absolute;
    bottom: calc(50% - 58px);
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
/* Loading bar — fill */
#page-curtain::after {
    content: '';
    position: absolute;
    bottom: calc(50% - 58px);
    left: calc(50% - 90px);
    width: 180px;
    height: 1px;
    background: var(--accent-violet);
    transform-origin: left center;
    animation: curtainLoad 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}
@keyframes curtainLoad {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}


/* =============================================
   ENHANCED CTA BUTTON — MAGNETIC READY
   ============================================= */
.cta-primary {
    will-change: transform;
    transform-style: preserve-3d;
}

.cta-primary:active {
    transform: translateY(1px) scale(0.98) !important;
}


/* =============================================
   IMPROVED HERO TITLE CLIP REVEAL
   ============================================= */
.hero-title-wrap {
    overflow: hidden;
}

.hero-title .title-line {
    will-change: transform;
}

/* Per-character wordmark reveal */
.hero-title { position: relative; }
.hero-title .title-char {
    display: inline-block;
    will-change: transform, filter, opacity;
    backface-visibility: hidden;
}

/* Specular light sweep across the wordmark on entrance */
.hero-title-shine {
    position: absolute;
    top: -6%;
    left: 0;
    width: 45%;
    height: 112%;
    pointer-events: none;
    opacity: 0;
    transform: skewX(-14deg);
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 38%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0) 62%,
        transparent 100%
    );
    mix-blend-mode: overlay;
    z-index: 2;
}


/* =============================================
   SMOOTH SCROLL BEHAVIOR
   ============================================= */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #page-curtain { display: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* =============================================
   MOBILE BASE — prevent horizontal scroll + zoom
   ============================================= */
html, body {
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* Better tap target size on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .nav-link, .mobile-nav-link {
        min-height: 48px;
    }

    /* Prevent iOS rubber-band horizontal scroll */
    body {
        position: relative;
        width: 100%;
        max-width: 100vw;
    }

    /* Curtain smaller logo on mobile */
    .curtain-brand-text { font-size: 16px; letter-spacing: 3px; }
}


/* =============================================
   HOVER EFFECTS — improved interactive feedback
   ============================================= */

/* Feature card hover — no red wash, keep it neutral */
.feature-card:hover .feature-card-inner {
    background: none;
}

/* CTA button — more vivid hover glow */
.cta-primary:hover {
    box-shadow: 0 0 30px rgba(255, 0, 84,0.45), 0 0 70px rgba(255, 0, 84,0.18), 0 14px 40px rgba(0, 0, 0, 0.35);
}

/* Nav links — cleaner underline */
.nav-link::after {
    background: var(--accent-violet);
    height: 1px;
}

/* Section eyebrow lines — cleaner */
.section-eyebrow::before,
.section-eyebrow::after {
    background: var(--accent-violet);
    opacity: 0.4;
}


/* =============================================
   STAT BAR — solid numbers
   ============================================= */
.stat-value, .stat-value-text {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
}


/* =============================================
   FOOTER — cleaner look
   ============================================= */
#main-footer {
    border-top-color: rgba(255, 0, 84,0.1);
}





/* =============================================
   APPLE-STYLE REFINEMENTS
   True black, SF Pro system font, spaziatura
   generosa, glow ridotti, card bento nette
   ============================================= */

:root {
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
    --font-body:    -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
    --font-mono:    -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", sans-serif;
    --bg-primary:      #1c1c1c;
    --bg-secondary:    #0e0e0e;
    --bg-tertiary:     #242424;
    --bg-card:         #272727;
    --bg-card-hover:   #303030;
    --bg-card-gradient: linear-gradient(135deg, #2c2c2c 0%, #202020 100%);
    --bg-card-gradient-hover: linear-gradient(135deg, #353535 0%, #262626 100%);
    --text-primary:    #F5F5F7;
    --text-secondary:  rgba(235, 235, 245, 0.62);
    --text-dim:        rgba(235, 235, 245, 0.28);
    --glass-bg:        rgba(6, 6, 8, 0.72);
    --glass-border:    rgba(255, 255, 255, 0.07);
    --glass-shadow:    0 8px 40px rgba(0, 0, 0, 0.7);
    --section-padding: 148px 0;
    --header-height:   62px;
}

#main-header {
    background: rgba(8, 8, 10, 0.78);
    backdrop-filter: saturate(180%) blur(28px);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    height: var(--header-height);
}
#main-header.scrolled { background: rgba(5, 5, 7, 0.97); border-bottom-color: rgba(255,255,255,0.05); }

@keyframes logoPulse { 0%, 50%, 100% { filter: drop-shadow(0 0 10px rgba(220, 30, 100, 0.7)); opacity: 1; } }
.logo-img { animation: none; filter: none; }

.nav-link {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(235, 235, 245, 0.72);
}
.nav-link:hover { color: #F5F5F7; }
.nav-link::after { display: none; }

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--accent-violet);
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-display);   /* Poppins */
    font-size: clamp(64px, 11vw, 148px);
    font-weight: 700;                    /* Poppins Bold */
    text-transform: uppercase;           /* VERTEX DMA */
    letter-spacing: -0.02em;
    line-height: 0.84;                   /* righe ravvicinate */
    margin-bottom: 32px;
}
/* VERTEX e DMA stessa dimensione, righe vicine */
.hero-title .title-line { display: block; }
.hero-title .title-line:first-child { font-size: 1.20em; }       /* VERTEX */
.hero-title .title-line.title-gradient { font-size: 1.20em; }    /* DMA */
.hero-subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(235, 235, 245, 0.62);
    max-width: 560px;
    margin-bottom: 56px;
}

.cta-primary {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 14px 34px;
    border-radius: 980px;
    background: var(--accent-violet);
    box-shadow: none;
}
.cta-primary:hover { box-shadow: none; background: #D4004A; transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0) scale(0.99) !important; }
.cta-glow { display: none; }
.cta-secondary { font-size: 15px; font-weight: 500; letter-spacing: 0; padding: 14px 28px; border-color: rgba(255,255,255,0.13); }
.cta-secondary:hover { border-color: rgba(255,255,255,0.28); }

.scroll-text { font-size: 9px; letter-spacing: 2px; color: rgba(235,235,245,0.22); }
.scroll-line { background: rgba(235,235,245,0.18); animation: none; }

#stats-bar {
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 80px 0;
    background: #000000;
}
.stat-value, .stat-value-text { font-size: 52px; font-weight: 700; }
.stat-unit { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; }
.stat-label { font-size: 12px; letter-spacing: 0; margin-top: 6px; color: rgba(235,235,245,0.38); }
.stat-divider { background: rgba(255,255,255,0.08); }

.section-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.2px; color: var(--accent-violet) !important; margin-bottom: 14px; }
.section-title { font-size: clamp(36px, 5.5vw, 76px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.04; margin-bottom: 20px; }
.section-subtitle { font-size: 17px; font-weight: 400; line-height: 1.7; color: rgba(235,235,245,0.6); }
.section-header { margin-bottom: 88px; }

.feature-card {
    background: var(--bg-card-gradient);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.feature-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); box-shadow: 0 28px 60px rgba(0,0,0,0.55); background: var(--bg-card-gradient-hover); }
.feature-card:hover .feature-card-inner { background: none; }
.feature-icon { background: rgba(255,0,84,0.1); border: none; border-radius: 14px; width: 44px; height: 44px; }
.feature-card:hover .feature-icon { background: rgba(255,0,84,0.1); box-shadow: none; }
.feature-title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.feature-desc { font-size: 15px; line-height: 1.65; color: rgba(235,235,245,0.6); }
.feature-tag { font-size: 11px; font-weight: 500; letter-spacing: 0; color: rgba(255,80,120,0.85); background: rgba(255,0,84,0.07); border: 1px solid rgba(255,0,84,0.11); padding: 4px 12px; }

.metric-label { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; color: rgba(235,235,245,0.38); }
.metric-val { font-size: 11px; font-weight: 600; color: var(--accent-violet); opacity: 1; }
.metric-bar { height: 2px; background: rgba(255,255,255,0.05); }

.hero-glow-1 { background: radial-gradient(circle, rgba(255,0,84,0.055) 0%, transparent 65%); width: 800px; height: 800px; }
.hero-glow-2 { background: radial-gradient(circle, rgba(255,0,84,0.035) 0%, transparent 65%); }

.product-card { background: var(--bg-card-gradient); border: 1px solid rgba(255,255,255,0.08); border-radius: 36px; }
.product-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; background: rgba(255,0,84,0.09); border-color: rgba(255,0,84,0.14); }
.product-name { font-size: 30px; font-weight: 700; letter-spacing: -0.022em; }
.product-price { font-size: 52px; font-weight: 700; letter-spacing: -0.028em; }

.faq-question { font-size: 16px; font-weight: 500; padding: 22px 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-item.active { box-shadow: none; background: rgba(255,0,84,0.04); border-radius: 10px; padding: 0 16px; }
.faq-answer p { font-size: 15px; line-height: 1.75; color: rgba(235,235,245,0.6); }

.auth-modal-box {
    background: rgba(22,22,24,0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    box-shadow: 0 32px 96px rgba(0,0,0,0.72);
}
.input-group input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 15px;
    padding: 13px 16px;
}
.input-group input:focus { border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(255,0,84,0.14); outline: none; }

.cart-drawer-box { background: rgba(8,8,10,0.96); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%); }
.user-dropdown-menu { background: rgba(22,22,24,0.98); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; box-shadow: 0 20px 64px rgba(0,0,0,0.6); }

/* keep the crimson glow gradient — no override */
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.2px; text-transform: none; color: rgba(235,235,245,0.48); margin-bottom: 14px; }
.footer-col a { font-size: 14px; color: rgba(235,235,245,0.62); padding: 5px 0; }
.footer-col a:hover { color: #F5F5F7; padding-left: 0; }
.footer-tagline { font-size: 13px; line-height: 1.65; color: rgba(235,235,245,0.32); }
.footer-bottom p { font-size: 12px; color: rgba(235,235,245,0.28); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

.auth-btn  { font-weight: 600; letter-spacing: 0; box-shadow: none; }
.auth-link { font-weight: 500; letter-spacing: 0; border-color: rgba(255,255,255,0.12); }

@media (max-width: 768px) {
    #main-header  { background: rgba(5, 5, 7, 0.97) !important; backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important; }
    .feature-card { background: rgba(5, 5, 7, 0.97) !important; }
    .product-card { background: rgba(5, 5, 7, 0.97) !important; }
    #stats-bar    { background: var(--bg-secondary) !important; }
    .hero-title   { letter-spacing: -0.02em; }
}

/* =============================================
   v10 — Global polish pass
   ============================================= */

/* Stats bar — use secondary bg for clear section separation */
#stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Feature cards — grigetto gradient */
.feature-card {
    background: var(--bg-card-gradient);
    border-color: rgba(255, 255, 255, 0.08);
}
.feature-card:hover {
    background: var(--bg-card-gradient-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Product cards — match feature card depth */
.product-card {
    background: var(--bg-card-gradient);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Footer — deeper background creates clear visual boundary */
#main-footer {
    background: var(--bg-secondary);
}

/* Auth modal — cleaner dark */
.auth-modal-box {
    background: rgba(8, 8, 11, 0.98);
}

/* Input fields */
.input-group input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.09);
}
.input-group input:focus {
    background: rgba(255, 255, 255, 0.05);
}

/* Nav link active state — current page highlighted in brand red */
.nav-link.active {
    color: var(--accent-violet) !important;
    position: relative;
}
.nav-link.active::after {
    display: block !important;
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 1px;
    box-shadow: 0 0 8px var(--accent-violet-glow);
}
.mobile-nav-link.active {
    color: var(--accent-violet) !important;
}

/* Stat divider — softer */
.stat-divider { background: rgba(255, 255, 255, 0.07); }

/* Section eyebrow — consistent weight */
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.5px; }

/* Cart drawer */
.cart-drawer-box { background: rgba(5, 5, 7, 0.97); }

/* User dropdown */
.user-dropdown-menu { background: rgba(8, 8, 11, 0.98); }

/* Mobile nav overlay */
.mobile-nav-overlay { background: rgba(5, 5, 7, 0.98); }


/* =============================================
   SECTION BACKGROUND CONTRAST
   Alternating dark shades for clear hierarchy
   ============================================= */
#hero       { background-color: #000000; }
#stats-bar  { background: #0D0D0D !important; }
#features   { background: #0c0c0e; }
#main-footer { background: #000000 !important; }


/* ============================================================
   AMBIENT DEPTH — dare vita allo sfondo nero delle sezioni scure
   ============================================================ */

/* --- Stats bar: alone crimson che sale dal bordo superiore --- */
#stats-bar {
    position: relative;
    overflow: hidden;
    background-color: #0b0b0d !important;
    background-image:
        radial-gradient(120% 140% at 50% -40%, rgba(255,0,84,0.10) 0%, transparent 55%) !important;
}

/* --- Features: glow morbido dietro al titolo + griglia tecnica --- */
#features {
    position: relative;
    overflow: hidden;
    background-color: #0b0b0d;
    background-image:
        radial-gradient(90% 60% at 50% 0%,  rgba(255,0,84,0.085) 0%, transparent 55%),
        radial-gradient(60% 50% at 88% 65%, rgba(255,0,84,0.045) 0%, transparent 50%),
        radial-gradient(55% 45% at 8% 80%,  rgba(255,0,84,0.035) 0%, transparent 50%);
}

/* griglia tecnica sottile che svanisce verso i bordi */
#features::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 0%, transparent 78%);
            mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 0%, transparent 78%);
}

/* il contenuto resta sempre sopra ai livelli decorativi */
#features > * { position: relative; z-index: 1; }


/* ============================================================
   RESPONSIVE v11 — FULL SPECTRUM
   Placed LAST so it correctly overrides the Apple refinements
   block and all earlier media queries.
   Coverage: 320px → 3840px
   ============================================================ */

/* ---- GLOBAL HARD RULES — always apply ---- */
html, body          { overflow-x: hidden; max-width: 100%; }
* { min-width: 0; } /* prevents flex/grid children from overflowing */

section, header, footer, main, nav, aside {
    max-width: 100%;
    overflow-x: hidden;
}

/* All media: never stretch, keep aspect ratio */
img, video, svg, canvas, iframe {
    max-width: 100%;
    height: auto;
}

/* Long text: break gracefully, never overflow */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}
p, span, a, li { overflow-wrap: break-word; }

/* Fluid container padding — scales from 16px → 48px */
.header-inner,
.stats-inner,
.section-header,
.features-grid,
.product-showcase,
.faq-list,
.footer-inner,
.products-grid-wrap,
.cart-page-container {
    padding-left:  clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
}
.footer-bottom { padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }

/* Hero content: fluid padding + header offset */
.hero-content {
    padding-left:  clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
}

/* ---- ULTRAWIDE: 1920px+ ---- */
@media (min-width: 1921px) {
    :root { --container-width: 1520px; }
    .hero-title { font-size: clamp(148px, 9vw, 200px); }
}

/* ---- 4K / 2560px ---- */
@media (min-width: 2400px) {
    :root { --container-width: 1900px; --section-padding: 180px 0; }
    .hero-title { font-size: clamp(160px, 8vw, 240px); }
}

/* ---- 3840px / 8K ---- */
@media (min-width: 3200px) {
    :root { --container-width: 2400px; --section-padding: 220px 0; }
}

/* ---- TABLET LANDSCAPE: 1024px ---- */
@media (max-width: 1024px) {
    .header-inner { padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); }
    .products-grid-wrap { padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); }
    .footer-inner { padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); }
}

/* ---- TABLET PORTRAIT: 768px ----
   Must come AFTER Apple refinements to correctly
   override --section-padding: 148px 0 etc.
   -------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
        --header-height: 62px;
    }

    /* Hero */
    .hero-content {
        padding-top: calc(var(--header-height) + 40px) !important;
        padding-bottom: 80px !important;
        padding-left: clamp(16px, 4vw, 28px) !important;
        padding-right: clamp(16px, 4vw, 28px) !important;
    }
    .hero-title {
        font-size: clamp(60px, 14vw, 108px) !important;
        letter-spacing: -0.03em !important;
        line-height: 0.95 !important;
        margin-bottom: 28px !important;
    }
    .hero-subtitle {
        font-size: clamp(14px, 3.5vw, 17px) !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
    }
    .hero-eyebrow { font-size: 12px !important; letter-spacing: 0.2px !important; }

    /* Stats: 2×2 grid */
    #stats-bar { padding: 56px 0 !important; }
    .stats-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 0 clamp(20px, 4vw, 40px) !important;
        gap: clamp(24px, 5vw, 40px) !important;
        justify-items: center !important;
    }
    .stat-divider { display: none !important; }
    .stat-value, .stat-value-text { font-size: clamp(28px, 7vw, 44px) !important; }
    .stat-label { font-size: 11px !important; }

    /* Section header */
    .section-header {
        padding: 0 clamp(16px, 4vw, 28px) !important;
        margin-bottom: 52px !important;
    }
    .section-title { font-size: clamp(28px, 6.5vw, 52px) !important; letter-spacing: -0.02em !important; }
    .section-subtitle { font-size: 15px !important; }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr !important;
        padding: 0 clamp(16px, 4vw, 28px) !important;
        gap: 14px !important;
    }
    .feature-card-wide { grid-column: 1 !important; }
    .feature-card-wide .feature-card-inner {
        grid-template-columns: 1fr !important;
    }
    .feature-card-wide .feature-icon,
    .feature-card-wide .feature-body,
    .feature-card-wide .feature-tags,
    .feature-card-wide .feature-metrics {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        padding: 0 clamp(16px, 4vw, 28px) 50px !important;
    }
    .footer-links { grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; }
    .footer-bottom { padding: 18px clamp(16px, 4vw, 28px) !important; }

    /* FAQ */
    .faq-list { padding: 0 clamp(16px, 4vw, 28px) !important; }

    /* Product showcase (homepage) */
    .product-showcase { padding: 0 clamp(16px, 4vw, 28px) !important; }
    .product-card { padding: 32px 24px !important; }

    /* Shop page */
    .products-grid-wrap { padding: 0 clamp(16px, 4vw, 28px) !important; }
    .shop-hero { padding: 130px clamp(16px, 4vw, 28px) 48px !important; }
    .shop-filter-bar { padding: 0 clamp(16px, 4vw, 28px) !important; flex-wrap: wrap !important; }
    .filter-tabs { flex-wrap: wrap !important; }

    /* Cart */
    .cart-page-section { padding: clamp(100px, 14vw, 140px) 0 80px !important; }
    .cart-page-grid   { grid-template-columns: 1fr !important; }
    .cart-page-summary { position: static !important; }
    .cart-page-container { padding: 0 clamp(16px, 4vw, 28px) !important; }

    /* About page */
    .about-hero { padding: 130px clamp(16px, 4vw, 28px) 64px !important; }
    .mv-grid {
        grid-template-columns: 1fr !important;
        padding: 0 clamp(16px, 4vw, 28px) !important;
        margin-bottom: 60px !important;
    }
    .mv-card { padding: 36px 28px !important; }
    .values-section { padding: 0 clamp(16px, 4vw, 28px) !important; }
    .values-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; margin-top: 40px !important; }
    .timeline-section { padding: 0 clamp(16px, 4vw, 28px) !important; margin-bottom: 80px !important; }
    .stats-strip { padding: 56px clamp(16px, 4vw, 28px) !important; margin-bottom: 60px !important; }
    .stats-strip-inner { gap: 24px !important; }

    /* Contact page */
    .support-hero { padding: 130px clamp(16px, 4vw, 28px) 56px !important; }
    .support-channels { padding: 0 clamp(16px, 4vw, 28px) !important; margin-bottom: 56px !important; }
    .faq-section { padding: 0 clamp(16px, 4vw, 28px) !important; }
    .contact-section {
        padding: 0 clamp(16px, 4vw, 28px) !important;
        margin-bottom: 72px !important;
        gap: 36px !important;
    }

    /* Legal pages */
    .legal-page { padding: 120px clamp(16px, 4vw, 28px) 80px !important; }
    .legal-title { font-size: clamp(32px, 7.5vw, 56px) !important; }
    .cookie-table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }

    /* CTA buttons: don't stretch on tablet */
    .hero-cta-group { justify-content: center; }
}

/* ---- LARGE PHONE: 480px ---- */
@media (max-width: 480px) {
    :root {
        --section-padding: 64px 0;
        --header-height: 58px;
    }

    /* Hero */
    .hero-content {
        padding-top: calc(var(--header-height) + 20px) !important;
        padding-bottom: 72px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .hero-title {
        font-size: clamp(50px, 15.5vw, 80px) !important;
        letter-spacing: -0.03em !important;
        line-height: 0.96 !important;
        margin-bottom: 24px !important;
    }
    .hero-subtitle { font-size: 14px !important; margin-bottom: 28px !important; }
    .hero-cta-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .cta-primary, .cta-secondary {
        width: 100% !important;
        justify-content: center !important;
        font-size: 14px !important;
        padding: 14px 24px !important;
    }
    .scroll-indicator { display: none !important; }

    /* Stats */
    #stats-bar { padding: 48px 0 !important; }
    .stats-inner { padding: 0 16px !important; gap: 18px !important; }
    .stat-value, .stat-value-text { font-size: clamp(24px, 7vw, 34px) !important; }
    .stat-unit { font-size: 11px !important; }
    .stat-label { font-size: 10px !important; }

    /* Features */
    .features-grid { padding: 0 16px !important; gap: 12px !important; }
    .feature-card-inner { padding: 28px 22px !important; }
    .feature-title { font-size: 16px !important; }
    .feature-desc { font-size: 13px !important; }

    /* Section */
    .section-header { padding: 0 16px !important; margin-bottom: 36px !important; }
    .section-title { font-size: clamp(22px, 8vw, 34px) !important; }
    .section-subtitle { font-size: 14px !important; }

    /* Footer */
    .footer-inner { padding: 0 16px 40px !important; }
    .footer-links { grid-template-columns: 1fr !important; gap: 24px !important; }
    .footer-bottom { padding: 16px !important; }
    .footer-tagline { max-width: 100% !important; }

    /* Product showcase */
    .product-showcase { padding: 0 16px !important; }
    .product-card { padding: 24px 18px !important; border-radius: 18px !important; }
    .product-name { font-size: clamp(20px, 5.5vw, 26px) !important; }
    .product-price { font-size: clamp(28px, 8vw, 38px) !important; }

    /* Shop */
    .products-grid-wrap { padding: 0 16px !important; }
    .products-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .products-grid:has(.product-card-v2:only-child) {
        grid-template-columns: 1fr !important;
        justify-content: stretch !important;
    }
    .shop-hero { padding: 100px 16px 40px !important; }
    .shop-filter-bar { padding: 0 16px !important; }
    .category-section { margin-bottom: 48px !important; }
    .product-body { padding: 20px 20px 24px !important; }


    /* FAQ */
    .faq-list { padding: 0 16px !important; }
    .faq-question { font-size: 14px !important; padding: 18px 0 !important; }

    /* Auth modal */
    .auth-modal-box { padding: 28px 18px 40px !important; }

    /* Cart */
    .cart-page-container { padding: 0 16px !important; }
    .cart-page-empty { padding: 48px 16px !important; }
    .cart-page-title { font-size: clamp(24px, 7.5vw, 36px) !important; }

    /* About */
    .about-hero { padding: 100px 16px 48px !important; }
    .mv-grid { padding: 0 16px !important; }
    .mv-card { padding: 28px 20px !important; }
    .values-section { padding: 0 16px !important; }
    .values-grid { grid-template-columns: 1fr !important; }
    .timeline-section { padding: 0 16px !important; }
    .timeline-item { padding-right: calc(50% + 32px) !important; }
    .timeline-item.right { padding-left: calc(50% + 32px) !important; padding-right: 0 !important; }
    .stats-strip { padding: 40px 16px !important; }
    .stats-strip-inner { gap: 20px !important; }
    .stat-num { font-size: clamp(28px, 8vw, 40px) !important; }

    /* Contact */
    .support-hero { padding: 100px 16px 40px !important; }
    .support-channels { padding: 0 16px !important; grid-template-columns: 1fr !important; }
    .faq-section { padding: 0 16px !important; }
    .contact-section { padding: 0 16px !important; }
    .contact-form-card { padding: 28px 18px !important; border-radius: 18px !important; }

    /* Legal */
    .legal-page { padding: 100px 16px 64px !important; }
    .legal-title { font-size: clamp(26px, 8vw, 40px) !important; }
    .legal-section h2 { font-size: 17px !important; }
    .legal-section p, .legal-section li { font-size: 14px !important; }
}

/* ---- STANDARD PHONE: 375px ---- */
@media (max-width: 375px) {
    :root { --header-height: 56px; --section-padding: 56px 0; }

    .hero-title { font-size: clamp(44px, 15.5vw, 64px) !important; line-height: 0.97 !important; }
    .hero-subtitle { font-size: 13.5px !important; }
    .cta-primary, .cta-secondary { font-size: 13px !important; padding: 13px 20px !important; }

    .stat-value, .stat-value-text { font-size: 22px !important; }
    .section-title { font-size: clamp(20px, 7.5vw, 28px) !important; }
    .logo-text { font-size: 14px !important; letter-spacing: 2px !important; }

    .product-card-v2 .product-name-v2 { font-size: clamp(18px, 5vw, 22px) !important; }
}

/* ---- VERY SMALL: 320px ---- */
@media (max-width: 320px) {
    :root { --header-height: 52px; --section-padding: 48px 0; }

    .hero-title { font-size: clamp(38px, 15vw, 52px) !important; line-height: 0.98 !important; letter-spacing: -0.025em !important; }
    .hero-subtitle { font-size: 13px !important; }
    .cta-primary, .cta-secondary { font-size: 12px !important; padding: 12px 16px !important; }

    .stat-value, .stat-value-text { font-size: 20px !important; }
    .section-title { font-size: 20px !important; }

    .logo-text { font-size: 12px !important; letter-spacing: 1.5px !important; }
    .header-inner { padding: 0 12px !important; }

    .products-grid { grid-template-columns: 1fr !important; }
}

/* ---- TOUCH TARGETS (all mobile) ---- */
@media (max-width: 768px) {
    /* Ensure all interactive elements are at least 44px tall */
    .nav-link, .mobile-nav-link, .filter-tab,
    .add-cart-btn, .cta-primary, .cta-secondary,
    .hamburger-btn, .lang-btn,
    .cart-btn, .faq-question, .auth-btn, .auth-link {
        min-height: 44px;
    }
    .hamburger-btn { min-height: 44px; width: 44px; align-items: center; }
    .cart-btn { min-height: 44px; display: flex; align-items: center; }
    .mobile-nav-link {
        min-height: 52px;
        display: flex;
        align-items: center;
        font-size: clamp(17px, 4.5vw, 22px);
        padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
    }
    .mobile-nav-inner {
        padding: clamp(24px, 5vw, 40px) clamp(20px, 4vw, 32px) clamp(32px, 5vw, 48px);
    }
}

/* ---- MOBILE SAFARI: smooth scroll + tap ---- */
@media (max-width: 768px) {
    body { -webkit-overflow-scrolling: touch; }

    /* Remove tap highlight globally */
    * { -webkit-tap-highlight-color: transparent; }

    /* Prevent horizontal scroll on all containers */
    .products-grid-wrap,
    .cart-page-container,
    .footer-inner,
    .section-header,
    .features-grid { overflow-x: hidden; }

    /* iOS: prevent bounce on fixed header */
    #main-header { -webkit-transform: translateZ(0); transform: translateZ(0); }
}

/* ---- REDUCED MOTION — comprehensive ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }

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

    /* Reveal items that would otherwise be hidden by scroll animations */
    [data-scroll], [data-split] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
    }

    .feature-card, .faq-item, .stat-item {
        opacity: 1 !important;
        transform: none !important;
    }

    #page-curtain { display: none !important; }
    .logo-img { animation: none !important; }
    .pcb-outline { animation: none !important; }
    .metric-fill { transition: none !important; }
}

/* ---- PRINT ---- */
@media print {
    #main-header, #page-curtain, #particle-canvas,
    .hamburger-btn, .mobile-nav-overlay, .scroll-indicator,
    #scroll-progress-bar { display: none !important; }
    body { background: white !important; color: black !important; }
    a { color: black !important; text-decoration: underline !important; }
}


/* =============================================================
   MOBILE PREMIUM OVERHAUL v2   (highest priority — keep at EOF)
   ============================================================= */

/* ---- Global: eliminate any horizontal overflow ---- */
html, body { max-width: 100%; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
/* particle canvas is positioned via inset:0 — leave its sizing untouched */

/* ---- Hamburger: thin, minimal, smooth 3-lines → X (GPU transforms) ---- */
.hamburger-btn { position: relative; }
.hamburger-btn .bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 1.5px;
    margin: -0.75px 0 0 -11px;
    background: var(--text-primary);
    border-radius: 2px;
    transform-origin: center center;
    transition: transform .38s cubic-bezier(.45,.05,.15,1), opacity .22s ease, background-color .2s ease;
    will-change: transform;
}
.hamburger-btn .bar:nth-child(1) { transform: translateY(-6px); }
.hamburger-btn .bar:nth-child(2) { transform: translateY(0); }
.hamburger-btn .bar:nth-child(3) { transform: translateY(6px); }
.hamburger-btn:hover .bar { background: #fff; }
.hamburger-btn.active .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger-btn.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ---- Footer social icons (all viewports) ---- */
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social-link {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social-link:hover {
    color: #fff;
    background: rgba(255, 0, 84, 0.12);
    border-color: rgba(255, 0, 84, 0.40);
    transform: translateY(-2px);
}

/* =================  PHONES / TABLETS  ================= */
@media (max-width: 768px) {

    /* ---- Mobile nav overlay: slide-in + fade + blurred backdrop ---- */
    .mobile-nav-overlay {
        background: rgba(8, 6, 12, 0.84) !important;
        backdrop-filter: blur(22px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
        transform: translateX(7%);
        opacity: 0;
        visibility: hidden;
        transition: transform .42s cubic-bezier(.16,.84,.34,1),
                    opacity .30s ease,
                    visibility .30s ease !important;
        padding-top: calc(var(--header-height) + 6px);
    }
    .mobile-nav-overlay.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-inner {
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        padding: clamp(18px, 5vw, 30px) clamp(20px, 6vw, 30px) 48px !important;
    }

    /* ---- Nav links: vertical, generous, subtle separators, staggered reveal ---- */
    .mobile-nav-links { gap: 0 !important; max-width: none !important; width: 100%; }
    .mobile-nav-link {
        font-family: var(--font-display) !important;
        font-size: clamp(20px, 5.4vw, 26px) !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        color: var(--text-primary) !important;
        text-align: left !important;
        padding: 18px 10px !important;
        border-radius: 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        min-height: 60px !important;
        opacity: 0;
        transform: translateX(16px);
        transition: opacity .45s ease, transform .45s cubic-bezier(.16,.84,.34,1), background .2s ease;
    }
    .mobile-nav-links a:last-child { border-bottom: none !important; }
    .mobile-nav-link:active { background: rgba(255, 0, 84, 0.10) !important; }

    .mobile-nav-overlay.active .mobile-nav-link { opacity: 1; transform: none; }
    .mobile-nav-overlay.active .mobile-nav-links a:nth-child(1) { transition-delay: .06s; }
    .mobile-nav-overlay.active .mobile-nav-links a:nth-child(2) { transition-delay: .12s; }
    .mobile-nav-overlay.active .mobile-nav-links a:nth-child(3) { transition-delay: .18s; }
    .mobile-nav-overlay.active .mobile-nav-links a:nth-child(4) { transition-delay: .24s; }

    /* ---- Auth buttons (stacked, full-width — works for guest & logged-in) ---- */
    .mobile-nav-auth {
        flex-direction: column !important;
        margin-top: 26px !important;
        gap: 10px !important;
        max-width: none !important;
        width: 100%;
    }
    .mobile-nav-auth .auth-link,
    .mobile-nav-auth .auth-btn {
        width: 100%;
        padding: 15px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        min-height: 50px;
    }
    .mobile-nav-user,
    .mobile-nav-signout { max-width: none !important; }

    /* ---- Language section: labelled, 2-column selectable cards ---- */
    .mobile-nav-lang { width: 100%; }
    .mobile-nav-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-mono);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-dim);
        margin: 30px 0 14px;
    }
    .mobile-lang-selector {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
    .mobile-lang-selector .lang-option {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: none !important;
        padding: 12px 14px !important;
        text-align: left !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 12px !important;
        transition: background .2s ease, border-color .2s ease !important;
    }
    .mobile-lang-selector .lang-option .lang-code {
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 700;
        color: var(--accent-violet);
        flex-shrink: 0;
    }
    .mobile-lang-selector .lang-option .lang-name {
        font-size: 13px;
        color: var(--text-secondary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-lang-selector .lang-option.active {
        background: rgba(255, 0, 84, 0.12) !important;
        border-color: rgba(255, 0, 84, 0.45) !important;
    }
    .mobile-lang-selector .lang-option.active .lang-name { color: #fff; }

    /* ---- Hero title: dominant, perfectly centered ---- */
    .hero-text-block { text-align: center; }
    .hero-eyebrow { margin-bottom: 22px !important; }
}

/* =================  FOOTER (smartphones)  ================= */
@media (max-width: 600px) {
    #main-footer { padding-top: 56px; }
    .footer-inner { text-align: center; gap: 36px !important; }
    .footer-brand .logo { justify-content: center; }
    .footer-tagline { margin-left: auto; margin-right: auto; max-width: 300px !important; }
    .footer-social { justify-content: center; }
    .footer-links { grid-template-columns: 1fr !important; gap: 30px !important; }
    .footer-col h4 { margin-bottom: 12px; }
    .footer-col a { padding: 9px 0; font-size: 14px; }
    .footer-bottom {
        margin-top: 8px;
        padding: 22px 16px !important;
        border-top: 1px solid var(--glass-border);
    }
    .footer-bottom p { color: var(--text-secondary); }
}

/* =============================================================
   CHECKOUT PAGE — Premium dark form redesign
   ============================================================= */

/* Form groups */
.cf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.cf-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cf-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.cf-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.cf-input:focus {
    border-color: var(--accent);
    background: rgba(220,30,100,0.05);
    box-shadow: 0 0 0 3px rgba(220,30,100,0.12);
}

/* Section title inside checkout form */
#checkout-form h3.summary-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Order summary card */
.cart-page-summary {
    background: var(--bg-card-gradient);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 28px 26px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cart-page-summary .summary-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Item row inside summary */
#checkout-items > div {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    color: var(--text-primary);
}

#checkout-items > div:last-child {
    border-bottom: none;
}

/* Totals */
.cart-totals {
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.total-row-grand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    margin-top: 6px;
}

.shipping-free {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
}

/* Pay button */
.checkout-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
}

/* Trust row */
.cart-trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Form grid rows */
.form-row { margin-bottom: 0; }
.form-row .cf-group { margin-bottom: 0; }

/* Left panel (form) card */
.cart-page-items {
    background: var(--bg-card-gradient);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 32px 28px;
}


/* =============================================
   STATS BAR — v12: thin, refined, brand-aligned
   Poppins Light, value + unit on one baseline,
   tighter rhythm so the row reads as 4 clear facts
   (placed last so it wins the cascade)
   ============================================= */
#stats-bar {
    padding: 60px 0;
}

.stats-inner {
    gap: clamp(36px, 5vw, 80px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* number/word + unit share one baseline -> reads as a single figure */
.stat-figure {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
}

.stat-value,
.stat-value-text {
    font-family: var(--font-display);   /* Poppins Light */
    font-weight: 300;
    font-size: clamp(40px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* uppercase words are short, so size them down and let them breathe */
.stat-value-text {
    font-size: clamp(30px, 3.4vw, 42px);
    letter-spacing: 0.06em;
}

.stat-unit {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent-violet);
    margin-top: 0;
}

.stat-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(235, 235, 245, 0.42);
    margin-top: 0;
}

.stat-divider {
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}


/* ============================================================================
   CINEMATIC HERO  —  WebGL particle reveal (hero-cinematic.js)
   Desktop-only. Gated by .cine-hero / .cine-hero-live on <html> (set by the
   head bootstrap + module) and .cine-title on the <h1>. Inert on mobile,
   reduced-motion and no-WebGL, where the classic reveal still runs.
   ============================================================================ */

#hero-cinematic-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    pointer-events: none;
}

/* No FOUC: hold the title + ambient glow hidden until the reveal hands off. */
.cine-hero #hero .hero-title { opacity: 0; }
.cine-hero #hero .hero-glow  { opacity: 0; }

/* 3D context for the pointer-tilt and metal sheen. */
.cine-hero #hero .hero-content,
.cine-hero-live #hero .hero-content { perspective: 1200px; }

.cine-title {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, filter;
    --cine-charge: 0;   /* energy-sweep charge   0..1 */
    --dma-glow: 1;      /* DMA breathing glow multiplier */
    --mx: 50%;          /* cursor x for the specular sheen */
}

/* ---- VERTEX: liquid titanium / chrome ---- */
.cine-title .title-line:first-child {
    position: relative;
    background: linear-gradient(176deg,
        #ffffff 0%, #f3f7fc 15%, #c7d1de 33%, #ffffff 50%,
        #abb6c5 65%, #eef3f9 83%, #ffffff 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 0.4px rgba(255, 255, 255, 0.07);
    filter:
        drop-shadow(0 2px 16px rgba(255, 255, 255, 0.14))
        drop-shadow(0 0 calc(30px * var(--cine-charge)) rgba(255, 40, 110, 0.6));
}

/* ---- DMA: magenta plasma with breathing glow ---- */
.cine-title .title-line.title-gradient {
    color: #ff0a5e;
    -webkit-text-fill-color: #ff0a5e;
    text-shadow:
        0 0 calc(22px * var(--dma-glow)) rgba(255, 10, 94, 0.62),
        0 0 calc(54px * var(--dma-glow)) rgba(255, 10, 94, 0.34);
}

/* ---- Energy sweep band (FASE 5) ---- */
.hero-energy-sweep {
    position: absolute;
    top: -10%;
    left: -12%;
    width: 11%;
    height: 120%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transform: skewX(-9deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 60, 130, 0.0) 18%,
        rgba(255, 90, 150, 0.5) 46%,
        rgba(255, 255, 255, 0.92) 50%,
        rgba(255, 90, 150, 0.5) 54%,
        rgba(255, 60, 130, 0.0) 82%,
        transparent 100%);
    filter: blur(5px);
    mix-blend-mode: screen;
}

/* ---- Digital glitch (FASE 7) — ~300ms ---- */
.cine-title.glitching .title-line {
    animation: cineGlitch 0.3s steps(2, end) 1 both;
}
.cine-title.glitching .title-line.title-gradient { animation-delay: 0.04s; }

@keyframes cineGlitch {
    0%   { transform: translateX(0);    clip-path: none; }
    12%  { transform: translateX(-5px); text-shadow: 4px 0 rgba(255,0,90,0.9), -4px 0 rgba(0,225,255,0.7); clip-path: inset(8% 0 58% 0); }
    24%  { transform: translateX(6px);  clip-path: inset(46% 0 18% 0); }
    38%  { transform: translateX(-3px); text-shadow: -5px 0 rgba(255,0,90,0.85), 5px 0 rgba(0,225,255,0.6); clip-path: inset(70% 0 6% 0); }
    52%  { transform: translateX(4px);  clip-path: inset(16% 0 66% 0); }
    66%  { transform: translateX(-2px); text-shadow: 3px 0 rgba(255,0,90,0.7), -3px 0 rgba(0,225,255,0.5); clip-path: inset(54% 0 30% 0); }
    80%  { transform: translateX(1px);  clip-path: none; }
    100% { transform: translateX(0);    text-shadow: none; clip-path: none; }
}

/* ---- Permanent ambient: near-invisible scanlines (FASE 8) ---- */
.cine-hero-live #hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 3px);
    mix-blend-mode: overlay;
    opacity: 0.5;
}


/* ============================================================================
   MOBILE HEADER ACCOUNT MENU  (replaces in-menu Sign In / Sign Up)
   Visible on phones only; menu is position:fixed to escape header clipping.
   ============================================================================ */
.account-wrap { position: relative; display: none; }
/* Clean icon — no circle/ring (overrides any cached round style). */
.account-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0;
    color: var(--text-primary);
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}
.account-btn:hover,
.account-btn:active { color: var(--accent-violet); }
.account-btn:active { transform: scale(0.92); }
#account-btn-icon { display: inline-flex; align-items: center; justify-content: center; }
/* Logged-in avatar shown inside the button (this circle is intentional). */
.account-initial {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-violet);
    box-shadow: 0 0 0 2px rgba(255, 0, 84, 0.25);
}

/* -------- Account dropdown (premium) -------- */
.account-menu {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: clamp(12px, 4vw, 20px);
    width: 244px;
    background: linear-gradient(180deg, rgba(24, 17, 26, 0.99) 0%, rgba(13, 9, 15, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 12px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity .2s ease, transform .24s cubic-bezier(.16,.84,.34,1), visibility .2s ease;
}
.account-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.account-menu-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 2px 6px 11px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 13px 14px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: none;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .2s ease, transform .15s ease;
}
.account-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.account-menu-item:active { transform: scale(0.985); }
.account-menu-item:hover { background: rgba(255, 255, 255, 0.05); }

/* Sign In — refined ghost button */
.account-menu-item.account-menu-secondary {
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    margin-bottom: 9px;
}
.account-menu-item.account-menu-secondary:hover,
.account-menu-item.account-menu-secondary:active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.26);
}

/* Sign Up — primary magenta with soft glow */
.account-menu-item.account-menu-primary {
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #ff2670 0%, #e0004a 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(255, 0, 84, 0.38);
}
.account-menu-item.account-menu-primary:hover { box-shadow: 0 10px 30px rgba(255, 0, 84, 0.5); }
.account-menu-item.account-menu-primary:active { box-shadow: 0 4px 14px rgba(255, 0, 84, 0.32); }

.account-menu-item.account-menu-danger { color: #ff5a7a; }
.account-menu-item.account-menu-danger:hover { background: rgba(255, 0, 84, 0.1); }

.account-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
}
.account-menu-head .auth-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff2670 0%, #e0004a 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255, 0, 84, 0.35);
}
.account-menu-id { overflow: hidden; }
.account-menu-name {
    display: block;
    font-weight: 700; font-size: 14px; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-menu-email {
    display: block;
    font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ============================================================================
   MOBILE FIXES  (phones ≤ 768px)
   ============================================================================ */
@media (max-width: 768px) {

    /* (2) Clear separation between the hero and the stats section */
    #hero { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    #stats-bar {
        border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    /* (4) Feature cards must never become internal scroll containers */
    .feature-card {
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    .feature-card-inner { height: auto !important; }
    .feature-metrics { overflow: visible !important; }

    /* (5a) Show the account icon, hide the in-menu auth area */
    .account-wrap { display: block; }
    #mobile-auth-area,
    .mobile-nav-divider { display: none !important; }

    /* (5b) Collapsible language section — collapsed by default to free space */
    .mobile-nav-lang { margin-top: 18px; }
    .mobile-nav-lang-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        cursor: pointer;
    }
    .mobile-nav-lang-toggle .mobile-nav-label { margin: 0 !important; color: var(--text-secondary); }
    .mobile-lang-current {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-mono);
        font-size: 13px;
        font-weight: 700;
        color: var(--accent-violet);
    }
    .mobile-lang-chevron { transition: transform .25s ease; color: var(--text-dim); }
    .mobile-nav-lang.open .mobile-lang-chevron { transform: rotate(180deg); }

    /* hidden until expanded */
    .mobile-lang-selector { display: none !important; }
    .mobile-nav-lang.open .mobile-lang-selector {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .mobile-nav-lang.open .mobile-lang-selector .lang-option {
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 10px 6px !important;
        text-align: center !important;
    }
    .mobile-nav-lang.open .mobile-lang-selector .lang-option .lang-name {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* (3) Cart / checkout progress steps — keep on one line, no char-wrapping */
@media (max-width: 600px) {
    .cart-steps {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }
    .cart-step { gap: 6px; flex-shrink: 0; }
    .step-num { width: 24px; height: 24px; font-size: 10px; }
    .step-label {
        white-space: nowrap;
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    .cart-step-line { width: 16px; margin: 0 7px; }
}

@media (max-width: 360px) {
    .cart-step-line { display: none; }
    .cart-step { margin: 0 5px; }
}

