/* --- CSS Variables --- */
:root {
    --dark-blue: #132137;
    --cream-bg: #f8eee4;
    --orange-accent: #e87a5d;
    --card-white: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --btn-blue: #2196f3;
    --text-muted: #4a5568;
    --pure-white: #ffffff;
}

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

body {
    background-color: var(--cream-bg);
    color: var(--dark-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Ambient Glow Effects (SOTA Default for Chrome/Edge/Android) --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--btn-blue), transparent 70%);
}

.glow-2 {
    bottom: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--orange-accent), transparent 70%);
}

/* --- Safari & iOS Performance Override --- */
/* Targets iPhone/iPad to prevent WebKit lag by replacing blur with smooth gradients */
@supports (-webkit-touch-callout: none) {
    .ambient-glow {
        filter: none;
        opacity: 0.6;
    }
    .glow-1 {
        width: 60vw;
        height: 60vw;
        background: radial-gradient(circle, rgba(33, 150, 243, 0.8) 0%, rgba(33, 150, 243, 0) 65%);
    }
    .glow-2 {
        width: 50vw;
        height: 50vw;
        background: radial-gradient(circle, rgba(232, 122, 93, 0.8) 0%, rgba(232, 122, 93, 0) 65%);
    }
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Flutter Android Default Font applied to Logo */
.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.blue-text { color: var(--dark-blue); }
.orange-text { color: var(--orange-accent); }

/* Translator Button Layout */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--pure-white);
    color: var(--dark-blue);
    border-radius: 30px;
    border: 1px solid rgba(19, 33, 55, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}
.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: var(--btn-blue);
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 5%;
    align-items: center;
    min-height: 70vh;
}

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

/* App Icon with White Background Square */
.app-icon {
    width: 96px;
    height: 96px;
    background-color: var(--pure-white);
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(19, 33, 55, 0.08);
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--btn-blue), var(--orange-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.store-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge-link img {
    height: 54px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-link:hover img {
    transform: scale(1.05) translateY(-2px);
}

/* --- Video Container --- */
.hero-video {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(19, 33, 55, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Features Section --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 5% 5rem 5%;
}

.feature-card {
    background: var(--card-white);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(19, 33, 55, 0.08);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

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

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(19, 33, 55, 0.05);
}

.footer-help {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows them to stack gracefully only on extremely tiny screens */
    gap: 2rem; /* Creates perfect, even spacing between the links */
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    /* (Removed the old margin: 0 1rem; from here since gap handles it better now) */
}

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

/* --- Animations --- */
.animate-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Legal Documents (Mobile Spacing) --- */
.legal-container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto 4rem auto;
    padding: 2rem;
    background: var(--card-white);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.legal-container .effective-date {
    color: var(--orange-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}
.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}
.legal-container p, .legal-container ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.legal-container ul {
    padding-left: 1.5rem;
}
.legal-container li {
    margin-bottom: 0.5rem;
}

/* --- Back Button --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.back-link:hover {
    color: var(--btn-blue);
    transform: translateX(-4px);
}

/* --- Responsive Design (Mobile Layout) --- */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
    .store-badges {
        justify-content: center;
    }
    .glow-1, .glow-2 {
        width: 100vw;
        height: 100vw;
    }
}

/* --- Desktop Restorations --- */
@media (min-width: 768px) {
    .legal-container {
        margin-top: 4rem; /* Restores the larger top space on big screens */
        padding: 3rem;
    }
}
/* Panel Web Button */
.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.panel-link:hover .panel-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    border-color: rgba(99, 102, 241, 0.8);
}
