/* ========================================
   NearbyLove Website Stylesheet
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF4458;
    --primary-dark: #E5243D;
    --primary-light: #FF6B7A;
    --gradient-start: #FF4458;
    --gradient-end: #FF7854;
    --secondary: #7C3AED;
    --spark-blue: #3B82F6;
    --safe-green: #10B981;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 88, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 88, 0.45);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.938rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(255, 68, 88, 0.08);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white !important;
    padding: 10px 24px;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 88, 0.35);
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-bar {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0ED 50%, #F0F0FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 68, 88, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    text-decoration: none;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
}

.store-badge-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badge-store {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.hero-mockup-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

.hero-mockup-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.hero-mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-mockup-placeholder img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
}

.hero-mockup-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---------- Hero Video ---------- */
.hero-video-wrapper {
    width: 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 68, 88, 0.25), 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #000;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.hero-video {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.hero-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 68, 88, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 68, 88, 0.4);
    z-index: 2;
}

.hero-video-play:hover {
    background: rgba(255, 68, 88, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 68, 88, 0.5);
}

.hero-video-wrapper.playing .hero-video-play {
    opacity: 0;
    pointer-events: none;
}

/* ---------- App Trailer ---------- */
.trailer-wrapper {
    max-width: 400px;
    margin: 0 auto 48px;
    text-align: center;
}

.trailer-video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(233, 69, 96, 0.25), 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #000;
    cursor: pointer;
}

.trailer-video {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.trailer-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: rgba(233, 69, 96, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    z-index: 2;
}

.trailer-play-btn:hover {
    background: rgba(233, 69, 96, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}

.trailer-video-container.playing .trailer-play-btn {
    opacity: 0;
    pointer-events: none;
}

.trailer-caption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trailer-wrapper {
        max-width: 300px;
        margin: 0 auto 28px;
    }

    .trailer-play-btn {
        width: 56px;
        height: 56px;
    }

    .trailer-play-btn svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 992px) {
    .hero-video-wrapper {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .hero-video-wrapper {
        width: 240px;
    }

    .hero-video-play {
        width: 56px;
        height: 56px;
    }

    .hero-video-play svg {
        width: 36px;
        height: 36px;
    }
}

/* ---------- Feature Videos ---------- */
.feature-video-wrapper {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(255, 68, 88, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #000;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
}

.feature-video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.feature-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 68, 88, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(255, 68, 88, 0.4);
    z-index: 2;
}

.feature-video-play:hover {
    background: rgba(255, 68, 88, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.feature-video-wrapper.playing .feature-video-play {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-icon-radar { background: rgba(255, 68, 88, 0.1); }
.feature-icon-spark { background: rgba(59, 130, 246, 0.1); }
.feature-icon-voice { background: rgba(124, 58, 237, 0.1); }
.feature-icon-blind { background: rgba(245, 158, 11, 0.1); }
.feature-icon-safe { background: rgba(16, 185, 129, 0.1); }
.feature-icon-vibe { background: rgba(236, 72, 153, 0.1); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.how-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    z-index: 0;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.how-step-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(255, 68, 88, 0.3);
}

.how-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.how-step p {
    color: var(--text-secondary);
    font-size: 0.938rem;
}

/* ---------- Safety Section ---------- */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.safety-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.safety-card:hover {
    box-shadow: var(--shadow-md);
}

.safety-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.safety-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.safety-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .store-badge {
    background: white;
    color: var(--text-primary);
}

.cta-buttons .store-badge:hover {
    background: var(--bg-light);
}

/* ---------- Features Detail Page ---------- */
.feature-detail {
    padding: 60px 0;
}

.feature-detail:nth-child(even) {
    background: var(--bg-light);
}

.feature-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-detail:nth-child(even) .feature-detail-text {
    order: 2;
}

.feature-detail:nth-child(even) .feature-screenshot {
    order: 1;
}

.feature-detail-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-detail-text h2 span {
    font-size: 2rem;
}

.feature-detail-text > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.feature-steps {
    counter-reset: step;
}

.feature-steps h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-step-item {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.feature-step-item::before {
    content: counter(step);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-step-item p {
    color: var(--text-secondary);
    font-size: 0.938rem;
    line-height: 1.5;
}

.feature-screenshot {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 2px dashed var(--border);
}

.feature-screenshot img {
    max-height: 500px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.feature-screenshot-placeholder {
    color: var(--text-muted);
    font-size: 0.938rem;
    text-align: center;
}

/* ---------- FAQ ---------- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 68, 88, 0.1);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.938rem;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 68, 88, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.contact-info {
    padding: 40px 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 68, 88, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ---------- Legal Pages ---------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.legal-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul li {
    color: var(--text-secondary);
    line-height: 1.8;
    list-style: disc;
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--primary);
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0ED 50%, #F0F0FF 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 16px 24px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    font-size: 0.875rem;
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner a {
    color: var(--primary-light);
}

.cookie-banner .btn {
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-links-col h4 {
    color: white;
    font-size: 0.938rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-mockup {
        width: 240px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-steps::before {
        display: none;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail-content {
        grid-template-columns: 1fr;
    }

    .feature-detail:nth-child(even) .feature-detail-content {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        gap: 4px;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .store-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
    position: relative;
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 7px 12px 7px 10px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    line-height: 1;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1002;
}

.lang-switcher-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 68, 88, 0.04);
}

.lang-switcher-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.lang-switcher-btn:hover svg {
    opacity: 1;
}

.lang-chevron {
    transition: transform 0.25s;
    margin-left: -1px;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 480px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    line-height: 1;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(255, 68, 88, 0.06);
}

.lang-option-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--bg-gray);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.lang-option.active .lang-option-code {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.lang-option-name {
    flex: 1;
    font-weight: 500;
}

.lang-check {
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lang-switcher {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .lang-dropdown {
        display: none;
    }

    .lang-dropdown.open {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        position: fixed;
        top: var(--nav-height, 64px);
        left: 8px;
        right: 8px;
        width: auto;
        min-width: unset;
        max-height: calc(100vh - var(--nav-height, 64px) - 20px);
        overflow-y: auto;
        padding: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        z-index: 9999;
    }

    .lang-option {
        padding: 8px 6px;
        gap: 6px;
        font-size: 0.78rem;
    }

    .lang-option-code {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .lang-dropdown.open {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- RTL Support ---------- */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .nav-toggle {
    order: -1;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

[dir="rtl"] .features-grid,
[dir="rtl"] .how-steps,
[dir="rtl"] .safety-grid {
    direction: rtl;
}

[dir="rtl"] .feature-card,
[dir="rtl"] .how-step {
    text-align: right;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-question::after {
    margin-left: 0;
    margin-right: 16px;
}

[dir="rtl"] .safety-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .safety-card .safety-icon {
    margin-left: 16px;
    margin-right: 0;
}

[dir="rtl"] .legal-content {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .legal-content ul {
    padding-left: 0;
    padding-right: 24px;
}

[dir="rtl"] .feature-detail-content {
    direction: rtl;
}

[dir="rtl"] .feature-detail:nth-child(even) .feature-detail-text {
    order: 1;
}

[dir="rtl"] .feature-detail:nth-child(even) .feature-screenshot {
    order: 2;
}

[dir="rtl"] .feature-detail-text {
    text-align: right;
}

[dir="rtl"] .feature-step-item {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .feature-steps {
    text-align: right;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
}

[dir="rtl"] .contact-form {
    text-align: right;
}

[dir="rtl"] .contact-form label {
    text-align: right;
}

[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .contact-info-item {
    direction: rtl;
}

[dir="rtl"] .contact-info-item .contact-info-icon {
    margin-left: 16px;
    margin-right: 0;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .footer-brand,
[dir="rtl"] .footer-links-col {
    text-align: right;
}

[dir="rtl"] .footer-links-col ul {
    padding: 0;
}

[dir="rtl"] .footer-social {
    justify-content: flex-start;
}

[dir="rtl"] .footer-bottom {
    text-align: right;
}

[dir="rtl"] .cta-section {
    text-align: right;
}

[dir="rtl"] .cta-buttons {
    justify-content: center;
}

[dir="rtl"] .store-badge {
    direction: ltr;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-chevron {
    margin-left: 0;
    margin-right: -1px;
}

[dir="rtl"] .page-header {
    text-align: right;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
    text-align: center;
}

[dir="rtl"] .a11y-toggle {
    left: auto;
    right: 24px;
}

[dir="rtl"] .a11y-panel {
    left: auto;
    right: 24px;
}

[dir="rtl"] .cookie-banner {
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-container {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .nav-menu {
        text-align: right;
    }

    [dir="rtl"] .lang-switcher {
        right: auto;
        left: 60px;
    }

    [dir="rtl"] .lang-dropdown {
        left: 8px;
        right: 8px;
    }
}

/* ---------- Accessibility ---------- */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 12px;
    color: white;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.nav-link:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius-full);
}

.social-link:focus-visible {
    outline-color: white;
    outline-offset: 2px;
}

.faq-question:focus-visible {
    outline-offset: -3px;
}

/* Accessibility Widget */
.a11y-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    transition: all 0.3s;
}

.a11y-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.a11y-panel {
    position: fixed;
    bottom: 88px;
    left: 24px;
    width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.a11y-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary);
    color: white;
}

.a11y-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.a11y-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.a11y-panel-body {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.a11y-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.75rem;
    color: var(--text-primary);
    transition: all 0.2s;
    text-align: center;
}

.a11y-option:hover {
    border-color: var(--primary);
    background: rgba(255, 68, 88, 0.05);
}

.a11y-option.active {
    border-color: var(--primary);
    background: rgba(255, 68, 88, 0.1);
    font-weight: 600;
}

.a11y-option-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.a11y-reset {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    background: var(--bg-light);
}

/* Reading Guide */
.reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(255, 68, 88, 0.15);
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    pointer-events: none;
    z-index: 9997;
    display: none;
}

.reading-guide.active {
    display: block;
}

/* High Contrast Mode */
body.high-contrast {
    --bg-white: #000000;
    --bg-light: #1a1a1a;
    --bg-gray: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #BBBBBB;
    --border: #555555;
}

body.high-contrast .navbar {
    background: rgba(0, 0, 0, 0.98);
    border-bottom-color: var(--primary);
}

body.high-contrast .feature-card,
body.high-contrast .safety-card,
body.high-contrast .contact-form,
body.high-contrast .faq-item {
    background: #1a1a1a;
    border-color: #555;
}

body.high-contrast .hero {
    background: #111;
}

body.high-contrast .page-header {
    background: #111;
}

body.high-contrast .section-alt {
    background: #1a1a1a;
}

body.high-contrast .nav-menu {
    background: #000;
}

body.high-contrast .lang-switcher-btn {
    background: #222;
    border-color: #555;
    color: #ddd;
}

body.high-contrast .lang-dropdown {
    background: #1a1a1a;
    border-color: #555;
}

body.high-contrast .lang-option {
    color: #ddd;
}

body.high-contrast .lang-option-code {
    background: #333;
    color: #bbb;
}

body.high-contrast .a11y-panel {
    background: #1a1a1a;
}

body.high-contrast .a11y-option {
    background: #222;
    border-color: #555;
    color: white;
}

/* Grayscale Mode */
body.grayscale {
    filter: grayscale(100%);
}

/* Underline Links Mode */
body.underline-links a {
    text-decoration: underline !important;
}

/* Stop Animations */
body.stop-animations *,
body.stop-animations *::before,
body.stop-animations *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

body.stop-animations .fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Prefers high contrast */
@media (prefers-contrast: high) {
    :root {
        --border: #555555;
    }

    *:focus-visible {
        outline-width: 4px;
    }
}
