:root {
    --primary-color: #007aff;
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --section-bg: #f5f5f7;
    --gradient-start: #00c6ff;
    --gradient-end: #0072ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1002; /* Above mobile menu */
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 24px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002; /* Above mobile menu */
}

.nav-icon {
    height: 24px;
    width: 24px;
    border-radius: 6px;
}

.lang-btn {
    background: none;
    border: 1px solid #e5e5e5;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #f5f5f7;
}

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

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    height: 100vh;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Animation Delays */
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}

/* Hero */
.hero {
    padding: 120px 20px 40px;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

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

.hero-screenshot {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* Phone Mockup - Refined for iPhone 16/17 Pro style */
.iphone-frame {
    width: 300px;
    height: 650px; /* 19.5:9 Aspect Ratio */
    background: #000;
    border: 9px solid #1d1d1f;
    border-radius: 54px;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.2),
        0 0 0 2px #333; /* Outer metal ring effect */
    overflow: hidden;
    flex-shrink: 0;
}

.iphone-frame.small {
    width: 240px;
    height: 520px;
    border-width: 7px;
    border-radius: 44px;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Ensure full screenshot is visible without cropping */
    display: block;
    transition: opacity 0.3s ease-in-out;
}

/* Home Indicator */
.iphone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    z-index: 10;
}

/* Screen Reflection Overlay */
.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 6;
}

.dual-screenshots {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

/* Dynamic Island - Removed to avoid conflict with screenshots */
.iphone-frame::before {
    display: none;
}

.screen-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Visuals inside Phone */
.screen-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

/* AI Disclaimer */
.ai-disclaimer {
    font-size: 12px;
    color: #86868b;
    background: #f5f5f7;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.05);
}

.app-icon-large img {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.2);
    margin-bottom: 40px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.coming-soon {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Features */
.feature-section {
    padding: 100px 20px;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.feature-content p {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Visuals (Abstract CSS Art) */
.feature-visual {
    flex: 1;
    height: 400px;
    background: var(--section-bg);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chart Visual */
.chart-line {
    width: 80%;
    height: 2px;
    background: #e5e5e5;
    position: relative;
}
.chart-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: flow 2s infinite;
}
.chart-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(0,122,255,0.5);
}
.d1 { top: 60%; left: 30%; }
.d2 { top: 40%; left: 50%; }
.d3 { top: 50%; left: 70%; }

/* Scan Visual */
.scan-frame {
    width: 200px;
    height: 260px;
    border: 4px solid #e5e5e5;
    border-radius: 20px;
    position: relative;
}
.scan-line {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    top: 20px;
    box-shadow: 0 0 20px var(--primary-color);
    animation: scan 3s infinite ease-in-out;
}

/* Family Visual */
.card {
    width: 180px;
    height: 100px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: absolute;
    transition: transform 0.3s;
}
.c1 { top: 120px; left: 50%; transform: translateX(-50%) scale(0.9); opacity: 0.6; z-index: 1; }
.c2 { top: 150px; left: 50%; transform: translateX(-50%) scale(0.95); opacity: 0.8; z-index: 2; }
.c3 { top: 180px; left: 50%; transform: translateX(-50%); z-index: 3; }

/* Grid Section */
.grid-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-item h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.grid-item p {
    color: var(--text-secondary);
    font-size: 17px;
}

/* Footer */
footer {
    background: var(--section-bg);
    padding: 60px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* Privacy Page */
.privacy-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.privacy-container h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.privacy-section {
    margin-bottom: 50px;
}

.privacy-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 17px;
}

.privacy-section ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.privacy-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}

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

/* Responsive */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

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

    h1 { font-size: 36px; }
    .hero-sub { font-size: 20px; }
    
    .feature-section {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .feature-section.reverse {
        flex-direction: column;
    }
    
    .feature-visual {
        width: 100%;
        height: 300px;
    }
    
    .grid-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dual-screenshots {
        flex-direction: column;
        align-items: center;
    }
}
