/* Reset & Base Styles */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --sky-blue: #0ea5e9;
    --safety-yellow: #EDFF00;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradient (Animated) */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, var(--primary-blue) 0%, #000000 60%);
    background-size: 100% 200%;
    animation: gradientMove 8s ease infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 30%; }
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    /* Removed old logo-icon div style, using img in HTML now */
}

.nav-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

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

/* Real App Icon Style */
.app-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    position: relative;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    display: block;
    border: 1px solid rgba(255,255,255,0.1);
}

.app-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 255, 0, 0.15) 0%, transparent 70%); /* Yellow glow */
    opacity: 0;
    animation: glow 3s infinite;
    z-index: -1;
}

@keyframes glow {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: var(--safety-yellow);
    color: #000;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid var(--safety-yellow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(237, 255, 0, 0.3);
    opacity: 1;
    background: #000;
    color: var(--safety-yellow);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--safety-yellow);
}

.glass-card:hover .card-icon {
    color: var(--safety-yellow);
    background: none;
    -webkit-text-fill-color: var(--safety-yellow);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Detailed Features (Zig-Zag Layout) */
.detailed-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.detailed-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--safety-yellow);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-visual {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.detailed-feature:hover .feature-visual {
    border-color: rgba(237, 255, 0, 0.3);
}

.feature-icon-large {
    font-size: 80px;
    color: rgba(255,255,255,0.2);
    transition: color 0.3s ease, transform 0.3s ease;
}

.detailed-feature:hover .feature-icon-large {
    color: var(--safety-yellow);
    transform: scale(1.1);
    opacity: 0.8;
}

/* Screenshots Section */
.screenshots {
    text-align: center;
}

.screenshot-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;
}

.phone-frame:hover {
    box-shadow: 0 30px 60px rgba(237, 255, 0, 0.15);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 0;
    margin-top: 100px;
    background: rgba(0,0,0,0.3);
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

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

/* Legal Page Specifics */
.legal-content {
    max-width: 800px;
    margin: 120px auto 60px;
}

.legal-section {
    margin-bottom: 40px;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.legal-section h2 {
    text-align: left;
    margin-top: 0;
    color: var(--safety-yellow);
}

.legal-section h3 {
    margin-top: 20px;
    color: #fff;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero { padding-top: 120px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .detailed-feature { flex-direction: column !important; gap: 30px; margin-bottom: 80px; }
    .feature-text { text-align: center; }
}
/* ... existing styles ... */

/* Nav CTA Button */
.nav-cta {
    background: var(--safety-yellow);
    color: #000 !important; /* Override default link color */
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px !important;
    opacity: 1;
    transform: translateY(0);
}

.nav-cta:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 255, 0, 0.3);
}

.nav-cta.hidden-cta {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute; /* Take out of flow when hidden to prevent layout shifts if needed, though opacity handles visual */
    visibility: hidden;
}

/* Ensure nav-links container handles the button correctly */
.nav-links {
    display: flex;
    align-items: center;
}

/* ... existing styles ... */

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    overflow: hidden; /* Ensure image doesn't bleed out */
    border-radius: 32px; /* Match inner radius slightly smaller than outer frame */
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Force fill to stretch/squash into frame if needed, or 'cover' to crop */
    display: block;
}

/* Adjust frame size if needed to better match iPhone aspect ratio (approx 19.5:9) */
.phone-frame {
    width: 280px;
    height: 600px; /* Increased height slightly for modern iPhones */
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;
}

/* ... existing styles ... */

/* Responsive Navigation Fixes */
@media (max-width: 768px) {
    /* Hide text links on mobile to save space */
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    /* Adjust Nav CTA for mobile header */
    .nav-cta {
        margin-left: auto !important; /* Push to right */
        padding: 6px 12px; /* Smaller padding */
        font-size: 0.8rem !important;
    }
    
    /* Ensure header container handles layout correctly */
    nav {
        gap: 10px;
    }
    
    .logo {
        font-size: 1.2rem; /* Slightly smaller logo text */
    }
}

/* ... existing styles ... */

/* Responsive Navigation Fixes */
@media (max-width: 768px) {
    /* Show links again but smaller */
    .nav-links a:not(.nav-cta) {
        display: block !important;
        font-size: 0.8rem;
        margin-left: 10px;
    }

    /* Adjust Nav CTA for mobile header */
    .nav-cta {
        margin-left: 10px !important; 
        padding: 6px 12px;
        font-size: 0.8rem !important;
    }
    
    /* Ensure header container handles layout correctly */
    nav {
        gap: 5px;
    }
    
    .logo {
        font-size: 1.2rem;
        margin-right: auto; /* Push links to right but keep logo left */
    }
    
    /* Ensure container fits everything */
    .nav-links {
        gap: 5px;
    }
}

/* Promo Banner (Liquid Glass) */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.promo-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    max-width: 90%;
    width: auto;
    color: #fff;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-icon {
    font-size: 24px;
    color: var(--safety-yellow);
    background: rgba(237, 255, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.promo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.promo-code {
    background: rgba(237, 255, 0, 0.2);
    color: var(--safety-yellow);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.promo-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    display: flex;
}

.promo-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .promo-banner {
        bottom: 20px;
        padding: 12px 16px;
        border-radius: 16px;
        gap: 12px;
    }
    
    .promo-text p {
        font-size: 0.85rem;
    }
    
    .promo-icon {
        display: none;
    }
    
    .promo-code {
        padding: 1px 6px;
    }
}

