@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    
    /* Colors - Refined accent scale */
    --accent: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --accent-light: #8b5cf6;
    --accent-medium: #7c3aed;
    --accent-dark: #6d28d9;
    
    /* Backgrounds */
    --bg-dark: #09090b;
    --bg-card: rgba(255,255,255,0.03);
    --bg-glass: rgba(255,255,255,0.05);
    
    /* Borders */
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    
    /* Text */
    --text: #fafafa;
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Grain/Noise Overlay - 2.5% opacity */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

.site-main {
    position: relative;
    z-index: 1;
}

/* Background layers */
.bg-gradient {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168,85,247,0.08), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(236,72,153,0.06), transparent);
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Refined glow - slower rotation (40s) with prefers-reduced-motion */
.bg-glow {
    position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px; z-index: 0;
    background: conic-gradient(from 180deg at 50% 50%,
        rgba(99,102,241,0.3) 0deg,
        rgba(168,85,247,0.2) 120deg,
        rgba(236,72,153,0.15) 240deg,
        rgba(99,102,241,0.3) 360deg);
    filter: blur(100px);
    animation: glowRotate 40s linear infinite;
    opacity: 0.5;
}

@keyframes glowRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-glow {
        animation: none;
    }
}

/* Fade up animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gradient text shimmer */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    @keyframes shimmer {
        0% { background-position: 0% 50%; }
        100% { background-position: 0% 50%; }
    }
}

/* Scroll reveal animation */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    background: rgba(9,9,11,0.75);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

.nav-toggle-icon-close { display: none; }
.nav-toggle.is-active .nav-toggle-icon-open { display: none; }
.nav-toggle.is-active .nav-toggle-icon-close { display: inline; }

.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: inherit;
}

.nav-brand .logo-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.nav-brand .logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-text .brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav-brand-text .product-name {
    font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
}

.nav-links {
    display: flex; gap: 28px; list-style: none; align-items: center;
}

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

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

.nav-cta {
    padding: 10px 18px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important; font-weight: 600;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.nav-cta:hover { opacity: 0.95; }

.nav-badge {
    padding: 6px 14px; border-radius: 20px;
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    color: var(--accent); font-size: 0.75rem; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    margin-left: auto;
    margin-right: 12px;
}

.nav-badge:hover {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.45);
    color: #c7d2fe;
}

/* Hero */
.hero {
    position: relative; z-index: 10;
    text-align: center;
    padding: 88px 40px 48px;
    max-width: 920px; margin: 0 auto;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
}

.hero-badge i { color: var(--accent); }
.hero-badge a {
    color: var(--accent); text-decoration: none; font-weight: 600;
}

.hero-badge a:hover { text-decoration: underline; }

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-2) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 .gradient-text {
        animation: none;
    }
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-muted);
    max-width: 580px; margin: 0 auto 32px;
    line-height: 1.7;
    animation: fadeUp 0.8s ease 0.2s both;
}

/* Stats strip */
.hero-stats {
    display: flex; justify-content: center; gap: 32px;
    margin: 24px auto 32px;
    animation: fadeUp 0.8s ease 0.25s both;
}

.hero-stat {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-muted);
}

.hero-stat strong {
    color: var(--text);
    font-weight: 600;
}

.hero-stat i {
    color: var(--accent);
    font-size: 0.75rem;
}

.hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary, .btn-secondary {
    padding: 14px 24px; border-radius: 12px;
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.4); }

.btn-secondary {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* Hero product frame - tilted browser mockup */
.hero-product {
    position: relative;
    margin: 48px auto 0;
    max-width: 900px;
    perspective: 1200px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-product-frame {
    transform: rotateX(8deg) scale(0.95);
    transform-origin: center top;
    transition: transform 0.5s ease;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-product-frame:hover {
    transform: rotateX(4deg) scale(0.97);
}

.hero-product-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.hero-product-chrome .dot {
    width: 10px; height: 10px; border-radius: 50%;
}

.hero-product-chrome .dot.r { background: #ef4444; }
.hero-product-chrome .dot.y { background: #eab308; }
.hero-product-chrome .dot.g { background: #22c55e; }

.hero-product-chrome .url {
    flex: 1;
    margin-left: 12px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.hero-product-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Section shell */
.section {
    position: relative; z-index: 10;
    max-width: 1140px; margin: 0 auto;
    padding: 72px 40px;
}

.section-header {
    text-align: center; margin-bottom: 48px;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-weight: 700; margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto;
}

/* Demo / upload - Glass card with animated dashed border */
#demo { padding-top: 24px; padding-bottom: 48px; }

.upload-card {
    max-width: 640px; margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.upload-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), transparent, rgba(168,85,247,0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.upload-card:hover::before {
    opacity: 1;
}

/* Animated dashed border on drag */
.upload-card.drag-active {
    border-color: var(--accent);
    animation: dashBorder 1.5s linear infinite;
}

@keyframes dashBorder {
    0% { border-color: var(--accent); }
    50% { border-color: var(--accent-2); }
    100% { border-color: var(--accent); }
}

.flash-messages { margin-bottom: 16px; }
.flash-error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5; padding: 12px 16px; border-radius: 10px; font-size: 0.85rem;
}

.drop-zone {
    border: 1.5px dashed rgba(255,255,255,0.15);
    border-radius: 14px; padding: 48px 24px;
    text-align: center; cursor: pointer;
    transition: all 0.3s; position: relative; margin-bottom: 24px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(99,102,241,0.05);
}

.drop-zone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

.drop-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
    border: 1px solid rgba(99,102,241,0.3); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent);
}

.drop-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.drop-text strong { color: var(--text); }

.file-name {
    display: none; margin-top: 12px; padding: 10px 16px;
    background: rgba(99,102,241,0.1); border-radius: 8px;
    color: var(--accent); font-weight: 600; font-size: 0.85rem;
}

.upload-formats {
    display: flex; gap: 8px; justify-content: center;
    margin-bottom: 24px; flex-wrap: wrap;
}

.format-tag {
    padding: 6px 12px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}

.submit-btn {
    width: 100%; padding: 16px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}

/* Product showcase (Bento grid) */
.showcase-section {
    overflow: hidden;
}

.showcase-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: start;
}

.showcase-tile {
    grid-column: span 4;
    align-self: start;
    position: relative;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s, box-shadow 0.35s;
}

.showcase-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.18);
}

.showcase-tile-hero {
    grid-column: span 8;
}

.showcase-tile-wide {
    grid-column: span 8;
}

.showcase-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Spotlight border effect */
.showcase-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(99, 102, 241, 0.4), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.showcase-tile:hover::after {
    opacity: 1;
}

.showcase-frame {
    position: relative;
    z-index: 1;
    background: #121214;
    border-bottom: 1px solid var(--border);
}

.showcase-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.showcase-chrome .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.showcase-chrome .dot.r { background: #ef4444; }
.showcase-chrome .dot.y { background: #eab308; }
.showcase-chrome .dot.g { background: #22c55e; }

.showcase-url {
    flex: 1;
    margin-left: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.showcase-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #0c0c0f;
}

.showcase-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(9, 9, 11, 0.5));
    pointer-events: none;
}

.showcase-img-wrap img {
    width: 100%;
    max-height: 240px;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-tile-hero .showcase-img-wrap img {
    max-height: 300px;
}

.showcase-tile:hover .showcase-img-wrap img {
    transform: scale(1.03);
}

.showcase-caption {
    padding: 16px 20px 20px;
    position: relative;
    z-index: 1;
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 10px;
}

.showcase-caption h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.showcase-caption p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Lightbox modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.lightbox-overlay.is-active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Features - Fresh modern card grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.product-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 62%);
    filter: blur(4px);
    pointer-events: none;
    animation: glowDrift 6s ease-in-out infinite;
}

.product-card:hover:not(.coming-soon) {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.16);
    filter: saturate(1.05);
}

.product-card.featured {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    border-color: rgba(99,102,241,0.24);
    grid-column: span 2;
    grid-row: span 2;
    min-height: 280px;
}

.product-card.coming-soon {
    opacity: 0.78;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.product-card.feature-title-compact h3 {
    font-size: 0.9rem;
}

.product-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

@keyframes glowDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate3d(-6px, 6px, 0) scale(1.08); opacity: 1; }
}

/* Formats - Horizontal glass pills with hover glow */
.formats-row {
    text-align: center; padding: 48px 40px 24px;
}

.formats-row h3 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-dim); margin-bottom: 24px; font-weight: 600;
}

.format-logos {
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}

.format-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: default;
}

.format-pill:hover {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 0 20px rgba(99,102,241,0.15);
    transform: translateY(-2px);
}

.format-pill i {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.format-pill:hover i {
    color: var(--accent);
}

.format-pill span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Copy pipeline diagram */
.pipeline-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pipeline-arrow {
    color: var(--accent);
    font-size: 0.9rem;
}

/* FAQ - Two-column on desktop */
.faq-list {
    max-width: 900px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

.faq-item {
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item summary {
    padding: 18px 20px;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}

.faq-item summary:hover {
    background: rgba(255,255,255,0.02);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.1rem; font-weight: 400; color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after { 
    content: '−';
    transform: scale(1.2);
}

.faq-item[open] summary {
    color: var(--accent);
}

.faq-item p {
    padding: 0 20px 18px;
    font-size: 0.88rem; color: var(--text-muted);
    line-height: 1.65;
}

.faq-item p a { color: var(--accent); }
.faq-item p code {
    font-size: 0.82rem;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.06);
}

/* FAQ search */
.faq-search {
    max-width: 400px;
    margin: 0 auto 32px;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--accent);
}

.faq-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

/* Changelog - Vertical timeline with gradient line */
.changelog-timeline {
    max-width: 700px; margin: 0 auto;
    position: relative;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3), transparent);
}

.changelog-entry {
    padding: 24px 28px 24px 72px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    margin-bottom: 16px;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent);
    box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.changelog-entry time {
    display: inline-block;
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent);
    font-weight: 700; margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99,102,241,0.1);
}

.changelog-entry h3 {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: 12px;
}

/* Version pill highlight */
.changelog-entry.featured time {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
}

.changelog-entry.featured::before {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(99,102,241,0.5);
}

.changelog-entry ul {
    list-style: none; padding: 0;
}

.changelog-entry li {
    font-size: 0.88rem; color: var(--text-muted);
    padding: 6px 0 6px 18px;
    line-height: 1.55;
    position: relative;
}

.changelog-entry li::before {
    content: '';
    position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.changelog-cta {
    text-align: center; margin-top: 32px;
    font-size: 0.88rem; color: var(--text-muted);
}

.changelog-cta a { color: var(--accent); text-decoration: none; }
.changelog-cta a:hover { text-decoration: underline; }

/* Pricing */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; align-items: stretch;
}

.pricing-card {
    padding: 32px 28px; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; flex-direction: column;
    transition: all 0.3s;
}

.pricing-card:hover { border-color: rgba(255,255,255,0.14); }

.pricing-card.featured {
    border-color: rgba(99,102,241,0.45);
    background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 0 40px rgba(99,102,241,0.12);
    position: relative;
}

.pricing-card.featured .pricing-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    padding: 4px 12px; border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tier { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc {
    font-size: 0.82rem; color: var(--text-muted);
    margin-bottom: 24px; line-height: 1.5; min-height: 2.5em;
}
.pricing-features {
    list-style: none; margin-bottom: 28px; flex: 1;
}
.pricing-features li {
    font-size: 0.84rem; color: var(--text-muted);
    padding: 8px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i {
    color: var(--accent); margin-top: 2px; font-size: 0.75rem;
}
.pricing-cta {
    display: block; text-align: center; padding: 14px;
    border-radius: 12px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.25s;
}
.pricing-cta.outline {
    border: 1px solid var(--border); color: var(--text);
    background: rgba(255,255,255,0.03);
}
.pricing-cta.outline:hover { background: rgba(255,255,255,0.06); }
.pricing-cta.solid {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.pricing-cta.solid:hover { transform: translateY(-1px); }

/* Footer CTA band */
.footer-cta-band {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
}

.footer-cta-band h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 16px;
}

.footer-cta-band p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    position: relative; z-index: 10;
    border-top: 1px solid var(--border);
    padding: 48px 40px 32px;
    max-width: 1140px; margin: 0 auto;
}

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

.footer-brand p {
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.6; margin-top: 12px; max-width: 280px;
}

.footer-col h4 {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-dim); margin-bottom: 14px; font-weight: 600;
}

.footer-col a, .footer-col span {
    display: block; font-size: 0.85rem; color: var(--text-muted);
    text-decoration: none; margin-bottom: 10px;
}

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

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    text-align: center; padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.78rem;
}

.footer-bottom a { color: var(--accent); text-decoration: none; }

.footer-legal {
    display: flex; gap: 20px;
}

.footer-legal a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.78rem; transition: color 0.2s;
}

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

/* Compact footer for app pages */
body.layout-app .footer {
    padding: 24px 40px 16px;
}

body.layout-app .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

body.layout-app .footer-brand p {
    max-width: 100%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(15, 15, 18, 0.95);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    backdrop-filter: blur(16px);
    display: none;
    animation: slideUp 0.3s ease;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner-content {
    max-width: 1140px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1; min-width: 280px;
    font-size: 0.85rem; color: var(--text-muted);
    line-height: 1.6;
}

.cookie-banner-text a { color: var(--accent); text-decoration: none; }
.cookie-banner-text a:hover { text-decoration: underline; }

.cookie-banner-actions {
    display: flex; gap: 12px; flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    border: none;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.cookie-btn-primary:hover { transform: translateY(-1px); }

.cookie-btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
}

.cookie-btn-secondary:hover { background: rgba(255,255,255,0.08); }

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Legal Pages */
.legal-page {
    position: relative; z-index: 10;
    padding: 48px 40px 72px;
}

.legal-container {
    max-width: 780px; margin: 0 auto;
}

.legal-header {
    margin-bottom: 48px;
}

.legal-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.88rem; font-weight: 500;
    margin-bottom: 24px; transition: color 0.2s;
}

.legal-back:hover { color: var(--text); }
.legal-back i { font-size: 0.75rem; }

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.legal-meta {
    color: var(--text-muted); font-size: 0.88rem;
}

.legal-content {
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    font-size: 1.35rem; font-weight: 700;
    margin-bottom: 16px; color: var(--text);
}

.legal-section h3 {
    font-size: 1.05rem; font-weight: 600;
    margin: 24px 0 12px; color: var(--text);
}

.legal-section p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.legal-section ul {
    list-style: none; padding: 0;
    margin-bottom: 16px;
}

.legal-section li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-section li::before {
    content: '';
    position: absolute; left: 0; top: 16px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}

.legal-section a {
    color: var(--accent); text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-section code {
    font-size: 0.88rem;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

/* App pages (preview, batch) with site chrome */
body.layout-app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body.layout-app .site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 1;
}

body.layout-app .app-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.layout-app .footer {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Parallax helper */
.parallax-element {
    will-change: transform;
}

/* Stagger animation for cards */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-bento {
        grid-template-columns: 1fr;
    }
    .showcase-tile,
    .showcase-tile-hero,
    .showcase-tile-wide {
        grid-column: span 1;
        grid-row: auto;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card.featured {
        grid-column: span 2;
    }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-product {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .legal-page { padding: 32px 20px 56px; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    .cookie-btn { width: 100%; }
    .navbar { padding: 14px 20px; }
    .nav-badge { order: 2; margin-left: 0; margin-right: auto; }
    .nav-toggle { display: flex; order: 3; }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        order: 3;
        margin-top: 12px;
        padding: 12px 0 4px;
        border-top: 1px solid var(--border);
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 12px 4px;
        font-size: 0.95rem;
    }
    .nav-links .nav-cta {
        text-align: center;
        margin-top: 8px;
    }
    body.nav-open { overflow: hidden; }
    .hero { padding: 56px 20px 32px; }
    .section { padding: 56px 20px; }
    .upload-card { padding: 28px; }
    .cards-grid { grid-template-columns: 1fr; }
    .product-card.featured { grid-column: span 1; }
    .faq-list { grid-template-columns: 1fr; }
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    .hero-product-frame {
        transform: none;
    }
    .hero-product-frame:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .bg-gradient, .bg-grid, .bg-glow, body::after {
        display: none !important;
    }
    .navbar, .footer, .cookie-banner {
        display: none !important;
    }
}