/* ===========================
   NoMask AI — Landing Page
   Vercel-style, Apple typography
   =========================== */

/* --- Theme variables --- */
.dark-mode {
    --gradient-orb-1: rgba(99, 102, 241, 0.12);
    --gradient-orb-2: rgba(139, 92, 246, 0.08);
    --gradient-orb-3: rgba(59, 130, 246, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
    --grid-line: rgba(255, 255, 255, 0.05);
    --feature-icon-bg: rgba(255, 255, 255, 0.07);
}
.light-mode {
    --gradient-orb-1: rgba(99, 102, 241, 0.05);
    --gradient-orb-2: rgba(139, 92, 246, 0.03);
    --gradient-orb-3: rgba(59, 130, 246, 0.03);
    --glass-bg: rgba(0, 0, 0, 0.015);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-hover: rgba(0, 0, 0, 0.1);
    --grid-line: rgba(0, 0, 0, 0.06);
    --feature-icon-bg: rgba(0, 0, 0, 0.04);
}

/* --- Space starfield background (light mode) --- */
.hero-bg { position: relative; overflow: hidden; }
.light-mode .hero-bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 130, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(120, 100, 246, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(80, 140, 255, 0.03) 0%, transparent 50%),
        #f8f8fa;
}
.light-mode .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 6% 12%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 14% 38%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 22% 65%, rgba(0,0,0,0.45) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 28% 18%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 35% 82%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 42% 5%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 48% 45%, rgba(0,0,0,0.45) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 56% 72%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 63% 25%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 71% 55%, rgba(0,0,0,0.45) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 78% 8%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 85% 42%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 92% 68%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 97% 15%, rgba(0,0,0,0.45) 50%, transparent 50%);
    animation: starsDrift1 30s linear infinite, starsTwinkle 6s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}
.light-mode .hero-bg::after {
    content: '';
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-image:
        radial-gradient(1.5px 1.5px at 3% 48%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 10% 78%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 18% 28%, rgba(0,0,0,0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 25% 52%, rgba(0,0,0,0.45) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 33% 90%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 32%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 52% 15%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 60% 58%, rgba(0,0,0,0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 67% 85%, rgba(0,0,0,0.45) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 75% 38%, rgba(0,0,0,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 82% 62%, rgba(0,0,0,0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 22%, rgba(0,0,0,0.4) 50%, transparent 50%),
        radial-gradient(ellipse at 25% 35%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 65%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: starsDrift2 35s linear infinite, starsTwinkle 8s ease-in-out infinite alternate-reverse;
    z-index: 0;
    pointer-events: none;
}

/* --- Space starfield background (dark mode) --- */
.dark-mode .hero-bg {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(60, 80, 200, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 55%, rgba(90, 60, 220, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(50, 100, 240, 0.04) 0%, transparent 50%),
        #000000;
}
.dark-mode .hero-bg::before {
    content: '';
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 40% 8%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 75%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 92% 40%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 5% 90%, rgba(255,255,255,0.5) 50%, transparent 50%);
    animation: starsDrift1 30s linear infinite, starsTwinkle 6s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}
.dark-mode .hero-bg::after {
    content: '';
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    background-image:
        radial-gradient(1px 1px at 18% 22%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 33% 52%, rgba(255,255,255,0.8) 50%, transparent 50%),
        radial-gradient(1px 1px at 48% 18%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 62% 62%, rgba(255,255,255,0.7) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 78% 32%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 88% 82%, rgba(255,255,255,0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 8% 48%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 45% 38%, rgba(255,255,255,0.9) 50%, transparent 50%),
        radial-gradient(1px 1px at 72% 88%, rgba(255,255,255,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 22% 78%, rgba(255,255,255,0.6) 50%, transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    animation: starsDrift2 35s linear infinite, starsTwinkle 8s ease-in-out infinite alternate-reverse;
    z-index: 0;
    pointer-events: none;
}
@keyframes starsTwinkle {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}
@keyframes starsDrift1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-8px, 5px); }
    50% { transform: translate(3px, -7px); }
    75% { transform: translate(6px, 4px); }
    100% { transform: translate(0, 0); }
}
@keyframes starsDrift2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(6px, -4px); }
    50% { transform: translate(-5px, 8px); }
    75% { transform: translate(-3px, -6px); }
    100% { transform: translate(0, 0); }
}

/* --- Geo grid (kept for positioning) --- */
.geo-grid { position: relative; }

/* --- Hero (compact, not full-page) --- */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
}
.landing-hero > * { position: relative; z-index: 1; }

/* Eyebrow pill */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(1.75rem, 6vw, 4rem);
    font-weight: 450;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--hero-title-color, #000000);
    margin-bottom: 1.25rem;
}
.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Chat input area inside hero */
.hero-chat-wrap {
    width: 100%;
    margin-bottom: 2rem;
}

/* --- Model selector (landing-specific) --- */
.landing-model-selector-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.dark-mode .landing-model-selector-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.landing-model-selector-btn:hover {
    background-color: var(--surface-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}
.dark-mode .landing-model-selector-btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}
.landing-model-dropdown {
    background-color: var(--bg-secondary);
}
.landing-model-option {
    cursor: pointer;
    border: none;
}
.landing-model-option:hover {
    background-color: var(--bg-tertiary) !important;
}

/* Hero badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    background: var(--surface-glass);
    letter-spacing: -0.01em;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hero-badge:hover { border-color: var(--border-hover); background: var(--surface-glass-hover); }
.hero-badge svg { width: 12px; height: 12px; opacity: 0.5; }
.dark-mode .hero-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
}
.dark-mode .hero-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

/* --- Hero entrance animations (CSS-only) --- */
@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-entrance {
    opacity: 0;
    animation: heroEntrance 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-entrance.he-delay-1 { animation-delay: 0.08s; }
.hero-entrance.he-delay-2 { animation-delay: 0.16s; }
.hero-entrance.he-delay-3 { animation-delay: 0.24s; }
.hero-entrance.he-delay-4 { animation-delay: 0.32s; }

/* --- Stats bar --- */
.stats-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}
.stats-bar-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stat-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 400;
}
.stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--accent-bg);
    color: var(--accent-text);
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}
.cta-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0); }
.cta-lg {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 9999px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    letter-spacing: -0.01em;
}
.cta-secondary:hover {
    border-color: var(--border-hover);
    background-color: var(--surface-glass);
}

/* --- Section base --- */
.landing-section {
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.landing-section.alt-bg {
    background-color: var(--bg-secondary);
}
.section-inner {
    max-width: 64rem;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.section-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* --- Bento grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .bento-card { grid-column: span 3; }
    .bento-card.bento-wide { grid-column: span 3; }
}
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .bento-card { grid-column: span 2; }
    .bento-card.bento-wide { grid-column: span 3; }
}
.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.bento-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--surface-glass-hover);
}
.bento-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--feature-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.bento-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    opacity: 0.7;
}
.bento-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.bento-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Feature split --- */
.feature-split {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}
.feature-split.reverse { flex-direction: column; }
.feature-text { flex: 1; max-width: 480px; }
.feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}
.feature-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.feature-text > p {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    letter-spacing: -0.01em;
}
.feature-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-primary);
    margin-top: 2px;
    opacity: 0.6;
}
.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 440px;
    width: 100%;
}

/* Decorative image frame */
.deco-image-frame {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(ellipse at 30% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}
.deco-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}
.deco-image-frame::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-secondary) 0%, transparent 100%);
    opacity: 0.3;
}
@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
.deco-image-frame .deco-icon,
.deco-motion .deco-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.deco-image-frame .deco-icon svg,
.deco-motion .deco-icon svg {
    width: 44px;
    height: 44px;
    color: var(--text-tertiary);
    opacity: 0.25;
}

/* Decorative motion waves */
.deco-motion {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}
.deco-motion-wave {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 2px;
    border-radius: 100px;
    opacity: 0.2;
}
.deco-motion-wave:nth-child(1) { top: 20%; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent); animation: waveSlide 5s ease-in-out infinite; }
.deco-motion-wave:nth-child(2) { top: 35%; background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent); animation: waveSlide 5s ease-in-out infinite 0.6s; }
.deco-motion-wave:nth-child(3) { top: 50%; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent); animation: waveSlide 5s ease-in-out infinite 1.2s; }
.deco-motion-wave:nth-child(4) { top: 65%; background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent); animation: waveSlide 5s ease-in-out infinite 1.8s; }
.deco-motion-wave:nth-child(5) { top: 80%; background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent); animation: waveSlide 5s ease-in-out infinite 2.4s; }
@keyframes waveSlide {
    0%, 100% { transform: translateX(-15%) scaleX(0.6); opacity: 0.1; }
    50% { transform: translateX(15%) scaleX(1); opacity: 0.3; }
}

/* --- Steps (Timeline) --- */
.steps-timeline {
    max-width: 520px;
    margin: 0 auto;
}
.step-row {
    display: flex;
    gap: 1.25rem;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-hover), transparent);
    margin: 0.25rem 0;
    min-height: 2rem;
}
.step-content {
    padding-bottom: 2.5rem;
}
.step-row:last-child .step-content {
    padding-bottom: 0;
}
.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.35rem;
}
.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.step-content p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.step-connector-legacy {
    display: none;
}
.step-connector-legacy svg {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* --- Pricing grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
}
.pricing-card {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 2rem;
    background: var(--glass-bg);
    position: relative;
    transition: border-color 0.25s ease;
}
.pricing-card:hover { border-color: var(--glass-border-hover); }
.pricing-featured {
    border-color: var(--text-primary);
}
.pricing-featured:hover {
    border-color: var(--text-primary);
}
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 2rem;
    padding: 0.2rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--accent-bg);
    color: var(--accent-text);
    letter-spacing: 0.02em;
}
.pricing-header {
    margin-bottom: 1.25rem;
}
.pricing-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    letter-spacing: -0.01em;
}
.pricing-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.pricing-amount span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-tertiary);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.pricing-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-features li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--text-primary);
    opacity: 0.6;
}

/* --- Final CTA --- */
.final-cta {
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta-inner {
    position: relative;
    z-index: 1;
}
.final-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.final-cta-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}
.final-cta-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

/* --- Lightbox --- */
.image-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}
.image-lightbox.active {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.image-lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}
.lightbox-close {
    position: absolute;
    top: 8px; right: 8px;
    background-color: #DC2626;
    color: white;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
}
.lightbox-close:hover { background-color: #B91C1C; transform: scale(1.1); }

/* --- Loading --- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.animate-blink { animation: blink 1.5s ease-in-out infinite; }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }
.loading-dots::after { content: '.'; animation: dots 1.5s steps(1) infinite; }

/* --- Category pills (kept for chat) --- */
#suggestionsScroller { cursor: grab; user-select: none; }
#suggestionsScroller:active { cursor: grabbing; }
.category-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 1.5rem; font-size: 0.875rem; font-weight: 500;
    color: var(--text-primary); white-space: nowrap;
    transition: all 0.2s ease; cursor: pointer; flex-shrink: 0;
}
.category-pill:hover { background-color: var(--bg-tertiary); border-color: var(--border-hover); transform: translateY(-1px); }
.category-pill:active { transform: translateY(0); }
.category-pill.active { background-color: var(--bg-tertiary); border-color: var(--border-hover); }
.category-icon { width: 18px; height: 18px; color: var(--text-primary); }
.category-label { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; }

#messageSuggestions { position: relative; }
.category-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.5rem;
    background-color: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000; max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-dropdown.active { max-height: 450px; opacity: 1; padding: 0.75rem; }
.category-dropdown-inner { overflow-y: auto; overflow-x: hidden; max-height: 350px; scrollbar-width: thin; }
.dark-mode .category-dropdown-inner { scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.05); }
.dark-mode .category-dropdown-inner::-webkit-scrollbar { width: 8px; }
.dark-mode .category-dropdown-inner::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.dark-mode .category-dropdown-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 4px; border: 2px solid var(--bg-secondary); }
.light-mode .category-dropdown-inner { scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.05); }
.light-mode .category-dropdown-inner::-webkit-scrollbar { width: 8px; }
.light-mode .category-dropdown-inner::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 4px; }
.light-mode .category-dropdown-inner::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.3); border-radius: 4px; border: 2px solid var(--bg-secondary); }
.category-prompt-item {
    padding: 1rem; background-color: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: 0.75rem; margin-bottom: 0.5rem; cursor: pointer;
    opacity: 0; transform: translateY(-10px); animation: slideIn 0.3s ease forwards; transition: all 0.2s ease;
}
@keyframes slideIn { to { opacity: 1; transform: translateY(0); } }
.category-prompt-item:nth-child(1) { animation-delay: 0.05s; }
.category-prompt-item:nth-child(2) { animation-delay: 0.08s; }
.category-prompt-item:nth-child(3) { animation-delay: 0.11s; }
.category-prompt-item:nth-child(4) { animation-delay: 0.14s; }
.category-prompt-item:nth-child(5) { animation-delay: 0.17s; }
.category-prompt-item:nth-child(6) { animation-delay: 0.20s; }
.category-prompt-item:nth-child(7) { animation-delay: 0.23s; }
.category-prompt-item:nth-child(8) { animation-delay: 0.26s; }
.category-prompt-item:nth-child(9) { animation-delay: 0.29s; }
.category-prompt-item:last-child { margin-bottom: 0; }
.category-prompt-item:hover { background-color: var(--bg-tertiary); border-color: var(--border-hover); transform: translateX(4px); }
.category-prompt-text { font-size: 0.9375rem; color: var(--text-primary); line-height: 1.5; }

/* --- Pricing Mobile Toggle --- */
.pricing-toggle-wrap {
    display: none;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.pricing-toggle-container {
    position: relative;
    display: inline-flex;
    border-radius: 0.75rem;
    padding: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 0.5rem;
    background: var(--accent-bg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}
.pricing-toggle-slider.slide-right { transform: translateX(100%); }
.pricing-toggle-btn {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.pricing-toggle-btn.pricing-toggle-active { color: var(--accent-text); }

/* Pricing card slide transitions (mobile) */
#homeFreeCard, #homeProCard {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-slide-out-left { opacity: 0 !important; transform: translateX(-100%) !important; }
.pricing-slide-out-right { opacity: 0 !important; transform: translateX(100%) !important; }
.pricing-slide-in-left { opacity: 0 !important; transform: translateX(-100%) !important; }
.pricing-slide-in-right { opacity: 0 !important; transform: translateX(100%) !important; }
.pricing-card-visible { opacity: 1 !important; transform: translateX(0) !important; }

@media (max-width: 639px) {
    .pricing-toggle-wrap { display: flex; }
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-section { padding: 6rem 2rem; }
}

@media (min-width: 768px) {
    .feature-split { flex-direction: row; gap: 4rem; }
    .feature-split.reverse { flex-direction: row-reverse; }
    .landing-section { padding: 7rem 2rem; }
    .hero-title { font-size: clamp(2.75rem, 5vw, 4rem); }
    .stats-bar-inner { gap: 3rem; }
}

@media (min-width: 1024px) {
    .landing-section { padding: 8rem 2rem; }
}

@media (max-width: 640px) {
    .landing-hero { padding: 5rem 1rem 2rem; }
    .stats-bar { padding: 1.25rem 1rem; }
    .stat-divider { display: none; }
    .stats-bar-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-item {
        flex-direction: column;
        gap: 0.1rem;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 0.625rem 0.5rem;
        border-radius: 10px;
        background: var(--surface-glass);
        border: 1px solid var(--border-color);
    }
    .stat-value { font-size: 1rem; }
    .stat-desc { font-size: 0.7rem; }
    .final-cta { padding: 4rem 1rem; }
    .lightbox-close { top: 6px; right: 6px; width: 28px; height: 28px; font-size: 16px; }
    .category-pill { padding: 0.5rem 0.75rem; }
    .category-icon { width: 16px; height: 16px; }
    .category-label { font-size: 0.8125rem; }
    .category-dropdown.active { max-height: 280px; }
    .category-dropdown-inner { max-height: 220px; }
}
