/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e2a838;
    --accent-hover: #c9922e;
    --text: #f0f0f0;
    --text-muted: #a0a0b0;
    --bg-dark: #0a0a14;
    --bg-card: rgba(255,255,255,0.05);
    --bg-card-hover: rgba(255,255,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== LANGUAGE SWITCHER ===== */
.nav-lang-wrapper {
    position: relative;
}

.nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.nav-lang-code {
    font-weight: 600;
    font-size: 0.8rem;
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    max-height: 360px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1002;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.nav-lang-wrapper:hover .nav-lang-dropdown,
.nav-lang-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-lang-dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.nav-lang-dropdown a.active {
    background: rgba(226,168,56,0.12);
    color: var(--accent);
    font-weight: 600;
}

.nav-lang-dropdown::-webkit-scrollbar {
    width: 4px;
}

.nav-lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.nav-lang-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(226,168,56,0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    background: rgba(226,168,56,0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent), #f0c060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(226,168,56,0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* ===== iPHONE DEVICE MOCKUP (SVG frame overlay) ===== */
.iphone-device {
    position: relative;
    width: 300px;
    filter: drop-shadow(0 24px 64px rgba(0,0,0,0.55)) drop-shadow(0 0 100px rgba(226,168,56,0.07));
}

.iphone-frame-svg {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.iphone-screen-img {
    position: absolute;
    /* Position matches the SVG screen cutout: x=18 y=18 w=394 h=844 within 430x880 viewBox */
    top: 2.045%;      /* 18/880 */
    left: 4.186%;     /* 18/430 */
    width: 91.628%;   /* 394/430 */
    height: 95.909%;  /* 844/880 */
    z-index: 1;
    border-radius: 11.2% / 5.7%; /* matches rx=48 on 394x844 */
    overflow: hidden;
}

.iphone-screen-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(226,168,56,0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(226,168,56,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== SCREENSHOTS ===== */
.screenshots-wrapper {
    overflow: hidden;
    margin: 0 -24px;
    padding: 0 24px;
}

.screenshots-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 240px;
    transition: transform var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.03);
}

.screenshot-item img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.06);
}

.screenshot-item p {
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== PRIVACY HIGHLIGHT ===== */
.privacy-section {
    background: linear-gradient(135deg, rgba(226,168,56,0.05), rgba(226,168,56,0.02));
    border-radius: var(--radius);
    margin: 0 auto;
    max-width: 1200px;
}

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

.privacy-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.05rem;
}

.privacy-features li .check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(226,168,56,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 2px;
}

.privacy-features li span {
    color: var(--text-muted);
}

.privacy-features li strong {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

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

.shield-icon {
    width: 200px;
    height: 200px;
    background: rgba(226,168,56,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.shield-icon::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(226,168,56,0.1);
}

/* ===== DOWNLOAD CTA ===== */
.download-section {
    text-align: center;
}

.download-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.app-store-badge {
    display: inline-block;
    transition: transform var(--transition);
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 54px;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(20, 20, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--primary);
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.cookie-btn-reject {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.cookie-btn-reject:hover {
    background: rgba(255,255,255,0.12);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-muted);
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cookie-modal-overlay.visible {
    display: flex;
}

.cookie-modal {
    background: var(--primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    max-width: 540px;
    width: 100%;
    padding: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.cookie-modal > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.cookie-category {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category-header h4 {
    font-size: 1rem;
}

.cookie-category p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cookie-modal-buttons .cookie-btn {
    flex: 1;
}

/* ===== SCREENSHOT LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-height: 82vh;
    max-width: 80vw;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-overlay.visible .lightbox-content img {
    animation: lightboxZoomIn 0.3s ease forwards;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    margin-top: 16px;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
    line-height: 1;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-content img {
        max-width: 92vw;
        border-radius: 12px;
    }
}

/* ===== PRIVACY PAGE ===== */
.privacy-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.privacy-page .container {
    max-width: 800px;
}

.privacy-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.privacy-page .last-updated {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

.privacy-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.privacy-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.privacy-page p,
.privacy-page li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.privacy-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-page strong {
    color: var(--text);
}

.privacy-page .contact-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-top: 32px;
}

.privacy-page .contact-box h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

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

    .hero-content {
        max-width: 100%;
    }

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

    .features-grid,
    .features-grid[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

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

    .privacy-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: rgba(10, 10, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .features-grid[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
    }

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

    .iphone-device {
        width: 240px;
    }

    section {
        padding: 60px 0;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .privacy-page h1 {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .download-section h2 {
        font-size: 2rem;
    }
}

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

    .hero p {
        font-size: 1rem;
    }

    .screenshot-item {
        width: 200px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
