/* ============================================
   Gluten Free Scanner — Premium Landing Page
   ============================================ */

/* Design System */
:root {
    /* Brand Colors */
    --color-primary: #6A9093;
    --color-primary-dark: #4F7471;
    --color-primary-light: #89ACAE;
    --color-primary-pale: #d9e8e9;
    
    /* Neutral */
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e2e8f0;
    
    /* Accents */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #4F7471 0%, #6A9093 50%, #89ACAE 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 60px rgba(13, 148, 136, 0.3);
}

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

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

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

.reduce-motion * {
    animation: none !important;
    transition: none !important;
}

/* Fade-in animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
/* video layout animations handled by .how-video-layout */

.bento-grid .bento-card:nth-child(1) { transition-delay: 0s; }
.bento-grid .bento-card:nth-child(2) { transition-delay: 0.1s; }
.bento-grid .bento-card:nth-child(3) { transition-delay: 0.15s; }
.bento-grid .bento-card:nth-child(4) { transition-delay: 0.2s; }
.bento-grid .bento-card:nth-child(5) { transition-delay: 0.25s; }

.reviews-grid .review-card:nth-child(1) { transition-delay: 0s; }
.reviews-grid .review-card:nth-child(2) { transition-delay: 0.1s; }
.reviews-grid .review-card:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .stat-block:nth-child(1) { transition-delay: 0s; }
.stats-grid .stat-block:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-block:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-block:nth-child(4) { transition-delay: 0.3s; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 20px rgba(13, 148, 136, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Store Buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000;
    color: white;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.store-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-label {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.store-btn-light {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

/* ============================================
   Header
   ============================================ */
/* Offset fixed elements when Google Translate bar is present */
body.translated-ltr .header,
body.translated-rtl .header {
    top: 40px !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    margin-bottom: 24px;
}

.laurel-icon {
    width: 48px;
    height: 72px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.badge-text {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-subtitle strong {
    color: white;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 800;
}

.star-icon {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-showcase {
    position: relative;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-phone {
    position: relative;
    max-height: 580px;
    width: auto;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-primary-pale);
    color: var(--color-primary-dark);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 18px;
}

/* ============================================
   How It Works
   ============================================ */
.how-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.how-video-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.how-video-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.how-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bento-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.bento-text {
    padding: 24px;
}

.bento-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-text p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Instant Results — tall card spanning 2 rows, dark bg */
.bento-instant {
    grid-row: span 2;
    background: var(--gradient-hero);
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
}

.bento-instant .bento-text {
    padding: 28px 24px 16px;
}

.bento-instant .bento-text h3,
.bento-instant .bento-text p {
    color: white;
}

.bento-instant .bento-text p {
    opacity: 0.9;
}

.bento-instant img {
    flex: 1;
    object-fit: contain;
    padding: 0 32px 32px;
}

/* Offline & Products — image left, text right */
.bento-offline,
.bento-products {
    display: flex;
    align-items: center;
}

.bento-offline > img,
.bento-products img {
    width: 45%;
    flex-shrink: 0;
    padding: 24px;
}

.bento-img-wrapper {
    position: relative;
    width: 45%;
    flex-shrink: 0;
}

.bento-img-wrapper img:first-child {
    width: 100%;
    padding: 24px;
}

.offline-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px !important;
    height: 40px;
    padding: 0 !important;
}

.bento-offline .bento-text,
.bento-products .bento-text {
    padding: 20px 24px 20px 0;
}

/* History & Languages — image left, text right */
.bento-history,
.bento-languages {
    display: flex;
    align-items: center;
}

.bento-history img,
.bento-languages img {
    width: 45%;
    flex-shrink: 0;
    padding: 24px;
}

.bento-history .bento-text,
.bento-languages .bento-text {
    padding: 20px 24px 20px 0;
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
    padding: var(--section-padding) 0;
    background: white;
}

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

.demo-content h2 {
    margin: 16px 0;
}

.demo-content > p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.demo-checklist {
    list-style: none;
    margin-bottom: 32px;
}

.demo-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
}

.demo-checklist li:last-child {
    border-bottom: none;
}

.demo-checklist svg {
    width: 24px;
    height: 24px;
    color: var(--color-success);
    flex-shrink: 0;
}

.demo-visual {
    display: flex;
    gap: 20px;
    align-items: center;
}

.demo-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-col-right {
    display: flex;
    align-items: center;
}

.demo-phone {
    width: 260px;
    filter: drop-shadow(var(--shadow-xl));
    transition: transform 0.5s ease;
}

.demo-phone img {
    width: 100%;
    border-radius: 32px;
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.review-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    color: #fbbf24;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
}

.author-source {
    font-size: 13px;
    color: var(--color-text-muted);
}

.reviews-cta {
    display: flex;
    justify-content: center;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.rating-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-text);
}

.rating-stars {
    color: #fbbf24;
    font-size: 24px;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-hero);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-block {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 15px;
    opacity: 0.9;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: var(--section-padding) 0;
    background: white;
}

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

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

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 0 24px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--color-text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 80px 0 32px;
    background: var(--color-text);
    color: white;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 700;
}

.footer-tagline {
    color: var(--color-text-light);
    font-size: 15px;
    max-width: 280px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    transition: all 0.2s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: var(--color-text-light);
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 14px;
}

/* ============================================
   Legal Pages (Privacy Policy, Terms)
   ============================================ */
.legal-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.legal-hero-content {
    text-align: center;
    color: white;
}

.legal-hero-content h1 {
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.legal-hero .legal-date {
    font-size: 16px;
    opacity: 0.9;
    padding-bottom: 20px;
}

.legal-content-section {
    padding: var(--section-padding) 0;
    background: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.legal-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

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

.legal-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.legal-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-phone {
        max-height: 450px;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-instant {
        grid-row: span 1;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .demo-visual {
        justify-content: center;
    }
    
    .demo-phone {
        width: 200px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 48px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo span {
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .legal-hero {
        padding: 120px 0 60px;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat {
        flex: none;
    }
    
    .stat-divider {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-instant {
        grid-row: span 1;
    }
    
    .bento-offline,
    .bento-products,
    .bento-history,
    .bento-languages {
        flex-direction: column;
    }
    
    .bento-offline img,
    .bento-products img,
    .bento-history img,
    .bento-languages img {
        width: 45%;
        max-width: 200px;
        padding: 16px 16px 0;
        align-self: center;
    }
    
    .bento-offline .bento-text,
    .bento-products .bento-text,
    .bento-history .bento-text,
    .bento-languages .bento-text {
        padding: 16px 20px 20px;
    }
    
    .demo-content {
        text-align: center;
    }
    
    .demo-content {
        text-align: center;
    }
    
    .demo-visual {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-phone {
        width: 180px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 12px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rating-badge {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .logo span {
        font-size: 11px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .nav {
        gap: 8px;
    }
}
