/* ================================================================
   CleanSheet — Landing Page Shell Styles
   Covers: nav, hero, demo, features, how-it-works, principle,
           pricing, FAQ, CTA, footer, and embedded-app wrapper.
   ================================================================ */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #059669;
    --accent: #d97706;
    --dark: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --radius: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.7;
    background: white;
}

/* ========== UNIFIED MUBSIRA NAVIGATION ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 24, 37, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .nav-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
}
.nav-brand .brand-dot { color: #4a8eff; }
.nav-brand .brand-sep { opacity: 0.3; font-weight: 400; margin: 0 4px; }
.nav-brand .brand-app { font-weight: 600; opacity: 0.85; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-header .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-header .nav-links a {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-header .nav-links a:hover { color: #fff; }
.nav-mobile-only { display: none; }
.nav-mobile-divider { display: none; }
.nav-mobile-controls { display: none; }
.nav-pro-link {
    color: #a78bfa !important;
    font-weight: 600 !important;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.nav-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
.nav-upgrade-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-upgrade-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-upgrade-btn svg { vertical-align: middle; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: #fff;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 136px 2rem 60px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d1b2a 100%);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.hero-gradient-orb.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.4), transparent);
    top: -100px; left: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.hero-gradient-orb.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent);
    bottom: -50px; right: -50px;
    animation: orbFloat2 15s ease-in-out infinite;
}
.hero-gradient-orb.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, -20px); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-40%, -40%); } }

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-proposition {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-main-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-main-tagline {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-main-value {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    max-width: 600px;
    margin: 0 auto;
}

.hero-privacy-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    animation: fadeInUp 0.6s ease-out 0.2s;
    animation-fill-mode: both;
}

.privacy-icon-large { flex-shrink: 0; color: #4ade80; }
.privacy-icon-large svg { stroke: #4ade80; }

.privacy-text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privacy-headline {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    margin: 0;
}

.privacy-detail {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.4s;
    animation-fill-mode: both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.btn-large { padding: 16px 32px; font-size: 17px; border-radius: 16px; }
.btn-glow { box-shadow: 0 4px 20px rgba(30, 64, 175, 0.35); }

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========== DEMO PREVIEW ========== */
.demo-preview {
    padding: 0 2rem 5rem;
    background: var(--dark);
}

.demo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-window {
    background: var(--dark-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.demo-header {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.red { background: #ef4444; }
.demo-dot.yellow { background: #f59e0b; }
.demo-dot.green { background: #22c55e; }

.demo-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.demo-before, .demo-after {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.demo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-before .demo-label { color: #f87171; }
.demo-after .demo-label { color: #4ade80; }

.demo-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
}

.demo-table th, .demo-table td {
    padding: 0.4rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.demo-table th {
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.03);
    position: relative;
    cursor: help;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-table th[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 100%;
    background: #fff;
    color: var(--dark);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.demo-table th[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: calc(100% - 5px);
    border: 5px solid transparent;
    border-top-color: #fff;
    z-index: 10;
}

.demo-table td {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    cursor: default;
    color: rgba(255,255,255,0.6);
}

.demo-table td[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: 100%;
    background: #fff;
    color: var(--dark);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.demo-table td[title]:hover::before {
    content: '';
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: calc(100% - 5px);
    border: 5px solid transparent;
    border-top-color: #fff;
    z-index: 10;
}

.messy { color: #fca5a5; background: rgba(239, 68, 68, 0.08); }
.clean { color: #86efac; }

/* ========== SECTION SHARED ========== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-500);
}

/* ========== FEATURES ========== */
.features {
    padding: 5rem 2rem;
    background: #fff;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: var(--gray-200);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 64, 175, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--gray-50);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: var(--gray-200);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.step p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========== PRICING ========== */
.pricing {
    padding: 5rem 2rem;
    background: #fff;
}

.pricing-cards {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
    background: #fff;
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.85rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.75rem 0;
}

.pricing-card .price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-card ul {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
}

.pricing-card li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-card li:last-child { border-bottom: none; }

.pricing-card li svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ========== FAQ ========== */
.faq {
    padding: 5rem 2rem;
    background: var(--gray-50);
}

.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    padding: 1.25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.faq-question:hover { color: var(--primary); }

.faq-question .faq-toggle {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.9rem;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

/* ========== CTA ========== */
.cta {
    padding: 5rem 2rem;
    background: var(--dark);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.cta p {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

.cta .btn-primary {
    background: var(--primary);
    color: #fff;
}

.cta .btn-primary:hover {
    background: var(--primary-dark);
}

/* ========== UNIFIED FOOTER ========== */
.site-footer {
    background-color: #0f1825;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-links-list {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-links-list a:hover { color: rgba(255, 255, 255, 0.8); }

/* ========== TRANSPARENCY / PRINCIPLE SECTION ========== */
.principle-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    padding: 5rem 2rem;
}

.principle-container {
    max-width: 1000px;
    margin: 0 auto;
}

.principle-steps {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
}

.principle-step {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    border: 1px solid var(--gray-100);
    position: relative;
}

.principle-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.principle-step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.principle-step-content p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
}

.principle-example {
    background: rgba(30, 64, 175, 0.04);
    border-left: 3px solid var(--primary);
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.example-label {
    font-weight: 700;
    color: var(--primary);
    margin-right: 6px;
}

/* Cleaning techniques grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.technique-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    border: 1px solid var(--gray-100);
}

.technique-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.technique-card h4 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.technique-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.technique-card .technique-example {
    margin-top: 10px;
    background: rgba(30, 64, 175, 0.04);
    border-left: 3px solid var(--primary);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.78rem;
    color: var(--gray-600);
}

/* Trust builders */
.principle-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-point {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.trust-point .trust-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.trust-point strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.trust-point p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

/* Section badge — matches Aynalyx pattern */
.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 768px) {
    /* Unified mobile nav */
    .site-header .nav-links {
        display: flex;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background-color: rgba(15, 24, 37, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 12px;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 999;
    }
    .site-header .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .site-header .nav-links a { font-size: 14px; color: rgba(255, 255, 255, 0.7); text-align: left; }
    .nav-toggle { display: flex; }
    .nav-actions { display: none; }
    .nav-mobile-only { display: block; }
    .nav-mobile-divider {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 4px 0;
        width: 100%;
    }
    .nav-mobile-controls {
        display: flex;
        gap: 10px;
        padding: 6px 0;
    }
    .nav-mobile-controls .nav-btn {
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: transparent;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
    }
    .brand-sep, .brand-app { display: none; }

    /* Hero: compact, punchy */
    .hero { padding: calc(56px + 32px) 1.25rem 2.5rem; }
    .hero-main-proposition { margin-bottom: 20px; }
    .hero-main-title { font-size: 2rem; margin-bottom: 10px; }
    .hero-main-tagline { font-size: 1rem; margin-bottom: 8px; }
    .hero-main-value { font-size: 0.85rem; line-height: 1.5; }
    .hero-privacy-block { padding: 14px 16px; flex-direction: column; gap: 10px; margin-bottom: 24px; border-radius: 12px; }
    .privacy-icon-large svg { width: 24px; height: 24px; }
    .privacy-headline { font-size: 14px; }
    .privacy-detail { font-size: 13px; }
    .hero-cta-buttons { flex-direction: column; gap: 10px; }
    .hero-cta-buttons .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 0.95rem; }
    .hero-cta-buttons .btn-outline-light { padding: 12px 20px; }

    /* Demo preview */
    .demo-preview { padding: 0 0.75rem 2.5rem; }
    .demo-content { grid-template-columns: 1fr; gap: 0.75rem; padding: 0.75rem; }
    .demo-before, .demo-after { padding: 0.75rem; }

    /* Features: 2-column compact cards */
    .features { padding: 2.5rem 1rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .feature-card { padding: 1.25rem 1rem; }
    .feature-card h3 { font-size: 0.875rem; }
    .feature-card p { font-size: 0.8rem; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 0.75rem; }
    .feature-icon svg { width: 18px; height: 18px; }

    /* How it works: compact vertical flow */
    .how-it-works { padding: 2.5rem 1rem; }
    .steps { grid-template-columns: 1fr; gap: 1.25rem; }
    .steps::before { display: none; }
    .step-number { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 0.875rem; }
    .step h3 { font-size: 0.95rem; }
    .step p { font-size: 0.825rem; }

    /* Principle section compact */
    .principle-section { padding: 2.5rem 1rem; }
    .principle-steps { flex-direction: column; gap: 16px; margin-bottom: 32px; }
    .principle-step { padding: 20px; }
    .principle-step-number { width: 32px; height: 32px; font-size: 14px; margin-bottom: 12px; }
    .principle-step-content h3 { font-size: 0.9rem; }
    .principle-step-content p { font-size: 0.8rem; }
    .principle-example { font-size: 0.75rem; padding: 8px 10px; }
    .techniques-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
    .technique-card { padding: 20px; }
    .technique-card h4 { font-size: 0.875rem; }
    .technique-card p { font-size: 0.8rem; }
    .technique-card .technique-example { font-size: 0.72rem; }
    .principle-trust { grid-template-columns: 1fr; gap: 10px; }
    .trust-point { padding: 14px; gap: 10px; }
    .trust-point strong { font-size: 0.825rem; }
    .trust-point p { font-size: 0.75rem; }

    /* Pricing: Pro card first, compact */
    .pricing { padding: 2.5rem 1rem; }
    .pricing-cards { grid-template-columns: 1fr; gap: 0.875rem; }
    .pricing-card { padding: 1.5rem; }
    .pricing-card.featured { transform: none; order: -1; }
    .pricing-card h3 { font-size: 1.1rem; }
    .pricing-card .price { font-size: 1.75rem; }
    .pricing-card li { font-size: 0.825rem; padding: 0.5rem 0; }

    /* FAQ compact */
    .faq { padding: 2.5rem 1rem; }
    .faq-question { padding: 1rem 0; font-size: 0.875rem; }
    .faq-answer { font-size: 0.825rem; }

    /* CTA compact */
    .cta { padding: 2.5rem 1rem; }
    .cta h2 { font-size: 1.35rem; }
    .cta p { font-size: 0.875rem; margin-bottom: 1.25rem; }

    /* Section headers */
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.35rem; }
    .section-header p { font-size: 0.85rem; }

    /* Unified footer mobile */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-links-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* ========== RESPONSIVE: SMALL MOBILE (< 400px) ========== */
@media (max-width: 400px) {
    .hero-main-title { font-size: 1.65rem; }
    .hero-main-tagline { font-size: 0.9rem; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-card .price { font-size: 1.5rem; }
    .section-header h2 { font-size: 1.2rem; }
}

/* ========== RESPONSIVE: TABLET ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .principle-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ========== EMBEDDED APP SECTION ========== */
.app-section {
    padding: 5rem 2rem;
    background: var(--gray-50);
}

.app-section .app-container {
    min-height: auto;
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.app-section .header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.app-section .footer {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    text-align: center;
}

.app-section .footer p {
    color: var(--gray-500);
}

/* Override landing btn styles inside app section so styles.css rules apply */
.app-section .btn {
    justify-content: center;
    font-family: inherit;
    font-size: 0.875rem;
}
.app-section .btn-primary {
    background: var(--primary);
    box-shadow: 0 1px 3px rgba(30, 64, 175, 0.2);
}
.app-section .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}
.app-section .btn-success {
    background: var(--secondary);
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}
.app-section .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.app-section .btn-secondary {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}
.app-section .btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ========== MOBILE: APP SECTION COMPACT ========== */
@media (max-width: 768px) {
    .app-section {
        padding: 2.5rem 0.75rem;
    }

    .app-section .section-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .app-section .section-header h2 {
        font-size: 1.35rem;
    }

    .app-section .section-header p {
        font-size: 0.85rem;
    }

    .app-section .app-container {
        border-radius: var(--radius);
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    .app-section .main-content {
        padding: 0.75rem;
    }

    /* Upload area: smaller, cleaner on mobile */
    .app-section .upload-area {
        padding: 1.5rem 1rem;
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }

    .app-section .upload-icon svg {
        width: 32px;
        height: 32px;
    }

    /* Processing container tight */
    .app-section .processing-container {
        padding: 0.75rem;
        border-radius: var(--radius);
    }

    /* File info bar compact */
    .app-section .file-info {
        padding: 0.625rem 0.75rem;
        margin-bottom: 1rem;
    }

    /* Cleaning options heading compact */
    .app-section .cleaning-options h3 {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    /* Options sections tighter */
    .app-section .options-section {
        margin-bottom: 0.625rem;
        padding: 0.625rem;
    }

    /* Action button: full width */
    .app-section .action-buttons {
        margin-bottom: 0.75rem;
    }

    .app-section .action-buttons .btn {
        width: 100%;
    }
}

/* ========== STICKY MOBILE CTA BAR ========== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: flex; }
    body { padding-bottom: 72px; }
}

.mobile-cta-btn {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-cta-btn.primary {
    background: var(--primary);
    color: white;
}

.mobile-cta-btn.primary:hover {
    background: var(--primary-dark);
}

.mobile-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.mobile-cta-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* ========== MOBILE: AUTO-COLLAPSE OPTION SECTIONS ========== */
@media (max-width: 768px) {
    /* Option sections: collapsible toggle chevron placement */
    .options-section .options-grid,
    .options-section .smart-features-list {
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    }

    .options-section.collapsed .options-grid,
    .options-section.collapsed .smart-features-list,
    .options-section.collapsed .rounding-option {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
}

/* ========== TOUCH OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets */
    .nav-links a { min-height: 44px; display: flex; align-items: center; }
    .faq-question { min-height: 48px; }
    .btn { min-height: 44px; }
    .option-item { min-height: 44px; }
    .options-section-title { min-height: 44px; }
    .tab-btn { min-height: 40px; }

    /* Disable hover effects that feel odd on touch */
    .feature-card:hover { transform: none; box-shadow: none; }
    .pricing-card:hover { transform: none; }
    .stat-card:hover { transform: none; box-shadow: none; }
    .btn:hover { transform: none; }

    /* Smooth momentum scrolling everywhere */
    .table-container,
    .changes-list,
    .smart-fixes-table,
    .anomalies-fullscreen-body {
        -webkit-overflow-scrolling: touch;
    }
}

/* ========== SCROLL-TO-TOP BUTTON (appears on scroll) ========== */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 16px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:active {
    transform: scale(0.92);
}

@media (min-width: 769px) {
    .scroll-to-top { bottom: 32px; right: 32px; }
}
