/* ============================================
   G-LOOP LANDING PAGE
   Aesthetic: Neon Industrial — dark workshop
   meets premium software
   ============================================ */

/* === RESET & VARIABLES === */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

:root {
    --bg-deep: #06060b;
    --bg-surface: #0c0c14;
    --bg-elevated: #12121c;
    --bg-card: #0f0f19;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    --accent: #FF6B00;
    --accent-light: #FFB800;
    --accent-soft: rgba(255,107,0,0.12);
    --accent-glow: rgba(255,107,0,0.35);
    --gradient: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
    --gradient-text: linear-gradient(135deg, #FF8C33 0%, #FFD166 100%);

    --text: #F0EDE8;
    --text-secondary: #908C98;
    --text-muted: #8E8A9C; /* G-90 R4: was #7A7688 (~4.3:1 on rd-bg-raised, WCAG AA fail). #8E8A9C gives ~5:1 on raised, ~5.6:1 on base. Matches --rd-text-muted. */

    --glass: rgba(15,15,25,0.82);
    --glass-border: rgba(255,255,255,0.05);
    --glass-border-hover: rgba(255,107,0,0.2);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(255,107,0,0.15);

    --nav-h: 72px;
    --section-pad: clamp(80px, 12vw, 140px);
    --content-w: 1180px;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,0,0.3) transparent;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 3px; }

::selection { background: var(--accent); color: #000; text-shadow: none; }
::-moz-selection { background: var(--accent); color: #000; text-shadow: none; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
    caret-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}
input, textarea, select, [contenteditable] {
    caret-color: auto;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}
p, h1, h2, h3, h4, h5, h6, li, td, th, span, a, label, blockquote {
    -webkit-user-select: text;
    user-select: text;
}

/* === NOISE OVERLAY === */
.noise {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* === GRID BACKGROUND === */
.grid-bg {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,107,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,0,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

/* === MESH GLOW === */
.mesh-glow {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 600px 400px at 20% 15%, rgba(255,107,0,0.06), transparent),
        radial-gradient(ellipse 500px 500px at 80% 75%, rgba(255,184,0,0.04), transparent);
}

/* === TYPOGRAPHY === */
.display { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.heading { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent);
}

/* === LAYOUT === */
.container { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }

/* === NAVIGATION === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background 0.4s, box-shadow 0.4s;
    cursor: default; user-select: none;
}
.nav.scrolled {
    background: rgba(6,6,11,0.96);
    box-shadow: 0 1px 0 var(--border);
}
.nav .container {
    display: flex; align-items: center; width: 100%;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    flex-shrink: 0;
    margin-right: 24px;
}
.nav-logo-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.nav-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 24px); list-style: none; flex: 1; cursor: default; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.25s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
/* ── Products Dropdown ── */
.nav-dropdown { position: relative; view-transition-name: none; }
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}
.nav-dropdown:hover::after {
    pointer-events: auto;
}
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    min-width: 180px;
    background: rgba(15, 15, 25, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
    list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(8px);
}
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.nav-right {
    display: flex; align-items: center; gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}
.lang-switcher {
    position: relative;
}
.lang-select {
    appearance: none;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 6px 28px 6px 10px;
    font-size: 0.8rem; font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lang-select:hover { border-color: var(--border-hover); }
.lang-select:focus { outline: none; border-color: var(--accent); }
.lang-switcher::after {
    content: '';
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 50px;
    background: var(--gradient);
    color: #0a0a0f; font-weight: 600; font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,107,0,0.4);
}
.nav-cta-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    background: transparent;
    color: var(--text); font-weight: 600; font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border-hover);
    transition: background 0.2s, border-color 0.2s;
}
.nav-cta-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--text-secondary);
}
.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; position: relative;
    margin-left: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none; color: inherit;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    position: absolute; left: 11px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 27px; }
/* Checkbox hack: hidden input, toggled by <label for="menuToggle"> */
.menu-toggle-input { display: none; }
.menu-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle-input:checked ~ .nav .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === HERO === */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding-top: var(--nav-h);
    position: relative; overflow: hidden;
}
.hero-content {
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative; z-index: 2;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 8px;
    border-radius: 50px;
    background: var(--accent-soft);
    border: 1px solid rgba(255,107,0,0.15);
    margin-bottom: 32px;
}
.hero-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-eyebrow-text { font-size: 0.8rem; font-weight: 600; color: var(--accent-light); }
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.hero-title-line1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    margin: 0;
    overflow-wrap: break-word;
}
.hero-title-line2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    overflow-wrap: break-word;
}
.page-g-loop .hero-title-line1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}
.page-g-loop .hero-title-line2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}
.page-g-storage .hero-title-line1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
}
.page-g-print .hero-title-line1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
.page-g-print .hero-title-line2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
@media (max-width: 900px) {
    .hero-title-line1,
    .page-g-loop .hero-title-line1, .page-g-storage .hero-title-line1,
    .page-g-print .hero-title-line1 { font-size: clamp(2.2rem, 6.5vw, 4rem); }
    .hero-title-line2,
    .page-g-loop .hero-title-line2, .page-g-print .hero-title-line2 { font-size: clamp(1.8rem, 5.5vw, 3.4rem); }
}
@media (max-width: 480px) {
    .hero-title-line1,
    .page-g-loop .hero-title-line1, .page-g-storage .hero-title-line1,
    .page-g-print .hero-title-line1 { font-size: clamp(1.5rem, 6.5vw, 2.4rem); }
    .hero-title-line2,
    .page-g-loop .hero-title-line2, .page-g-print .hero-title-line2 { font-size: clamp(1.35rem, 6vw, 2.2rem); }
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 48px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 50px;
    background: var(--gradient);
    color: #0a0a0f; font-weight: 700; font-size: 1.05rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,107,0,0.4);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 50px;
    background: transparent;
    color: var(--text); font-weight: 600; font-size: 1.05rem;
    text-decoration: none; border: 1px solid var(--border-hover);
    transition: border-color 0.3s, background 0.3s;
    font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover {
    border-color: rgba(255,107,0,0.3);
    background: rgba(255,107,0,0.05);
}

/* Hero infinity animation */
.hero-infinity {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 350px;
    opacity: 0.08;
    z-index: 0;
}
.hero-infinity .track {
    fill: none; stroke: rgba(255,107,0,0.4); stroke-width: 1.5;
}
.hero-infinity .trace {
    fill: none; stroke: #FF6B00; stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 0.12 0.88;
    animation: traceLoop 4s linear infinite;
}
@keyframes traceLoop { to { stroke-dashoffset: -1; } }

/* Floating code snippets */
.hero-float {
    position: absolute; z-index: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem; color: rgba(255,107,0,0.08);
    white-space: pre; pointer-events: none;
    animation: floatDrift 20s ease-in-out infinite alternate;
}
.hero-float:nth-child(1) { top: 15%; left: 5%; animation-delay: -3s; }
.hero-float:nth-child(2) { top: 70%; right: 3%; animation-delay: -8s; animation-duration: 25s; }
.hero-float:nth-child(3) { bottom: 20%; left: 8%; animation-delay: -12s; animation-duration: 18s; }
@keyframes floatDrift {
    0% { transform: translate(0, 0) rotate(-1deg); }
    100% { transform: translate(15px, -20px) rotate(1deg); }
}

/* G-Print action banner */
.gprint-action-banner {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--glass);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.gprint-action-banner .banner-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gprint-action-banner .banner-text { flex: 1; min-width: 200px; }
.gprint-action-banner .banner-text h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.gprint-action-banner .banner-text p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }
.gprint-action-banner.banner-buy { border: 1px solid rgba(255,107,0,0.3); }
.gprint-action-banner.banner-buy .banner-icon { background: rgba(255,107,0,0.1); color: var(--accent); }
.gprint-action-banner.banner-active { border: 1px solid rgba(74,222,128,0.3); }
.gprint-action-banner.banner-active .banner-icon { background: rgba(74,222,128,0.1); color: #4ade80; }

/* G-Print comparison table column widths */
.page-g-print .comparison-table thead th:first-child { width: 28%; }
.page-g-print .comparison-table thead th:nth-child(2) { width: 36%; }
.page-g-print .comparison-table thead th:nth-child(3) { width: 36%; }

/* === STATS BAR === */
.stats-bar {
    padding: 0 0 var(--section-pad);
    margin-top: -40px;
    position: relative; z-index: 2;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat-item {
    background: var(--bg-surface);
    padding: 32px 24px; text-align: center;
    transition: background 0.3s;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.stat-item:hover { background: var(--bg-elevated); }
.stat-value {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.stat-infinity { font-size: clamp(3.5rem, 6vw, 5rem); line-height: 1; }
.stat-files { font-size: clamp(1.2rem, 2vw, 1.6rem); white-space: nowrap; }
.stat-label {
    font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;
}

/* === FEATURES === */
.features { padding: var(--section-pad) 0; }
.section-header {
    text-align: center; margin-bottom: 64px;
}
.section-header .label { margin-bottom: 16px; display: block; }
.section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 16px;
    overflow-wrap: break-word;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 560px; margin: 0 auto;
    font-size: 1.05rem;
}


/* ── Feature Video Panels ── */
.feature-panels {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 1;
    background: var(--bg-deep);
}

.feature-panel {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    contain: layout paint;
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.feature-panel:nth-child(even) {
    flex-direction: row-reverse;
    background: #0c0c14;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    margin: 16px 0;
}

.feature-panel-text {
    flex: 0 0 50%;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-panel-text .label {
    margin-bottom: 12px;
    display: block;
}

.feature-panel-text h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-panel-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 440px;
}

.feature-panel-video {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
}

.feature-panel:nth-child(even) .feature-panel-video {
    border-radius: var(--radius) 0 0 var(--radius);
}

.feature-panel:nth-child(even) .feature-panel-text {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-panel-video video,
.feature-panel-video img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,107,0,0.015) 50%, transparent 100%);
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}
.step {
    text-align: center;
    position: relative; z-index: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 28px 32px;
    transition: border-color 0.3s, transform 0.3s;
    border-top: 2px solid var(--accent);
}
.step:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.step-number {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255,107,0,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.2rem;
    color: var(--accent);
}
.step h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 1.15rem;
    margin-bottom: 12px;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.9rem; line-height: 1.7;
}
.step a {
    color: var(--accent); text-decoration: none;
    font-weight: 600;
    transition: color 0.25s;
    display: inline-flex; align-items: center; gap: 4px;
}
.step a:hover { color: var(--accent-light); }
.step a svg { transition: transform 0.25s; }
.step a:hover svg { transform: translateX(3px); }

/* === COMPARISON === */
.comparison { padding: var(--section-pad) 0; }
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-table thead th {
    padding: 20px 24px;
    background: var(--bg-surface);
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table:not(.comparison-table-wide) thead th:first-child { width: 40%; }
.comparison-table thead th:nth-child(2),
.comparison-table thead th.col-highlight {
    color: var(--accent);
    background: rgba(255,107,0,0.04);
}
.comparison-table-wide { min-width: 800px; }
.comparison-table-wide thead th { font-size: 0.95rem; padding: 16px 14px; }
.comparison-table-wide tbody td { padding: 12px 14px; font-size: 0.85rem; }
.comparison-table tbody td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.93rem;
    vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.comparison-table tbody td:first-child {
    color: var(--text-secondary); font-weight: 500;
}
.comparison-table tbody td:nth-child(2),
.comparison-table tbody td.col-highlight {
    background: rgba(255,107,0,0.02);
}
.comparison-note {
    text-align: center; color: var(--text-muted); font-size: 0.8rem;
    margin-top: 16px; font-style: italic;
}
/* Scroll hint for comparison table on mobile */
.comparison-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}
.comparison-scroll-wrap::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    background: linear-gradient(to left, var(--bg-deep), transparent);
    display: none;
}
@media (max-width: 768px) {
    .comparison-scroll-wrap::after { display: block; }
}
.check {
    display: inline-flex; align-items: center; gap: 8px;
    color: #4ade80; font-weight: 500;
}
.check svg { flex-shrink: 0; }
.cross {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-weight: 400;
}
.cross svg { flex-shrink: 0; }
.partial {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-secondary); font-weight: 400;
}

/* === PRICING === */
.pricing {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,107,0,0.01) 50%, transparent 100%);
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; align-items: start;
    max-width: 1050px; margin: 0 auto;
}
.pricing-card {
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    /* backdrop-filter removed for performance */
    padding: 40px 32px;
    transition: border-color 0.35s, transform 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.featured {
    border-color: rgba(255,107,0,0.3);
    box-shadow: 0 0 50px rgba(255,107,0,0.08);
}
.pricing-badge {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px; border-radius: 50px;
    background: var(--gradient);
    font-size: 0.72rem; font-weight: 700;
    color: #0a0a0f; text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pricing-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700; font-size: 1.2rem;
    margin-bottom: 8px;
}
.pricing-card .price-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 24px;
}
.pricing-price {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.pricing-price .currency { font-size: 1.4rem; vertical-align: super; margin-right: 2px; }
.pricing-period {
    font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 32px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 0.9rem;
    color: var(--text-secondary);
}
.pricing-features li svg {
    flex-shrink: 0; margin-top: 3px;
    color: var(--accent);
}
.pricing-btn {
    display: block; width: 100%; padding: 14px;
    border-radius: 50px; text-align: center;
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
}
.pricing-btn-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text);
}
.pricing-btn-outline:hover {
    border-color: rgba(255,107,0,0.3);
    background: rgba(255,107,0,0.05);
}
.pricing-btn-fill {
    background: var(--gradient);
    color: #0a0a0f;
}
.pricing-btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,107,0,0.35);
}

.pricing-trial-link { text-align: center; margin-top: 12px; font-size: 0.85rem; }
.pricing-trial-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.pricing-trial-link a:hover { color: var(--accent-light); text-decoration: underline; }

/* Billing Toggle */
.billing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 0;
    margin: 0 auto 40px; width: fit-content;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 50px; padding: 4px; position: relative;
}
.billing-toggle-btn {
    padding: 10px 28px; border-radius: 50px; border: none;
    background: transparent; color: var(--text-secondary);
    font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: color 0.25s, background 0.25s;
    position: relative; z-index: 1;
}
.billing-toggle-btn.active {
    background: var(--gradient); color: #0a0a0f;
}
.billing-toggle-badge {
    display: inline-block; margin-left: 8px;
    padding: 2px 8px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
    background: rgba(34,197,94,0.15); color: #22c55e;
    vertical-align: middle;
}
.billing-toggle-btn.active .billing-toggle-badge {
    background: rgba(0,0,0,0.15); color: #0a0a0f;
}
.pricing-card .pricing-original {
    font-size: 1.1rem; color: var(--text-muted);
    text-decoration: line-through; margin-right: 8px;
    font-weight: 400; font-family: 'Syne', sans-serif;
}
.pricing-card .pricing-save-badge {
    display: none; margin-top: 4px;
    font-size: 0.78rem; color: #22c55e; font-weight: 600;
}
.pricing-card .pricing-save-badge.visible { display: block; }
.pricing-card .pricing-annual-note {
    display: none; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px;
}
.pricing-card .pricing-annual-note.visible { display: block; }

/* === CTA BANNER === */
.cta-banner {
    padding: var(--section-pad) 0 calc(var(--section-pad) + 20px);
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}
.cta-box {
    text-align: center;
    padding: 72px 48px;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,107,0,0.1), transparent 70%),
                var(--bg-surface);
    border: 1px solid rgba(255,107,0,0.1);
    position: relative; overflow: hidden;
}
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.cta-box p {
    color: var(--text-secondary);
    max-width: 480px; margin: 0 auto 36px;
    font-size: 1.05rem;
}

/* === FOOTER === */
.footer {
    padding: 48px 0 36px;
    border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}
.footer-content {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
}
.footer-brand-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.1rem;
}
.footer-copy {
    color: #8A8698;
    font-size: 0.82rem;
    margin: 0;
    text-align: right;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none; font-size: 0.85rem;
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--text); }

/* Footer Tip */
.footer-tip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    flex-wrap: wrap;
}
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 12px;
    flex-wrap: wrap;
}
.footer-tip-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.footer-tip-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    background: var(--gradient);
    color: #0a0a0f;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.footer-tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}
.footer-tip-btn svg { flex-shrink: 0; }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback: show content after 3s if JS failed to load (no .js-ready on html) */
html:not(.js-ready) .reveal { animation: revealFallback 0.7s 3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }

/* Hero-specific entrance */
.hero-reveal {
    opacity: 0; transform: translateY(20px);
    animation: heroEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.15s; }
.hero-reveal:nth-child(2) { animation-delay: 0.3s; }
.hero-reveal:nth-child(3) { animation-delay: 0.45s; }
.hero-reveal:nth-child(4) { animation-delay: 0.6s; }
@keyframes heroEnter {
    to { opacity: 1; transform: translateY(0); }
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(6,6,11,0.95);
    z-index: 99;
    display: flex; flex-direction: column;
    /* Hidden by default — checkbox :checked toggles visibility */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu-scroll {
    flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 32px 24px;
}
.mobile-menu-footer {
    flex-shrink: 0;
    padding: 16px 24px 32px;
    border-top: 1px solid var(--glass-border);
}
.mobile-menu-cta {
    display: block; padding: 14px 20px;
    background: var(--gradient); color: #0a0a0f;
    text-align: center; font-weight: 700; font-size: 1.05rem;
    border-radius: 50px; text-decoration: none;
}
.mobile-menu-cta-ghost {
    display: block; padding: 13px 20px;
    background: transparent; color: var(--text);
    text-align: center; font-weight: 600; font-size: 1.0rem;
    border-radius: 50px; text-decoration: none;
    border: 1px solid var(--border-hover);
    margin-bottom: 10px;
}
/* CSS-only menu via checkbox hack — label toggles #menuToggle input */
.menu-toggle-input:checked ~ .mobile-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
/* Hide beta banner when mobile menu is open so the panel sits at top edge
   without the banner stealing ~50px of vertical space on small screens. */
.menu-toggle-input:checked ~ .rd-beta-banner { display: none; }

.mobile-menu-scroll a {
    display: block; padding: 14px 20px;
    color: var(--text); text-decoration: none;
    font-size: 1.1rem; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.25s;
}
.mobile-menu-scroll a:hover { background: rgba(255,255,255,0.05); }

/* Mobile products dropdown (checkbox hack) */
.mobile-products-toggle-input { display: none; }
.mobile-products-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    color: var(--text); font-size: 1.1rem; font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.25s;
}
.mobile-products-toggle:hover { background: rgba(255,255,255,0.05); }
.mobile-products-toggle svg {
    transition: transform 0.25s;
}
.mobile-products-toggle-input:checked + .mobile-products-toggle svg {
    transform: rotate(180deg);
}
.mobile-products-submenu {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 16px;
}
.mobile-products-toggle-input:checked + .mobile-products-toggle + .mobile-products-submenu {
    max-height: 400px;
}
.mobile-products-submenu a {
    font-size: 1rem;
    padding: 12px 20px;
    color: var(--text-secondary);
}
.mobile-products-submenu a:hover {
    color: var(--text);
}

/* Lock scroll when menu open */
body:has(.menu-toggle-input:checked) { overflow: hidden; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.featured { order: -1; }
    .pricing-card.custom-card { order: 1; }
}
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-cta.desktop { display: none; }
    .nav-hamburger { display: block; }
}
@media (max-width: 768px) {

    /* Disable heavy decorative layers on mobile to reduce compositing overhead */
    .noise { display: none; }
    .grid-bg { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 20px; }

    .comparison-table { font-size: 0.85rem; }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 12px 14px; }

    .hero-float { display: none; }
    .hero-infinity { width: 400px; height: 200px; }

    /* Force content visible on mobile — CSS animation unreliable on iOS WebKit */
    .hero-reveal { opacity: 1; transform: none; animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; animation: none; }

    /* Prevent hero from clipping title text on narrow screens */
    .hero { overflow: visible; }

    .cta-box { padding: 48px 24px; }

    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    /* Section headers */
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

    /* Page content */
    .page-content { padding-top: calc(var(--nav-h) + 40px); }

    /* Comparison table scroll hint */
    .comparison-table-wide { min-width: 650px; }

    /* Data tables horizontal scroll */
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Touch-friendly scroll for wide content */
    [style*="overflow-x"] { -webkit-overflow-scrolling: touch; }

    /* Mobile menu improvements */
    .mobile-menu-scroll a { min-height: 48px; display: flex; align-items: center; }

    /* Builder blocks */
    .builder-block { padding: 24px 20px; }

    /* FAQ accordion */
    .faq-summary { padding: 16px 20px; font-size: 0.92rem; }
    .faq-content { padding: 0 20px 16px; }

    /* Blog post meta wrap */
    .blog-post-meta { flex-wrap: wrap; gap: 8px 16px; }

    /* Forms touch targets — 16px prevents iOS auto-zoom on focus */
    .form-input, .form-textarea, .form-select { min-height: 48px; font-size: 16px; }

    /* Buttons touch targets */
    .btn-primary, .btn-secondary { min-height: 48px; }
    .pricing-btn { min-height: 48px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }

    /* Tighter spacing on small screens */
    .container { padding: 0 16px; }
    .hero-content { padding: 40px 16px 60px; }
    .hero-sub { margin-bottom: 32px; font-size: 0.95rem; }

    /* Stats */
    .stat-item { padding: 20px 12px; }
    .stat-value { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    .stat-label { font-size: 0.78rem; }

    /* Pricing */
    .pricing-card { padding: 28px 20px; }
    .pricing-price { font-size: 2.2rem; }
    .pricing-features li { font-size: 0.85rem; padding: 6px 0; }

    /* CTA */
    .cta-box { padding: 36px 20px; }
    .cta-box h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .cta-box p { font-size: 0.92rem; }

    /* Footer */
    .footer-links { gap: 8px 16px; }
    .footer-links a { font-size: 0.8rem; }
    .footer-tip { flex-direction: column; gap: 10px; text-align: center; }
    .footer-tip-text { font-size: 0.82rem; }

    /* Blog cards compact */
    .blog-card-image, .blog-card-image-placeholder { height: 160px; }
    .blog-card-body { padding: 18px; }
    .blog-card-title { font-size: 1rem; }

    /* FAQ compact */
    .faq-summary { padding: 14px 16px; font-size: 0.88rem; gap: 12px; }
    .faq-content { padding: 0 16px 14px; }
    .faq-content p { font-size: 0.88rem; }

    /* Builder compact */
    .builder-block { padding: 20px 16px; }
    .builder-block-title { font-size: 0.95rem; }
    .summary-card { padding: 24px 20px; }
    .device-count { font-size: 2rem; }

    /* Comparison table smaller */
    .comparison-table-wide { min-width: 560px; }
    .comparison-table-wide thead th { padding: 12px 10px; font-size: 0.82rem; }
    .comparison-table-wide tbody td { padding: 10px; font-size: 0.8rem; }

    /* Buttons full width */
    .btn-primary, .btn-secondary { padding: 14px 28px; }

    /* Card padding */
    .card { padding: 24px 20px; }

    /* Blog post single */
    .blog-post-content p { font-size: 0.95rem; }
    .blog-post-cover { max-height: 280px; }

    /* Page title */
    .page-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
    .page-subtitle { font-size: 0.95rem; margin-bottom: 32px; }
}

/* Very small screens (320px-360px) */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero-content { padding: 32px 12px 48px; }
    .hero-title-line1,
    .page-g-loop .hero-title-line1, .page-g-storage .hero-title-line1,
    .page-g-print .hero-title-line1 { font-size: clamp(1.3rem, 7vw, 2rem); }
    .hero-title-line2,
    .page-g-loop .hero-title-line2, .page-g-print .hero-title-line2 { font-size: clamp(1.2rem, 6.5vw, 1.8rem); }
    .hero-eyebrow-text { font-size: 0.72rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 16px 12px; }
    .feature-card { padding: 24px 20px; }
    .feature-card h3 { font-size: 1.05rem; }
    .feature-card p { font-size: 0.88rem; }
    .section-header h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
    .section-header p { font-size: 0.92rem; }
    .pricing-card { padding: 24px 16px; }
    .cta-box { padding: 28px 16px; }
    .mobile-menu-scroll { padding: 20px 16px; }
    .mobile-menu-footer { padding: 12px 16px 24px; }
    .printer-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .printer-card-inner { padding: 12px 8px; }
    .printer-card-name { font-size: 0.88rem; }
}

/* === ADDITIONAL PAGE STYLES === */

/* Page container for non-landing pages */
.page-content {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: var(--section-pad);
    min-height: 100vh;
    min-height: 100dvh;
}

.page-content .container {
    max-width: 900px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.82rem;
    margin-top: 4px;
}

/* Cards */
.card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    /* backdrop-filter removed for performance */
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

/* Alert / Flash messages */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-accent {
    background: var(--accent-soft);
    color: var(--accent-light);
}

.badge-green {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table thead th {
    padding: 14px 20px;
    background: var(--bg-surface);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s;
}

.pagination a {
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.pagination .current {
    background: var(--gradient);
    color: #0a0a0f;
    font-weight: 600;
}

/* === FAQ ACCORDION (details/summary) === */
.faq-item {
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    /* backdrop-filter removed for performance */
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: var(--glass-border-hover);
}
.faq-item[open] {
    border-color: rgba(255,107,0,0.15);
}
.faq-summary {
    padding: 20px 24px;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.3s;
    user-select: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item[open] .faq-summary::after {
    transform: rotate(-135deg);
}
.faq-summary:hover {
    color: var(--accent-light);
}
.faq-content {
    padding: 0 24px 20px;
}
.faq-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}
.faq-content code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(6, 6, 11, 0.95);
    /* W9: removed backdrop-filter — invisible at 95% opacity */
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}
.cookie-banner.is-visible {
    animation: cookieSlideUp 0.4s ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.cookie-banner-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
}
.cookie-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
}
.cookie-btn-outline:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text);
}
.cookie-btn-primary {
    background: var(--gradient);
    border: none;
    color: #0a0a0f;
    font-weight: 700;
}
.cookie-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.cookie-banner-details {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 16px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cookie-category:last-of-type {
    border-bottom: none;
}
.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cookie-category-info strong {
    color: var(--text);
    font-size: 0.9rem;
}
.cookie-category-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.cookie-always-on {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    transition: background 0.3s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}
.cookie-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.cookie-toggle input:focus-visible + .cookie-toggle-slider {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookie-banner-main {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }
    .cookie-category {
        gap: 12px;
    }
}

/* ══════════════════════════════════════
   Homepage: Section Spacing
   ══════════════════════════════════════ */
.home-products,
.home-printers,
.home-contests,
.home-blog {
    padding: var(--section-pad) 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ══════════════════════════════════════
   Homepage: Beta Banner
   ══════════════════════════════════════ */
.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255,107,0,0.12) 0%, rgba(255,184,0,0.08) 100%), rgba(6,6,11,0.95);
    border-bottom: 1px solid rgba(255,107,0,0.25);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.beta-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.beta-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.beta-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.beta-banner-text strong {
    color: var(--accent);
    white-space: nowrap;
}
.beta-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.beta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.beta-banner-btn:hover {
    background: var(--accent-hover);
}
.beta-banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.beta-banner-close:hover {
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .beta-banner {
        position: fixed;
        top: auto;
        bottom: 16px;
        left: 12px;
        right: 12px;
        border-bottom: none;
        border-radius: 14px;
        border: 1px solid rgba(255,107,0,0.3);
        box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,0,0.1) inset;
        transform: translateY(120%);
    }
    .beta-banner.visible {
        transform: translateY(0);
    }
    .beta-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 10px;
    }
    .beta-banner-text {
        flex-direction: column;
        justify-content: center;
        font-size: 0.82rem;
        gap: 4px;
    }
    .beta-banner-text strong {
        font-size: 0.9rem;
    }
    .beta-banner-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
    .beta-banner-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════
   Homepage: Products Grid
   ══════════════════════════════════════ */
.home-products .container { max-width: 1400px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
}
.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.product-card:hover { border-color: var(--glass-border-hover); }
.product-card-header { margin-bottom: 16px; }
.product-card-icon { margin-bottom: 12px; }
.product-card-title { font-size: 1.3rem; font-weight: 700; }
.product-card-subtitle {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.product-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.product-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.product-card-features li svg { color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════
   Homepage: Compatibility Table
   ══════════════════════════════════════ */
.compat-table {
    max-width: 560px;
    margin: 48px auto 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.compat-row {
    display: flex;
    align-items: center;
    padding: 20px 32px;
}
.compat-row + .compat-row {
    border-top: 1px solid var(--glass-border);
}
.compat-series {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    min-width: 100px;
    flex-shrink: 0;
}
.compat-models {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.compat-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    margin: 0 12px;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .compat-row { padding: 16px 20px; }
    .compat-series { min-width: 80px; font-size: 0.75rem; }
    .compat-models { font-size: 0.88rem; }
    .compat-dot { margin: 0 8px; }
}

/* ══════════════════════════════════════
   Homepage: Blog Preview
   ══════════════════════════════════════ */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
@media (max-width: 768px) {
    .blog-preview-grid { grid-template-columns: 1fr; }
}
.blog-preview-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}
.blog-preview-card:hover { border-color: var(--glass-border-hover); }

/* ══════════════════════════════════════
   Homepage: Contest Cards
   ══════════════════════════════════════ */
.contest-grid {
    display: grid;
    gap: 20px;
    margin-top: 48px;
}
.contest-grid-1 { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
.contest-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; }
.contest-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .contest-grid-2,
    .contest-grid-3 { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
.contest-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.3s;
    display: flex;
    flex-direction: column;
}
.contest-card:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.contest-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.contest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contest-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glass-border);
}
.contest-card-body { padding: 20px; }

/* Focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 1023px) {
    .feature-panel {
        min-height: 320px;
        contain-intrinsic-size: 0 320px;
    }
    .feature-panel-text {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .feature-panel,
    .feature-panel:nth-child(even) {
        flex-direction: column;
    }
    .feature-panel {
        contain-intrinsic-size: 0 480px;
    }
    .feature-panel-text {
        padding: 24px 20px;
        flex: none;
    }
    .feature-panel-video {
        flex: none;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .feature-panel:nth-child(even) {
        border-radius: var(--radius);
    }
    .feature-panel:nth-child(even) .feature-panel-video,
    .feature-panel:nth-child(even) .feature-panel-text {
        border-radius: 0;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .infinity-trace { animation: none; }
    [class*="hero-"] { animation: none; }
    .cookie-banner { animation: none; }
}
