/* ============================================
   PastePaw — Cinematic Pro Utility Design
   Light & Dark Mode Supported
   ============================================ */

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

:root {
    /* Light Mode Default Variables */
    --bg-base: #f9fafb;
    --bg-nav: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-panel: #ffffff;
    
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-subtle: #9ca3af;
    
    /* Cinematic Accents */
    --accent-glow-1: rgba(14, 165, 233, 0.15); /* Light blue */
    --accent-glow-2: rgba(124, 58, 237, 0.15); /* Light purple */
    --accent-glow-3: rgba(236, 72, 153, 0.15); /* Light pink */
    
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
    
    /* Utility Colors */
    --color-green: #059669;
    --color-blue: #2563eb;
    --color-orange: #d97706;
    --color-cyan: #0891b2;
    --color-red: #dc2626;
    --color-purple: #7c3aed;
    --color-pink: #db2777;

    /* Borders & Shadows */
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-strong: rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
    
    /* Buttons / Keys */
    --kbd-bg: #f3f4f6;
    --kbd-border: #e5e7eb;
    --btn-primary-bg: #111827;
    --btn-primary-text: #ffffff;
    
    /* UI Window controls (macOS) */
    --mac-close: #ff5f56;
    --mac-min: #ffbd2e;
    --mac-max: #27c93f;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.5s;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii */
    --radius-pill: 9999px;

    /* Aliases (used by helper-download page inline styles) */
    --bg-secondary: var(--bg-glass);
    --border-color: var(--border-glass);
    --accent: var(--color-blue);
    --grad-hero: var(--accent-gradient);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: #030303;
        --bg-nav: rgba(10, 10, 10, 0.7);
        --bg-glass: rgba(20, 20, 20, 0.6);
        --bg-panel: #111111;
        
        --text-main: #ffffff;
        --text-muted: #a1a1aa;
        --text-subtle: #52525b;
        
        --accent-glow-1: rgba(0, 200, 255, 0.15);
        --accent-glow-2: rgba(138, 43, 226, 0.15);
        --accent-glow-3: rgba(255, 0, 128, 0.15);
        
        --color-green: #10b981;
        --color-blue: #3b82f6;
        --color-orange: #f59e0b;
        --color-cyan: #06b6d4;
        --color-red: #ef4444;
        --color-purple: #a855f7;
        --color-pink: #ec4899;

        --border-glass: rgba(255, 255, 255, 0.1);
        --border-glass-strong: rgba(255, 255, 255, 0.2);
        --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 30px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255,255,255,0.02);
        
        --kbd-bg: #27272a;
        --kbd-border: #3f3f46;
        --btn-primary-bg: #ffffff;
        --btn-primary-text: #000000;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Accessibility Focus */
:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

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

section {
    padding: clamp(64px, 8vw, 120px) 0;
}

/* --- Mesh Background (Cinematic Feel) --- */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-base);
}

.mesh-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vh; background: var(--accent-glow-1); animation-delay: 0s; }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vh; background: var(--accent-glow-2); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vh; background: var(--accent-glow-3); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* --- Core UI Components --- */
.floating-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.heavy-shadow {
    box-shadow: var(--shadow-heavy);
}

.glass-pill {
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
}

.hover-lift {
    transition: transform var(--duration) var(--ease-elastic), box-shadow var(--duration) var(--ease-out), border-color 0.2s;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-glass-strong);
}

/* Window Controls (macOS style) */
.window-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.window-controls .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.window-controls .close { background: var(--mac-close); }
.window-controls .min { background: var(--mac-min); }
.window-controls .max { background: var(--mac-max); }

/* --- Navbar --- */
.site-nav {
    position: sticky;
    top: 24px;
    z-index: 100;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.nav-container {
    border-radius: var(--radius-pill);
    padding: 8px 12px 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-link-special {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main) !important;
}

.badge-mini {
    background: var(--text-main);
    color: var(--bg-base);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    gap: 8px;
    cursor: pointer;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass-strong);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-panel);
    transform: translateY(-2px);
}

/* --- Language Switcher --- */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.lang-drop-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-drop-btn:hover {
    color: var(--text-main);
    border-color: var(--border-glass-strong);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    list-style: none;
    padding: 8px;
    min-width: 150px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s var(--ease-out);
    pointer-events: none;
    transform-origin: top right;
}

.lang-dropdown-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
}

.lang-option:hover {
    background: var(--bg-base);
    color: var(--text-main);
}

.lang-option.active {
    color: var(--text-main);
    background: var(--bg-glass);
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 32px;
    box-shadow: var(--shadow-glass);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.text-gradient-vibrant {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 640px;
    font-weight: 400;
}

.app-store-btn img {
    height: 56px;
}

/* --- Showcase Window (The Slider) --- */
.showcase-container {
    padding: 0 16px;
}

.showcase-window {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 16px;
    position: relative;
    /* Adding an inner border ring for that premium render feel */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--shadow-heavy);
}

.showcase-window .window-controls {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 20;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000; /* Deep black behind slides */
}

.slider-track {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s var(--ease-out);
    transform: scale(1.02);
    will-change: transform, opacity;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    box-shadow: var(--shadow-glass);
}

.slider-arrow i { width: 24px; height: 24px; }
.slider-arrow.prev { left: -24px; }
.slider-arrow.next { right: -24px; }

/* --- Theme Marquee (Infinite Scroll) --- */
.themes-marquee-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.marquee-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.marquee-wrapper {
    width: 100%;
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 16px;
    animation: scroll 30s linear infinite;
    padding-left: 16px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 8px)); }
}

.theme-pill {
    padding: 12px 28px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    box-shadow: var(--shadow-glass);
}

.theme-pill[class*="glow-"] {
    color: var(--text-main);
    border-color: var(--border-glass-strong);
}

.glow-cyan { box-shadow: 0 0 20px var(--accent-glow-1); }
.glow-pink { box-shadow: 0 0 20px var(--accent-glow-3); }
.glow-green { box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }
.glow-purple { box-shadow: 0 0 20px var(--accent-glow-2); }

/* --- Features Layout (Asymmetric Rows) --- */
.offset-features {
    display: flex;
    flex-direction: column;
    gap: clamp(80px, 8vw, 120px);
    padding-top: clamp(100px, 12vw, 160px);
    padding-bottom: clamp(80px, 8vw, 120px);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse > :first-child {
    order: 2;
}
.feature-row.reverse > :last-child {
    order: 1;
}

.single-centered {
    display: flex;
    justify-content: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.single-centered .feature-text {
    align-items: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon-badge {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-glass);
}
.feature-icon-badge i { width: 32px; height: 32px; }

.green-tint { color: var(--color-green); }
.blue-tint { color: var(--color-blue); }
.orange-tint { color: var(--color-orange); }
.cyan-tint { color: var(--color-cyan); }
.red-tint { color: var(--color-red); }

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Shortcuts Terminal --- */
.section-shortcuts {
    padding-bottom: clamp(80px, 8vw, 120px);
}

.shortcuts-terminal {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0,0,0,0.2);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.terminal-body {
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

.terminal-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.terminal-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.shortcuts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shortcut-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.sc-desc {
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 0.95rem;
}

.sc-keys {
    display: flex;
    gap: 8px;
}

kbd {
    font-family: var(--font-mono);
    background: var(--kbd-bg);
    border: 1px solid var(--kbd-border);
    border-bottom-width: 3px;
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    min-width: 36px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* --- Support, Privacy, Terms Pages --- */
.page-content {
    max-width: 800px;
    margin: 80px auto;
}

.content-card {
    padding: 64px;
    border-radius: 24px;
    margin-bottom: 40px;
}

.content-card h1 { margin-bottom: 24px; text-align: center; font-size: 3rem; }
.content-card h2 { margin-top: 64px; margin-bottom: 24px; font-size: 1.75rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 16px; }
.content-card h3 { margin-top: 40px; margin-bottom: 16px; font-size: 1.3rem; }
.content-card p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }
.content-card ul, .content-card ol { margin-bottom: 32px; padding-left: 24px; color: var(--text-muted); font-size: 1.1rem; }
.content-card li { margin-bottom: 12px; }
.content-card a { color: var(--color-blue); text-decoration: none; font-weight: 500; }
.content-card a:hover { text-decoration: underline; }

.highlight-box {
    background: var(--bg-base);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--color-blue);
    margin: 40px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 48px;
    padding: 12px 24px;
}

.back-btn:hover {
    color: var(--text-main);
}

details.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: background 0.2s;
}
details.faq-item:hover {
    background: var(--bg-base);
}
details.faq-item summary {
    list-style: none;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary i { transform: rotate(180deg); }
details.faq-item div {
    padding: 0 24px 24px 60px;
    font-size: 1.05rem;
}

/* Subpage Bento Grid for Support */
.bento-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.support-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
}

.support-card i {
    width: 40px; height: 40px;
    margin-bottom: 24px;
}

.support-card h3 { margin-bottom: 12px; }
.support-card p { color: var(--text-muted); margin-bottom: 32px; }

/* --- Footer --- */
.site-footer {
    padding: 100px 0 60px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 64px;
    margin-bottom: 80px;
}

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

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand h2 {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-subtle);
    max-width: 300px;
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    gap: 100px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    color: var(--text-subtle);
    font-size: 0.9rem;
}

/* --- Scroll Anchors (offset for sticky nav) --- */
#features, #shortcuts {
    scroll-margin-top: 100px;
}

/* --- Ambient Glow (subpages) --- */
.ambient-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vh;
    background: var(--accent-glow-1);
    filter: blur(100px);
    opacity: 0.5;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.ambient-glow.secondary {
    top: auto;
    bottom: -20%;
    left: auto;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: var(--accent-glow-2);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .feature-row, .terminal-body {
        grid-template-columns: 1fr;
        gap: 64px;
        text-align: center;
    }
    .feature-row.reverse > :first-child,
    .feature-row.reverse > :last-child {
        order: 0;
    }
    .feature-text {
        align-items: center;
    }
    .shortcuts-terminal {
        margin: 0 16px;
    }
    .bento-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0 20px;
    }

    .nav-container {
        width: 100%;
        position: relative;
        gap: 12px;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
    }

    .nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--bg-panel);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border-glass);
        border-radius: 16px;
        padding: 12px;
        gap: 2px;
        box-shadow: var(--shadow-heavy);
        z-index: 200;
    }

    .nav-open .nav-links a {
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav-open .nav-links a:hover,
    .nav-open .nav-links a:active {
        background: var(--bg-glass);
    }

    .nav-open .nav-links .lang-switcher {
        margin-left: 0;
        padding: 8px 16px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content-wrapper {
        margin-bottom: 48px;
    }

    .showcase-window {
        padding: 8px;
    }

    .content-card {
        padding: 32px 24px;
    }

    .terminal-body {
        padding: 32px 16px;
    }

    .feature-text h2 {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 36px; height: 36px;
    }
    .slider-arrow.prev { left: -18px; }
    .slider-arrow.next { right: -18px; }

    .footer-grid {
        flex-direction: column;
        gap: 48px;
    }
    .footer-nav {
        gap: 40px;
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .site-footer {
        padding: 64px 0 40px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

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