/* ========================================
   iMeal AI - Marketing Website Styles
   Aesthetic: Organic Luxury
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #2D6A4F;
    --secondary: #52B788;
    --accent: #1B4332;
    --highlight: #E09F3E;
    --danger: #D64545;

    /* Backgrounds & Surfaces */
    --background: #F4F1E8;
    --surface: #FFFFFF;
    --surface-muted: #F0EDE4;
    --border: #DCE6DD;

    /* Text */
    --text-primary: #1F2A24;
    --text-muted: #6E7B71;

    /* Utility */
    --overlay: rgba(27, 67, 50, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.08);
    --shadow-lg: 0 8px 40px rgba(27, 67, 50, 0.12);
    --shadow-xl: 0 16px 64px rgba(27, 67, 50, 0.16);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-width: 1200px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 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-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

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

p {
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.highlight {
    color: var(--highlight);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-highlight:hover {
    background: #c88a32;
    border-color: #c88a32;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--surface-muted);
    color: var(--primary);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-outline svg {
    transition: transform var(--transition-base);
}

.btn-secondary-outline:hover svg {
    transform: scale(1.1);
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    background: var(--highlight);
    color: white;
    border-color: var(--highlight);
}

.btn-nav:hover {
    background: #c88a32;
    border-color: #c88a32;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* App Store Badge Button */
.btn-appstore {
    display: inline-block;
    transition: all var(--transition-base);
}

.btn-appstore:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.appstore-badge {
    height: 48px;
    width: auto;
}

.btn-appstore-lg .appstore-badge {
    height: 56px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(244, 241, 232, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--primary);
}

.logo-icon svg {
    stroke: var(--primary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 2rem var(--container-padding);
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--section-padding);
    overflow: hidden;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--highlight);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
    opacity: 0.3;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.3s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-item svg {
    color: var(--secondary);
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), inset 0 0 0 3px rgba(255,255,255,0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    padding: 3rem 1.25rem 1.5rem;
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.app-greeting {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.app-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.app-calories {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.calories-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.calories-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--surface-muted);
    stroke-width: 10;
}

.ring-progress {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: calc(339.292 * (1 - var(--progress) / 100));
    animation: ringFill 1.5s ease-out 0.8s backwards;
}

@keyframes ringFill {
    from { stroke-dashoffset: 339.292; }
}

.calories-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calories-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calories-label {
    font-size: 0.625rem;
    color: var(--text-muted);
}

.app-macros {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.macro-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
}

.macro-bar {
    height: 6px;
    background: var(--surface-muted);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.macro-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress);
    background: var(--color);
    border-radius: 100px;
    animation: barFill 1s ease-out 1s backwards;
}

@keyframes barFill {
    from { width: 0; }
}

.macro-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.macro-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.scan-icon {
    display: flex;
    align-items: center;
}

/* Floating Food Elements */
.floating-element {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    z-index: 1;
}

.el-1 { top: 5%; left: 5%; animation-delay: 0s; }
.el-2 { top: 15%; right: 5%; animation-delay: -1s; }
.el-3 { bottom: 30%; left: 0; animation-delay: -2s; }
.el-4 { bottom: 15%; right: 10%; animation-delay: -3s; }
.el-5 { top: 40%; left: -5%; animation-delay: -4s; }

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 100px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 100px;
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.5; }
}

/* ========================================
   Problem/Solution Section
   ======================================== */
.problem-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
}

.problem-card {
    padding: 2.5rem;
    border-radius: 24px;
}

.problem-old {
    background: var(--surface-muted);
}

.problem-old .problem-icon svg {
    stroke: var(--danger);
}

.problem-new {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.problem-new .problem-icon svg {
    stroke: var(--highlight);
}

.problem-icon {
    margin-bottom: 1rem;
}

.problem-icon svg {
    width: 48px;
    height: 48px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.problem-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* White text for "The iMeal Way" card - must come after general li rule */
.problem-card.problem-new,
.problem-card.problem-new h3 {
    color: white;
}

.problem-card.problem-new li {
    color: rgba(255, 255, 255, 0.95);
}

.problem-old li::before {
    content: '✕';
    color: var(--danger);
    font-weight: 700;
    flex-shrink: 0;
}

.problem-new li::before {
    content: '✓';
    color: var(--highlight);
    font-weight: 700;
    flex-shrink: 0;
}

.problem-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-divider span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(45, 106, 79, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-icon svg {
    stroke: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Main Feature Card */
.feature-main {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface) 100%);
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-scan-demo {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.scan-image {
    width: 200px;
    height: 200px;
    background: var(--surface);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.scan-food {
    font-size: 6rem;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { top: 20%; opacity: 0; }
    50% { top: 80%; opacity: 1; }
}

.scan-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scan-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    animation: resultSlide 0.5s ease-out backwards;
}

.scan-result-item:nth-child(1) { animation-delay: 0.2s; }
.scan-result-item:nth-child(2) { animation-delay: 0.3s; }
.scan-result-item:nth-child(3) { animation-delay: 0.4s; }
.scan-result-item:nth-child(4) { animation-delay: 0.5s; }

@keyframes resultSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

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

.feature-main .feature-content h3 {
    font-size: 1.75rem;
}

.feature-main .feature-content p {
    font-size: 1.0625rem;
}

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

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--background);
    border-radius: 24px;
    transition: all var(--transition-base);
}

.step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--border);
    width: 80px;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step-content p {
    font-size: 0.9375rem;
    max-width: 480px;
}

.step-visual {
    width: 80px;
    display: flex;
    justify-content: center;
}

.step-icon-container {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.step-emoji {
    font-size: 1.75rem;
}

/* ========================================
   Privacy Callout
   ======================================== */
.privacy-callout {
    padding: var(--section-padding) 0;
}

.privacy-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 32px;
    color: white;
}

.privacy-icon {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon svg {
    stroke: white;
}

.privacy-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.privacy-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    transition: all var(--transition-base);
}

.privacy-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--background);
    border-radius: 24px;
    padding: 2rem;
    transition: all var(--transition-base);
}

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

.testimonial-stars {
    color: var(--highlight);
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
}

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

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2.5rem;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-base);
}

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

.pricing-popular {
    border-color: var(--primary);
}

.pricing-best {
    border-color: var(--highlight);
    background: linear-gradient(180deg, rgba(224, 159, 62, 0.05) 0%, var(--surface) 100%);
}

.popular-badge,
.best-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

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

.best-badge {
    background: var(--highlight);
    color: white;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    color: var(--text-muted);
}

.pricing-save {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

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

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 700;
}

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

/* ========================================
   Final CTA
   ======================================== */
.final-cta {
    padding: var(--section-padding) 0;
    background: var(--surface);
}

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

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-ai {
    color: var(--secondary);
}

.footer-brand .logo-icon svg {
    stroke: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    padding: 0.375rem 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.875rem;
}

/* ========================================
   Legal Pages (Privacy & Terms)
   ======================================== */
.legal-page {
    padding-top: 120px;
    padding-bottom: var(--section-padding);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.legal-content strong {
    color: var(--text-primary);
}

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

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

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--border);
}

.legal-table th {
    background: var(--surface-muted);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-muted);
}

.legal-summary {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid var(--border);
}

.legal-summary h3 {
    margin-top: 0;
    color: var(--primary);
}

.legal-summary ul {
    margin-bottom: 0;
}

.legal-contact {
    background: var(--surface-muted);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.legal-contact h3 {
    margin-top: 0;
}

.legal-contact p {
    margin-bottom: 0.5rem;
}

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

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

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

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

    .feature-main {
        grid-column: span 2;
    }

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

    .problem-divider {
        transform: rotate(90deg);
    }

    .privacy-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .privacy-icon {
        margin: 0 auto;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .feature-main {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .ai-scan-demo {
        flex-direction: column;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        width: auto;
    }

    .step-visual {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .floating-element {
        display: none;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .privacy-card {
        padding: 2rem;
    }

    .pricing-card {
        padding: 2rem;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
