/* ==========================================================================
   Boxlo Website Styles
   Apple.com-inspired cinematic design
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    /* Colors - Warm amber palette */
    --color-primary: #92400E;
    --color-primary-dark: #78350F;
    --color-secondary: #F59E0B;
    --color-accent: #D97706;
    --color-text-dark: #1C1917;
    --color-text-light: #78716C;
    --color-text-white: #FEFCE8;
    --color-bg-light: #FFFDF7;
    --color-bg-dark: #1C1917;
    --color-bg-cream: #FFF7ED;
    --color-bg-amber: #92400E;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                   "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-size-hero: clamp(2.5rem, 7vw, 5rem);
    --font-size-section: clamp(2rem, 5vw, 3.5rem);
    --font-size-subsection: clamp(1.5rem, 3vw, 2rem);
    --font-size-body: 1.125rem;
    --font-size-body-large: 1.25rem;
    --font-size-small: 0.875rem;
    --font-size-label: 0.75rem;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: clamp(5rem, 10vw, 10rem);
    --section-padding-small: clamp(3rem, 6vw, 6rem);
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-small: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-phone: 0 50px 100px rgba(0, 0, 0, 0.3);

    /* Border Radius */
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-xl: 44px;
    --radius-pill: 980px;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
}

.section-title {
    font-size: var(--font-size-section);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--font-size-body-large);
    color: var(--color-text-light);
    max-width: 600px;
}

.label {
    font-size: var(--font-size-label);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    display: block;
}

.text-center { text-align: center; }
.text-white { color: var(--color-text-white); }
.text-light { color: var(--color-text-light); }

/* ==========================================================================
   4. Layout & Container
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-small {
    padding: var(--section-padding-small) 0;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-medium);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    transition: color var(--transition-fast);
}

.nav.scrolled .nav-logo {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav.scrolled .nav-link {
    color: var(--color-text-dark);
}

.nav-link:hover {
    color: var(--color-text-white);
}

.nav.scrolled .nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-white);
    transition: all var(--transition-fast);
}

.nav.scrolled .nav-toggle span {
    background: var(--color-text-dark);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1.5rem 6rem;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-medium);
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-medium);
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-title {
    color: var(--color-text-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: var(--font-size-body-large);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Hero Phone Mockup */
.hero-phone {
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.phone-mockup {
    position: relative;
    width: 280px;
    margin: 0 auto;
    animation: float-phone 6s ease-in-out infinite;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-phone);
    position: relative;
}

.phone-screen {
    border-radius: 34px;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    width: 100%;
    display: block;
}

/* Subtle glow on dark backgrounds */
.bg-dark .phone-frame {
    box-shadow: var(--shadow-phone), 0 0 80px 20px rgba(245, 158, 11, 0.2);
}

/* Hero Floating Boxes */
.hero-boxes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-box {
    position: absolute;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.15);
    animation: float-box 10s ease-in-out infinite;
}

.floating-box:nth-child(1) { width: 60px; height: 60px; left: 8%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.floating-box:nth-child(2) { width: 40px; height: 40px; left: 22%; top: 60%; animation-delay: 2s; animation-duration: 9s; }
.floating-box:nth-child(3) { width: 50px; height: 50px; left: 42%; top: 15%; animation-delay: 1s; animation-duration: 14s; }
.floating-box:nth-child(4) { width: 30px; height: 30px; left: 68%; top: 70%; animation-delay: 3s; animation-duration: 10s; }
.floating-box:nth-child(5) { width: 45px; height: 45px; left: 82%; top: 25%; animation-delay: 0.5s; animation-duration: 11s; }
.floating-box:nth-child(6) { width: 55px; height: 55px; left: 92%; top: 50%; animation-delay: 2.5s; animation-duration: 13s; }

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-white);
}

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

.btn-dark:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.3);
    color: var(--color-text-white);
}

/* App Store Button Style */
.btn-appstore {
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
}

.btn-appstore:hover {
    background: #333;
    color: #fff;
    transform: scale(1.05);
}

.btn-appstore svg {
    width: 28px;
    height: 28px;
}

.btn-appstore-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-appstore-text small {
    font-size: 0.65rem;
    font-weight: var(--font-weight-regular);
}

.btn-appstore-text span {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   8. Feature Sections
   ========================================================================== */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 500px;
}

.feature-content .label {
    color: var(--color-accent);
}

.feature-content .section-title {
    margin-bottom: 1.5rem;
}

.feature-content .section-subtitle {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--font-size-body);
}

.feature-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    margin-top: 2px;
}

.feature-phone {
    display: flex;
    justify-content: center;
}

/* Background variants */
.bg-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.bg-dark .section-subtitle,
.bg-dark .feature-list li {
    color: rgba(255, 255, 255, 0.7);
}

.bg-dark .label {
    color: var(--color-secondary);
}

.bg-cream {
    background: var(--color-bg-cream);
}

.bg-amber {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text-white);
}

.bg-amber .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   9. How It Works
   ========================================================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

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

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-secondary), transparent);
    z-index: 0;
}

.step-title {
    font-size: var(--font-size-subsection);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--color-text-light);
    font-size: var(--font-size-body);
}

/* ==========================================================================
   10. Features Grid
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-medium);
    padding: 2rem;
    box-shadow: var(--shadow-small);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.feature-card-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.feature-card-description {
    font-size: var(--font-size-body);
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ==========================================================================
   11. CTA Section
   ========================================================================== */
.cta-section {
    text-align: center;
    padding: var(--section-padding) var(--container-padding);
}

.cta-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-large);
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-large);
    animation: pulse-glow 3s ease-in-out infinite;
}

.cta-title {
    font-size: var(--font-size-section);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: var(--font-size-body-large);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-body);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-body);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-size-small);
}

/* ==========================================================================
   13. Animations
   ========================================================================== */
@keyframes float-phone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-box {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-40px) rotate(2deg);
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.7); }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animation classes */
.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate.fade-left {
    transform: translateX(60px);
}

.animate.fade-right {
    transform: translateX(-60px);
}

.animate.fade-scale {
    transform: scale(0.95);
}

.animate.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger-children .animate:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .animate:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .animate:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .animate:nth-child(6) { transition-delay: 0.5s; }

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

    .animate {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   14. Privacy & Terms Page Styles
   ========================================================================== */
.privacy-hero {
    background: var(--color-bg-dark);
    padding: 8rem 0 3rem;
    text-align: center;
}

.privacy-hero .section-title {
    color: var(--color-text-white);
}

.privacy-content {
    padding: var(--section-padding-small) 0;
}

.privacy-content h2 {
    font-size: var(--font-size-subsection);
    margin: 2rem 0 1rem;
    color: var(--color-primary);
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.privacy-highlight {
    background: var(--color-bg-cream);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    margin-bottom: 2rem;
}

.privacy-highlight p {
    margin: 0;
    font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   15. Phone Mockup Placeholder Screens
   ========================================================================== */
.phone-placeholder {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Dashboard Screen */
.screen-dashboard {
    background: #FFFBEB;
}

.screen-dashboard .screen-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.screen-dashboard .screen-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1C1917;
}

.screen-dashboard .screen-subtitle {
    font-size: 0.5rem;
    color: #78716C;
}

.screen-search {
    background: #F5F5F4;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.screen-search-icon {
    width: 10px;
    height: 10px;
    border: 1.5px solid #A8A29E;
    border-radius: 50%;
    position: relative;
}

.screen-search-icon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 4px;
    height: 1.5px;
    background: #A8A29E;
    transform: rotate(45deg);
}

.screen-search-text {
    font-size: 0.45rem;
    color: #A8A29E;
}

.screen-room-chips {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.screen-chip {
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.4rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.screen-chip.active {
    background: #D97706;
    color: #fff;
}

.screen-chip.inactive {
    background: #F5F5F4;
    color: #78716C;
}

.screen-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    flex: 1;
}

.screen-box-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.screen-box-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
}

.screen-box-image-bg {
    width: 100%;
    height: 100%;
}

.screen-box-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #C4A882;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transform: rotate(-3deg);
}

.screen-box-info {
    padding: 0.3rem;
}

.screen-box-room {
    font-size: 0.35rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* AI Analysis Screen */
.screen-ai {
    background: #fff;
}

.screen-ai .screen-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.screen-ai .screen-back {
    font-size: 0.6rem;
    color: #D97706;
}

.screen-ai .screen-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1C1917;
}

.screen-ai-photo {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8dfd0 0%, #d4c5b0 100%);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screen-ai-items-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 0.3rem 0.5rem;
}

.screen-ai-items-overlay span {
    font-size: 0.35rem;
    color: #fff;
    display: block;
    line-height: 1.4;
}

.screen-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.45rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screen-ai-results {
    background: #FFFBEB;
    border-radius: 8px;
    padding: 0.5rem;
}

.screen-ai-results-title {
    font-size: 0.45rem;
    font-weight: 700;
    color: #92400E;
    margin-bottom: 0.3rem;
}

.screen-ai-item {
    font-size: 0.4rem;
    color: #1C1917;
    padding: 0.15rem 0;
    border-bottom: 1px solid #FEF3C7;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.screen-ai-item:last-child {
    border-bottom: none;
}

.screen-ai-bullet {
    width: 4px;
    height: 4px;
    background: #D97706;
    border-radius: 50%;
    flex-shrink: 0;
}

/* QR Scanner Screen */
.screen-qr-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.screen-qr-screenshot {
    width: 100%;
    display: block;
}

.screen-qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.screen-qr-viewfinder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    aspect-ratio: 1;
}

.screen-qr-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #D97706;
    border-style: solid;
    border-width: 0;
}

.screen-qr-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.screen-qr-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.screen-qr-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.screen-qr-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

.screen-qr-scan-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D97706, transparent);
    top: 45%;
    animation: scan-line 2s ease-in-out infinite;
}

@keyframes scan-line {
    0%, 100% { top: 30%; }
    50% { top: 65%; }
}

.screen-qr-label {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.45rem;
    font-weight: 600;
}

.screen-qr-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 25, 23, 0.95);
    padding: 0.4rem 0 0.6rem;
    display: flex;
    justify-content: space-around;
}

.screen-tab {
    text-align: center;
    font-size: 0.3rem;
    color: #78716C;
}

.screen-tab.active {
    color: #D97706;
}

.screen-tab-icon {
    width: 16px;
    height: 16px;
    margin: 0 auto 0.15rem;
    border-radius: 3px;
}

/* ==========================================================================
   16. Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .feature-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-section.reverse {
        direction: ltr;
    }

    .feature-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .feature-list {
        align-items: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3rem, 8vw, 6rem);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: var(--shadow-medium);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        color: var(--color-text-dark);
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: auto;
    }

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

    .phone-mockup {
        width: 240px;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .step-card::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 220px;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-small);
    }
}
