@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;

    /* Accent palette — electric indigo-to-violet-to-rose */
    --accent:   #6c63ff;
    --accent-2: #b44bfc;
    --accent-3: #ff4d94;
    --accent-rgb: 108, 99, 255;
    --accent-light: #9d8fff;
    --accent-medium: #7c5cfc;
    --accent-dark:  #5443e8;

    /* Backgrounds */
    --bg-dark:  #06060a;
    --bg-card:  rgba(255,255,255,0.032);
    --bg-glass: rgba(255,255,255,0.055);

    /* Borders */
    --border:       rgba(255,255,255,0.075);
    --border-hover: rgba(255,255,255,0.16);
    --border-glow:  rgba(108,99,255,0.45);

    /* Text */
    --text:      #f0f0ff;
    --text-muted: rgba(240,240,255,0.48);
    --text-dim:   rgba(240,240,255,0.28);

    /* Shadows */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:   0 8px 28px rgba(0,0,0,0.45);
    --shadow-lg:   0 20px 56px rgba(0,0,0,0.55);
    --shadow-glow: 0 0 48px rgba(108,99,255,0.22);

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { 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.65;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── Background system ─────────────────────────────────── */

/* Aurora mesh — three slow-drifting blobs */
.bg-gradient {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden;
}

.bg-gradient::before,
.bg-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

/* Blob 1 — top-centre indigo */
.bg-gradient::before {
    width: 900px; height: 700px;
    top: -25%; left: 50%; transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(108,99,255,0.22) 0%, transparent 70%);
    animation: blobDrift1 22s ease-in-out infinite alternate;
}

/* Blob 2 — bottom-right violet */
.bg-gradient::after {
    width: 700px; height: 500px;
    bottom: -10%; right: -10%;
    background: radial-gradient(ellipse, rgba(180,75,252,0.16) 0%, transparent 70%);
    animation: blobDrift2 28s ease-in-out infinite alternate;
}

/* Grid overlay */
.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

/* Conic spotlight glow at top */
.bg-glow {
    position: fixed; top: -250px; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 700px; z-index: 0;
    background: conic-gradient(from 200deg at 50% 50%,
        rgba(108,99,255,0.32) 0deg,
        rgba(180,75,252,0.22) 100deg,
        rgba(255,77,148,0.14) 200deg,
        rgba(108,99,255,0.32) 360deg);
    filter: blur(90px);
    animation: glowSpin 50s linear infinite;
    opacity: 0.55;
}

/* Third blob — left-lower rose */
body::before {
    content: '';
    position: fixed;
    width: 600px; height: 450px;
    bottom: 10%; left: -8%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,77,148,0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    animation: blobDrift3 35s ease-in-out infinite alternate;
    pointer-events: none;
}

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

@keyframes blobDrift1 {
    from { transform: translateX(-55%) translateY(0) scale(1); }
    to   { transform: translateX(-45%) translateY(-40px) scale(1.08); }
}
@keyframes blobDrift2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-60px, -50px) scale(1.12); }
}
@keyframes blobDrift3 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, -60px) scale(1.1); }
}
@keyframes glowSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-glow, .bg-gradient::before, .bg-gradient::after, body::before {
        animation: none;
    }
}

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

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.99);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.stagger-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.stagger-item.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: 14px 40px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(6,6,10,0.72);
    transition: background 0.3s;
}

.nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--border); border-radius: var(--r-sm);
    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.09); border-color: rgba(255,255,255,0.14); }
.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: var(--r-sm);
    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; font-family: var(--font-display); }
.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;
    -webkit-tap-highlight-color: transparent;
}
/* Kill ALL browser default link colour states */
.nav-links a:visited { color: var(--text-muted); }
.nav-links a:active  { color: var(--text-muted); }
.nav-links a:focus   { outline: 2px solid rgba(108,99,255,0.4); outline-offset: 4px; border-radius: 4px; }
.nav-links a:hover   { color: var(--text); }

/* Current-page indicator — set by nav.js adding .nav-active */
.nav-links a.nav-active {
    color: var(--text);
    position: relative;
}
.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0; right: 0;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav-cta {
    padding: 9px 18px; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff !important; font-weight: 700;
    box-shadow: 0 4px 18px rgba(108,99,255,0.4);
    position: relative; overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
}

.nav-cta:hover::after { transform: translateX(100%); }
.nav-cta:hover { box-shadow: 0 6px 24px rgba(108,99,255,0.55); transform: translateY(-1px); }

.nav-badge {
    padding: 5px 13px; border-radius: 100px;
    background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.28);
    color: var(--accent-light); font-size: 0.74rem; 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(108,99,255,0.2); border-color: rgba(108,99,255,0.44); color: #c7d2fe; }

/* ─── Hero ──────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero {
    position: relative; z-index: 10;
    text-align: center;
    padding: 96px 40px 56px;
    max-width: 960px; margin: 0 auto;
}

/* Halo ring behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 60px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(108,99,255,0.12) 0%, transparent 65%);
    pointer-events: none; z-index: -1;
    animation: haloBreath 8s ease-in-out infinite alternate;
}

@keyframes haloBreath {
    from { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.04); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 100px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.25);
    font-size: 0.78rem; color: var(--text-muted);
    margin-bottom: 30px;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-badge i { color: var(--accent); }
.hero-badge a { color: var(--accent-light); text-decoration: none; font-weight: 600; }
.hero-badge a:hover { text-decoration: underline; }

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
    margin-bottom: 22px;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

/* Animated gradient text */
@keyframes shimmer {
    0%   { background-position: 0%   50%; }
    100% { background-position: 300% 50%; }
}

.hero h1 .gradient-text {
    background: linear-gradient(90deg,
        #fff 0%,
        var(--accent-light) 25%,
        var(--accent-2) 50%,
        var(--accent-3) 75%,
        #fff 100%);
    background-size: 300% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}

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

.hero-sub {
    font-size: 1.08rem; color: var(--text-muted);
    max-width: 560px; margin: 0 auto 36px;
    line-height: 1.75;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

/* Stats strip */
.hero-stats {
    display: flex; justify-content: center; gap: 12px;
    margin: 0 auto 36px; flex-wrap: wrap;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.25s both;
}
.hero-stat {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: var(--text-muted);
    padding: 6px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, background 0.3s;
}
.hero-stat:hover { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.07); }
.hero-stat strong { color: var(--text); font-weight: 700; }
.hero-stat i { color: var(--accent); font-size: 0.74rem; }

/* Buttons */
.hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}

.btn-primary, .btn-secondary {
    padding: 13px 26px; border-radius: var(--r-md);
    font-size: 0.94rem; font-weight: 700;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.28s cubic-bezier(0.22,1,0.36,1);
    position: relative; overflow: hidden;
}

/* Shimmer sweep on hover */
.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(108,99,255,0.6), rgba(180,75,252,0.5), transparent);
    transform: translateX(-110%);
    transition: transform 0.5s ease;
}
.btn-primary:hover::after, .btn-secondary:hover::after { transform: translateX(110%); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 22px rgba(108,99,255,0.38),
                inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(108,99,255,0.5),
                inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

/* Hero browser mockup */
.hero-product {
    position: relative;
    margin: 52px auto 0;
    max-width: 920px;
    perspective: 1400px;
    animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}

/* Glow ring behind frame */
.hero-product::before {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 32px;
    background: radial-gradient(ellipse 80% 50% at 50% 50%,
        rgba(108,99,255,0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
}

.hero-product-frame {
    transform: rotateX(7deg) scale(0.95);
    transform-origin: center top;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow:
        0 48px 96px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 80px rgba(108,99,255,0.15);
}
.hero-product-frame:hover { transform: rotateX(3deg) scale(0.975); }

.hero-product-chrome {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 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: 5px 12px;
    background: rgba(255,255,255,0.05); border-radius: 6px;
    font-size: 0.7rem; color: var(--text-dim);
    display: flex; align-items: center; gap: 6px;
}
.hero-product-img { display: block; width: 100%; height: auto; }

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

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .section-label {
    display: inline-block;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--accent); font-weight: 700; margin-bottom: 14px;
    padding: 4px 14px; border-radius: 100px;
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.22);
}
.section-header h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }

/* ─── Demo / Upload card ────────────────────────────────── */
#demo { padding-top: 20px; padding-bottom: 52px; }

.upload-card {
    max-width: 640px; margin: 0 auto;
    background: rgba(255,255,255,0.028);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 40px;
    backdrop-filter: blur(24px);
    position: relative; overflow: hidden;
    transition: border-color 0.4s;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Iridescent gradient border on hover */
.upload-card::before {
    content: '';
    position: absolute; inset: -1px; border-radius: calc(var(--r-xl) + 1px);
    background: linear-gradient(135deg, rgba(108,99,255,0.5), rgba(180,75,252,0.3), rgba(255,77,148,0.25), transparent);
    z-index: -1;
    opacity: 0; transition: opacity 0.5s;
}
.upload-card:hover::before { opacity: 1; }

/* Subtle top glow stripe */
.upload-card::after {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,99,255,0.6), rgba(180,75,252,0.5), transparent);
    pointer-events: none;
}

.upload-card.drag-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15), var(--shadow-md);
}

.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: var(--r-sm); font-size: 0.85rem;
}

/* Drop zone — dashed animated border */
.drop-zone {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    padding: 52px 24px;
    text-align: center; cursor: pointer;
    transition: all 0.35s; position: relative; margin-bottom: 24px;
    background: rgba(255,255,255,0.015);
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(108,99,255,0.06);
    box-shadow: inset 0 0 40px rgba(108,99,255,0.08);
}

/* Animated corner accents on hover */
.drop-zone::before, .drop-zone::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    border-color: var(--accent); border-style: solid;
    opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.drop-zone::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.drop-zone::after  { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.drop-zone:hover::before, .drop-zone:hover::after,
.drop-zone.dragover::before, .drop-zone.dragover::after { opacity: 1; }

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

.drop-icon {
    width: 60px; height: 60px; margin: 0 auto 18px;
    background: linear-gradient(135deg, rgba(108,99,255,0.18), rgba(180,75,252,0.12));
    border: 1px solid rgba(108,99,255,0.3); border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.drop-zone:hover .drop-icon { transform: scale(1.1) translateY(-3px); }

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

.file-name {
    display: none; margin-top: 14px; padding: 10px 16px;
    background: rgba(108,99,255,0.1); border-radius: var(--r-sm);
    color: var(--accent-light); font-weight: 600; font-size: 0.85rem;
    border: 1px solid rgba(108,99,255,0.2);
}

.upload-formats {
    display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap;
}
.format-tag {
    padding: 5px 12px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    font-size: 0.74rem; color: var(--text-muted); font-weight: 500;
    display: flex; align-items: center; gap: 5px;
}

/* Submit button */
.submit-btn {
    width: 100%; padding: 15px; border: none; border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 4px 22px rgba(108,99,255,0.38),
                inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: relative; overflow: hidden;
    font-family: var(--font-display); letter-spacing: 0.01em;
}
.submit-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-110%); transition: transform 0.5s ease;
}
.submit-btn:hover::after { transform: translateX(110%); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108,99,255,0.5), inset 0 1px 0 rgba(255,255,255,0.15); }

/* ─── Showcase bento ────────────────────────────────────── */
.showcase-section { overflow: hidden; }
.showcase-bento {
    display: grid; grid-template-columns: repeat(12, 1fr);
    gap: 18px; align-items: start;
}
.showcase-tile {
    grid-column: span 4; align-self: start;
    position: relative; border-radius: var(--r-lg);
    background: var(--bg-card); border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                border-color 0.4s, box-shadow 0.4s;
}
.showcase-tile:hover {
    transform: translateY(-8px);
    border-color: rgba(108,99,255,0.4);
    box-shadow: 0 28px 64px rgba(108,99,255,0.2), 0 8px 20px rgba(0,0,0,0.3);
}
.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(108,99,255,0.28), transparent 70%);
    pointer-events: none; z-index: 0;
}

/* Iridescent spotlight border */
.showcase-tile::after {
    content: '';
    position: absolute; inset: 0; border-radius: var(--r-lg);
    padding: 1px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(108,99,255,0.5), 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.35s;
}
.showcase-tile:hover::after { opacity: 1; }

.showcase-frame { position: relative; z-index: 1; background: #0d0d12; 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.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.showcase-img-wrap { position: relative; overflow: hidden; line-height: 0; background: #0c0c10; }
.showcase-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6,6,10,0.55));
    pointer-events: none;
}
.showcase-img-wrap img {
    width: 100%; max-height: 240px;
    display: block; object-fit: cover; object-position: top center;
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.showcase-tile-hero .showcase-img-wrap img { max-height: 300px; }
.showcase-tile:hover .showcase-img-wrap img { transform: scale(1.04); }

.showcase-caption { padding: 18px 20px 22px; position: relative; z-index: 1; }
.showcase-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
    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 ──────────────────────────────────────────── */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 10000; display: none; align-items: center; justify-content: center;
    padding: 40px; backdrop-filter: blur(10px);
}
.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: var(--r-md); box-shadow: 0 24px 64px rgba(0,0,0,0.6); }
.lightbox-close {
    position: absolute; top: -44px; right: 0;
    background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 8px;
}

/* ─── Feature list — editorial row design ───────────────── */

/*
 * Layout: a vertical stack of full-width rows separated by hairline
 * dividers. Each row is a two-column split: left = icon + number,
 * right = title + description. "featured" rows get the full-width
 * spotlight treatment with a glowing background panel.
 *
 * HTML class mapping (unchanged from template):
 *   .cards-grid        → the list container
 *   .product-card      → one feature row
 *   .product-card.featured → highlighted full-width row
 *   .product-icon      → icon element
 *   h3 / p             → title / body
 */

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Thin left accent line running the full height */
    position: relative;
}

.cards-grid::before {
    content: '';
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        var(--accent) 15%,
        var(--accent-2) 50%,
        var(--accent-3) 85%,
        transparent);
    opacity: 0.35;
    border-radius: 2px;
}

/* ── counter for auto-numbering ── */
.cards-grid { counter-reset: feature-num; }

/* ── Base row ── */
.product-card {
    counter-increment: feature-num;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 28px;
    align-items: center;
    padding: 28px 24px 28px 28px;
    border-top: 1px solid var(--border);
    position: relative;
    transition: background 0.35s, border-color 0.35s;
    cursor: default;
    overflow: hidden;
}

.product-card:last-child { border-bottom: 1px solid var(--border); }

/* Hover: subtle bg wash */
.product-card:hover {
    background: rgba(108,99,255,0.035);
}

/* Hover: left accent line brightens */
.product-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.35s;
}
.product-card:hover::before { opacity: 1; }

/* ── Left column: number + icon stacked ── */
.product-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Auto-incrementing number */
.product-icon::before {
    content: counter(feature-num, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    line-height: 1;
    transition: color 0.3s;
}
.product-card:hover .product-icon::before { color: var(--accent-light); }

/* Icon bubble */
.product-icon i {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm);
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.18);
    font-size: 1rem; color: var(--accent);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                background 0.35s, border-color 0.35s, color 0.35s;
    flex-shrink: 0;
}
.product-card:hover .product-icon i {
    transform: scale(1.12) rotate(-5deg);
    background: rgba(108,99,255,0.18);
    border-color: rgba(108,99,255,0.35);
}

/* ── Right column: title + description ── */
.product-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--text);
    transition: color 0.25s;
}
.product-card:hover h3 { color: #fff; }

.product-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 640px;
}

/* ── Featured row — full-width glowing spotlight ── */
.product-card.featured {
    grid-template-columns: 72px 1fr;
    padding: 36px 32px 36px 28px;
    background: linear-gradient(100deg,
        rgba(108,99,255,0.07) 0%,
        rgba(180,75,252,0.04) 60%,
        transparent 100%);
    border-top-color: rgba(108,99,255,0.22);
    border-bottom-color: rgba(108,99,255,0.22);
}

.product-card.featured:last-child { border-bottom-color: rgba(108,99,255,0.22); }

/* Ambient glow blob */
.product-card.featured::after {
    content: '';
    position: absolute;
    right: -60px; top: 50%;
    transform: translateY(-50%);
    width: 280px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(ellipse,
        rgba(108,99,255,0.18) 0%,
        transparent 70%);
    pointer-events: none;
    animation: featGlow 6s ease-in-out infinite alternate;
}

@keyframes featGlow {
    from { opacity: 0.7; transform: translateY(-50%) scale(0.9); }
    to   { opacity: 1;   transform: translateY(-50%) scale(1.1); }
}

.product-card.featured .product-icon i {
    width: 52px; height: 52px; font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(180,75,252,0.14));
    border-color: rgba(108,99,255,0.3);
}

.product-card.featured h3 {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(90deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card.featured p { font-size: 0.92rem; max-width: 700px; }

/* Hover left stripe colour shifts for featured */
.product-card.featured::before {
    background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .product-card {
        grid-template-columns: 52px 1fr;
        gap: 0 16px;
        padding: 24px 16px 24px 20px;
    }
    .product-card h3 { font-size: 0.95rem; }
    .product-card p  { font-size: 0.85rem; }
    .product-card.featured { padding: 28px 16px 28px 20px; }
    .product-card.featured h3 { font-size: 1.05rem; }
    .product-icon i { width: 38px; height: 38px; }
}

/* keep glowDrift for any other uses */
@keyframes glowDrift {
    0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.8; }
    50%       { transform: translate3d(-7px,8px,0) scale(1.1); opacity: 1; }
}

/* ─── Format pills ──────────────────────────────────────── */
.formats-row { text-align: center; padding: 48px 40px 24px; }
.formats-row h3 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 24px; font-weight: 600; }
.format-logos { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.format-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 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(108,99,255,0.1); border-color: rgba(108,99,255,0.3);
    box-shadow: 0 0 24px rgba(108,99,255,0.18); transform: translateY(-3px);
}
.format-pill i { font-size: 1.15rem; color: var(--text-muted); transition: color 0.3s; }
.format-pill:hover i { color: var(--accent); }
.format-pill span { font-size: 0.84rem; color: var(--text-muted); font-weight: 500; }

/* ─── Pipeline ──────────────────────────────────────────── */
.pipeline-diagram { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pipeline-step {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: var(--r-sm);
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-muted);
    transition: border-color 0.3s, background 0.3s;
}
.pipeline-step:hover { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.06); }
.pipeline-arrow { color: var(--accent); font-size: 0.85rem; opacity: 0.7; }

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 768px) { .faq-list { grid-template-columns: repeat(2, 1fr); } }

.faq-item {
    border-radius: var(--r-md); background: var(--bg-card); border: 1px solid var(--border);
    overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(108,99,255,0.3); box-shadow: 0 8px 24px rgba(108,99,255,0.1); }

.faq-item summary {
    padding: 18px 20px; font-size: 0.91rem; 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.025); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.15rem; font-weight: 300; color: var(--text-muted); transition: transform 0.25s, color 0.2s; }
.faq-item[open] summary::after { content: '−'; color: var(--accent); transform: scale(1.2); }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { padding: 0 20px 18px; font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }
.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: var(--r-md);
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: var(--text); font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.faq-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

/* ─── Changelog ─────────────────────────────────────────── */
.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);
    opacity: 0.6;
}

.changelog-entry {
    padding: 24px 28px 24px 72px;
    border-radius: var(--r-md); background: var(--bg-card); border: 1px solid var(--border);
    position: relative; margin-bottom: 14px;
    transition: border-color 0.3s, transform 0.3s;
}
.changelog-entry:hover { border-color: rgba(108,99,255,0.28); transform: translateX(4px); }

.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 14px rgba(108,99,255,0.4);
}

.changelog-entry time {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 8px;
    padding: 3px 10px; border-radius: 6px; background: rgba(108,99,255,0.1);
}
.changelog-entry h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }

.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 22px rgba(108,99,255,0.6); }
.changelog-entry.featured { border-color: rgba(108,99,255,0.2); }

.changelog-entry ul { list-style: none; padding: 0; }
.changelog-entry li {
    font-size: 0.87rem; color: var(--text-muted);
    padding: 5px 0 5px 18px; line-height: 1.6; position: relative;
}
.changelog-entry li::before {
    content: ''; position: absolute; left: 0; top: 13px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); opacity: 0.45;
}

.changelog-cta { text-align: center; margin-top: 32px; font-size: 0.87rem; 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: 18px; align-items: stretch; }
.pricing-card {
    padding: 32px 26px; border-radius: var(--r-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; flex-direction: column; transition: all 0.35s;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.13); transform: translateY(-4px); }
.pricing-card.featured {
    border-color: rgba(108,99,255,0.4);
    background: linear-gradient(180deg, rgba(108,99,255,0.09), rgba(255,255,255,0.02));
    box-shadow: 0 0 44px rgba(108,99,255,0.14);
    position: relative;
}
.pricing-card.featured .pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 100px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.pricing-tier { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 4px; }
.pricing-price span { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.55; min-height: 2.5em; }
.pricing-features { list-style: none; margin-bottom: 28px; flex: 1; }
.pricing-features li { font-size: 0.83rem; 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.74rem; }
.pricing-cta { display: block; text-align: center; padding: 13px; border-radius: var(--r-md); font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all 0.25s; position: relative; overflow: hidden; }
.pricing-cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: translateX(-110%); transition: transform 0.4s; }
.pricing-cta:hover::after { transform: translateX(110%); }
.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 18px rgba(108,99,255,0.35); }
.pricing-cta.solid:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(108,99,255,0.5); }

/* ─── Footer CTA band ───────────────────────────────────── */
.footer-cta-band {
    position: relative; z-index: 10; max-width: 1160px; margin: 0 auto;
    padding: 56px 40px; text-align: center;
}
.footer-cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.footer-cta-band p { color: var(--text-muted); margin-bottom: 26px; font-size: 0.95rem; }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    position: relative; z-index: 10;
    border-top: 1px solid var(--border);
    padding: 48px 40px 32px;
    max-width: 1160px; 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.84rem; color: var(--text-muted); line-height: 1.65; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; 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.84rem; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.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.77rem;
}
.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.77rem; 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(12,12,18,0.96); border-top: 1px solid var(--border);
    padding: 20px 24px; backdrop-filter: blur(20px);
    display: none; animation: slideUp 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-content { max-width: 1160px; 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.84rem; 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: var(--r-sm); font-size: 0.84rem; 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(108,99,255,0.3); }
.cookie-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(108,99,255,0.45); }
.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.87rem; 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.025em; margin-bottom: 12px; }
.legal-meta { color: var(--text-muted); font-size: 0.87rem; }
.legal-content { line-height: 1.75; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.legal-section h3 { font-size: 1.04rem; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.legal-section p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.94rem; }
.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.94rem; line-height: 1.65; }
.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.87rem; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--text); }

/* ─── App layout ────────────────────────────────────────── */
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 / stagger helpers ────────────────────────── */
.parallax-element { will-change: transform; }

/* ─── 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 is now a flex column — no grid overrides needed */
    .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: 13px 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: 26px; }
    /* cards-grid flex column needs no override at mobile */
    .faq-list { grid-template-columns: 1fr; }
    .hero-stats { gap: 8px; }
    .hero-product-frame { transform: none; }
    .hero-product-frame:hover { transform: none; }
}

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