/* ══════════════════════════════════════════════════
   Ehrhardt3D – Global Styles
   ══════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────── */
:root {
    --color-navy: rgb(15, 24, 34);
    --color-navy-light: #1a2b38;
    --color-primary: rgb(15, 24, 34);
    --color-primary-light: #1a2b38;
    --color-accent: #6366f1;
    --color-accent-light: #818cf8;
    --color-accent-50: #eef2ff;
    --color-accent-100: #e0e7ff;
    --color-surface: #ffffff;
    --color-surface-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-text: rgb(15, 24, 34);
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 3rem; }
}

/* ── Site Header / Navbar ──────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.8; }

.logo-img {
    height: 17px;
    width: auto;
}

/* Header Product Title (replaces logo on product pages) */
.header-product-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.2;
    transition: opacity 0.2s;
}
.header-product-title:hover { opacity: 0.8; }
.header-product-title .logo-img {
    height: 14px;
    width: auto;
}
.header-product-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
}
.header-product-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

/* Desktop Nav */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--color-text); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Nav CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-xl);
    background: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--color-primary-light); transform: translateY(-1px); }

/* Desktop Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    position: relative;
    padding: 0;
    cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--color-text); }
.nav-dropdown-trigger::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.active::after { transform: scaleX(1); }
.nav-dropdown-trigger svg {
    transition: transform 0.25s;
}
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 1.75rem;
    min-width: 520px;
    z-index: 110;
}
.nav-dropdown.open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-dropdown-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.625rem;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
    color: var(--color-text-secondary);
}
.nav-dropdown-item:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.nav-dropdown-item.active { color: var(--color-accent); }
.nav-dropdown-item svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}
.nav-dropdown-item.active svg { color: var(--color-accent); }
.nav-dropdown-item:hover svg { color: var(--color-text); }
.nav-dropdown-item div { display: flex; flex-direction: column; }
.nav-dropdown-item strong {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}
.nav-dropdown-item span {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* ── Floating Mobile Menu ──────────────────────── */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 301;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

@media (max-width: 767px) {
    .mobile-fab { display: flex; }
}

.mobile-fab:active { transform: translateX(-50%) scale(0.92); }

.fab-icon { transition: opacity 0.25s, transform 0.3s; }
.fab-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.mobile-fab.open .fab-icon-menu { opacity: 0; transform: rotate(90deg); }
.mobile-fab.open .fab-icon-close { opacity: 1; transform: rotate(0); }
.mobile-fab.open { background: var(--color-text-secondary); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

.mobile-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    padding: 1.5rem 1.5rem 5.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}
.mobile-panel.open { transform: translateY(0); }

.mobile-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-panel-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.2s;
}
.mobile-panel-link:hover,
.mobile-panel-link.active {
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.mobile-panel-link.active {
    font-weight: 600;
    color: var(--color-accent);
}

.mobile-panel-link svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}
.mobile-panel-link.active svg { color: var(--color-accent); }

.mobile-panel-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.5rem 0;
}

.mobile-panel-cta {
    color: var(--color-accent) !important;
    font-weight: 600 !important;
}
.mobile-panel-cta svg { color: var(--color-accent) !important; }

.mobile-panel-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    padding: 0.5rem 1rem 0.25rem;
}

.mobile-panel-link-sub {
    padding-left: 1rem;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
    border-top: none;
    background: var(--color-navy);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-links li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-xl); }

.btn-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-text-muted); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-accent:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35); }

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Product Cards / Grid ──────────────────────── */
.product-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .product-grid .product-card:nth-child(1) { grid-column: span 7; }
    .product-grid .product-card:nth-child(2) { grid-column: span 5; }
    .product-grid .product-card:nth-child(3) { grid-column: span 5; }
    .product-grid .product-card:nth-child(4) { grid-column: span 7; }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.08);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .product-card-image { aspect-ratio: 4/3; }
}

.product-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
}

.badge-new {
    background: var(--color-accent);
    color: white;
}

.badge-soon {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.product-card .subline {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.product-card .price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}

/* ── Hero Section ──────────────────────────────── */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.hero-bg .blob-1 { width: 600px; height: 600px; background: var(--color-accent); top: -200px; right: -100px; }
.hero-bg .blob-2 { width: 400px; height: 400px; background: #818cf8; bottom: -100px; left: -100px; }

.hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-content { text-align: center; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    background: var(--color-accent-50);
    border: 1px solid var(--color-accent-100);
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

@media (min-width: 1024px) {
    .hero p { margin: 0; }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .hero-cta { justify-content: flex-start; }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-trust { justify-content: flex-start; }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual-main {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 3rem;
    background: linear-gradient(135deg, var(--color-accent-50), var(--color-surface-alt));
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual-main svg {
    width: 120px;
    height: 120px;
    color: var(--color-text-muted);
    opacity: 0.3;
}

/* ── Section Styles ────────────────────────────── */
.section {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section { padding: 7rem 0; }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
}

.section-alt { background: var(--color-surface-alt); }

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

/* ── Feature Grid ──────────────────────────────── */
.feature-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all 0.4s;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--color-accent-50);
    border: 1px solid var(--color-accent-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ── CTA Banner ────────────────────────────────── */
.cta-banner {
    background: var(--color-primary);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-banner { padding: 4rem 3rem; }
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.cta-banner .btn-accent { background: white; color: var(--color-primary); box-shadow: none; }
.cta-banner .btn-accent:hover { background: rgba(255, 255, 255, 0.9); }

/* ── Placeholder Image ─────────────────────────── */
.placeholder-image {
    background: linear-gradient(135deg, var(--color-surface-alt), #eef2ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    opacity: 0.5;
    width: 100%;
    height: 100%;
}

.placeholder-image svg { width: 64px; height: 64px; }

/* ── Scroll Animations ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Impressum / Legal Pages ───────────────────── */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-page h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--color-accent-light); }

/* ── Utility ───────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Sliding Mobile Menu ───────────────────────── */
.mobile-panel-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.mobile-panel-pages {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 300%;
}
.mobile-panel-page {
    width: calc(100% / 3);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
}
.mobile-panel-back {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.mobile-panel-back:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.mobile-panel-forward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.mobile-panel-forward:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}
.mobile-panel-forward svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

/* ── Back to Top Button ────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
    .back-to-top { bottom: 5.5rem; }
}

/* ── Product Landing Hero ──────────────────────── */
.product-hero {
    text-align: center;
    padding-top: 130px;
    padding-bottom: 2rem;
}
.product-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.product-hero .product-hero-sub {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── 3D Print Promo Section ────────────────────── */
.promo-3d {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: 3rem 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0c1929 50%, #111d2e 100%);
}
@media (min-width: 768px) {
    .promo-3d { padding: 3.5rem 2.5rem; }
}

/* Animated background blobs */
.promo-3d-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.promo-3d-bg .promo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: promo-float 8s ease-in-out infinite;
}
.promo-3d-bg .promo-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -120px;
    right: -80px;
}
.promo-3d-bg .promo-blob-2 {
    width: 300px;
    height: 300px;
    background: #818cf8;
    bottom: -100px;
    left: -60px;
    animation-delay: 3s;
}
.promo-3d-bg .promo-blob-3 {
    width: 200px;
    height: 200px;
    background: #6366f1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
    opacity: 0.08;
}
@keyframes promo-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Grid line overlay */
.promo-3d-gridlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.promo-3d-content {
    position: relative;
    z-index: 1;
}

.promo-3d-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--color-accent-light);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.promo-3d-tag .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-light);
    animation: pulse-dot 2s ease-in-out infinite;
}

.promo-3d h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.promo-3d .promo-subtitle {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

/* Bento-style feature grid */
.promo-3d-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    text-align: left;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .promo-3d-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.promo-3d-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.125rem;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.promo-3d-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}
@media (min-width: 640px) {
    .promo-3d-item { grid-column: span 3; }
    .promo-3d-item.span-2 { grid-column: span 2; }
}

.promo-3d-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent-light);
}
.promo-3d-item-icon svg { width: 18px; height: 18px; }
.promo-3d-item h4 {
    font-size: 0.875rem;
    font-weight: 700;
}
.promo-3d-item p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

.promo-3d-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.promo-3d-cta .btn-accent {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.promo-3d-cta .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.25s;
}
.promo-3d-cta .btn-ghost:hover {
    border-color: rgba(255,255,255,0.25);
    color: white;
    background: rgba(255,255,255,0.05);
}

/* ── Footer CTA Box ────────────────────────────── */
.footer-cta-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
}
.footer-cta-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}
.footer-cta-box p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.footer-cta-box .btn {
    width: 100%;
}
