:root {
    /* Google Brand Colors */
    --color-red: #EA4335;
    --color-red-dark: #C5221F;
    --color-blue: #4285F4;
    --color-green: #34A853;
    --color-yellow: #FBBC05;
    --color-yellow-light: #FFC311;

    --color-dark: #202124;
    --color-bg: #FAFBFC;
    --font-main: 'M PLUS Rounded 1c', 'Varela Round', sans-serif;
    --radius-pill: 9999px; /* Maximum rounding for pill shape */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-dark);
    overflow-x: hidden;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-in {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.floating {
    animation: float 4s ease-in-out infinite;
}
.delay-200 { animation-delay: 0.2s; }

/* --- Header --- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 32px;
    font-weight: 800; /* Extra bold */
    color: var(--color-red);
    letter-spacing: -0.5px;
}

.lang-toggle {
    display: flex;
    background: #F1F3F4;
    border-radius: var(--radius-pill);
    padding: 4px;
}

.lang-btn {
    background: transparent;
    color: #5F6368;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--color-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    background: linear-gradient(180deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg-circle-1 {
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-bg-circle-2 {
    position: absolute;
    bottom: -50px; left: -100px;
    width: 300px; height: 300px;
    background: rgba(251, 188, 5, 0.1);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.highlight { color: var(--color-yellow-light); }

.hero p {
    font-size: 19px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
    font-weight: 500;
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-width: 400px;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    line-height: 0;
    z-index: 2;
}

/* --- Product Section --- */
.product-section {
    /* Reduced padding-top to bring content closer to wave */
    padding: 30px 40px 80px 40px;
    background: white;
    position: relative;
}

.bg-blob {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(66,133,244,0.03) 0%, rgba(255,255,255,0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: rgba(52, 168, 83, 0.1);
    color: var(--color-green);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.product-title {
    font-size: 44px;
    font-weight: 800;
    /* Title Color Changed to Red */
    color: var(--color-red);
    /* Reduced margin-bottom from 16px to 4px */
    margin: 0 0 4px 0;
}

.product-subtitle {
    font-size: 20px;
    color: #5F6368;
    margin: 0;
}

.product-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.phones-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
}

.features-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
}

/* --- Phone Mockup CSS (Scaled down by ~10%) --- */
.phone-mockup {
    background: #202124;
    border-radius: 36px; /* Reduced from 40px */
    padding: 10px; /* Reduced from 12px */
    /* Increased Shadow for Phones */
    box-shadow: 0 35px 70px -10px rgba(0,0,0,0.4);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 16px; /* Reduced from 18px */
    left: 50%;
    transform: translateX(-50%);
    width: 81px; /* Reduced from 90px */
    height: 23px; /* Reduced from 26px */
    background: #202124;
    border-radius: 12px; /* Reduced from 14px */
    z-index: 10;
}

.phone-screen {
    background: white;
    border-radius: 27px; /* Reduced from 30px */
    overflow: hidden;
    position: relative;
    width: 216px; /* Reduced from 240px */
    height: 432px; /* Reduced from 480px */
    display: flex;
    flex-direction: column;
}

.app-bg {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 45px 18px 22px; /* Slightly reduced padding */
}

.app-top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px; /* Reduced margin */
    color: var(--color-blue);
    font-weight: bold;
    justify-content: center;
}

.math-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px; /* Reduced margin */
    width: 100%;
}

.math-display {
    font-size: 28px; /* Reduced from 32px */
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0;
}

.math-input-box {
    background: #F2F2F2;
    color: var(--color-green);
    padding: 12px 14px; /* Reduced padding */
    border-radius: 14px;
    font-size: 28px; /* Reduced from 32px */
    font-weight: bold;
    margin-bottom: 0;
    border: 2px solid transparent;
    border-color: #E0E0E0;
}

.math-input-box.filled {
    background: rgba(52, 168, 83, 0.1);
    border-color: var(--color-green);
}

.app-btn {
    background: var(--color-green);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 0; /* Reduced padding */
    width: 100%;
    font-family: var(--font-main);
    font-size: 16px; /* Reduced from 18px */
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(52, 168, 83, 0.3);
    cursor: pointer;
}

.app-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* Reduced gap */
    width: 100%;
    margin-top: auto;
}

.keypad-btn {
    background: #F8F9FA;
    border: none;
    border-radius: 10px; /* Reduced radius */
    padding: 12px 0; /* Reduced padding */
    font-weight: bold;
    font-size: 16px; /* Reduced from 18px */
    color: var(--color-dark);
}

/* --- UI for the Settings Screen (Right Phone) --- */
.settings-header {
    background: #EA4335;
    width: 100%;
    padding: 36px 14px 18px; /* Reduced padding */
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    color: white;
}

.grid-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px; /* Reduced gap */
    margin-top: 12px;
}

.grid-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px; /* Reduced size */
}
.grid-item.active {
    background: white;
    color: #EA4335;
}

.settings-body {
    background: #F1F3F4;
    margin: 18px 14px;
    padding: 14px;
    border-radius: 18px;
    width: calc(100% - 28px);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}
.setting-label { font-size: 11px; font-weight: bold; color: #202124; margin-bottom: 4px; }
.setting-input { background: white; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 4px; border: 1px solid #ddd; }

/* Phone scaling */
.phone-scale-down {
    transform: scale(0.85) translateY(20px);
    opacity: 0.8;
    filter: blur(0.5px);
}
.phone-scale-up {
    transform: scale(1.05);
    z-index: 2;
}

/* --- Feature Cards --- */
.feature-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Increased Shadow for Feature Cards */
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid #F1F3F4;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: white;
    /* Unified Red Dark Color */
    background: var(--color-red);
    box-shadow: 0 4px 12px rgba(197, 34, 31, 0.3);
}

.feature-text {
    font-size: 16px;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
}

/* CTA Buttons */
.hero-cta {
    /* Changed to Green */
    background: var(--color-green);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    /* Smaller Button Size */
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 800;
    font-family: var(--font-main);
    cursor: pointer;
    /* Increased Shadow */
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s;
}
.hero-cta:hover { transform: scale(1.02); }

.section-cta {
    background: var(--color-green);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 20px 42px;
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-main);
    cursor: pointer;
    /* Increased Shadow */
    box-shadow: 0 12px 35px rgba(52, 168, 83, 0.4);
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s;
}
.section-cta:hover { transform: scale(1.02); }

/* --- Main Content --- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    padding-left: 0;
    padding-right: 0;
}

.content-container {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    color: var(--color-dark);
}

/* --- Privacy Policy Content --- */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
    line-height: 1.8;
}

.privacy-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-red);
    margin-bottom: 12px;
}

.privacy-content .last-updated {
    font-size: 14px;
    color: #5F6368;
    font-weight: 600;
    margin-bottom: 24px;
}

.privacy-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    margin-top: 32px;
    margin-bottom: 16px;
}

.privacy-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.privacy-content p {
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.privacy-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.privacy-content li {
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.privacy-content strong {
    font-weight: 700;
}

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.privacy-content table th,
.privacy-content table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #E0E0E0;
    font-size: 14px;
}

.privacy-content table th {
    background: #F8F9FA;
    font-weight: 700;
    color: var(--color-dark);
}

.privacy-content table td {
    color: var(--color-dark);
}

.privacy-content a {
    color: var(--color-blue);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background: #2D3142; /* Dark Grey Background */
    padding: 50px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
    color: rgba(255,255,255,0.7); /* Lighter text for contrast */
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

/* --- Utility: Language Display --- */
[data-lang="en"] { display: none; }

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 50px;
    }
    .hero-text { text-align: center; }
    .hero-illustration {
        min-width: auto;
        width: 100%;
    }
    .product-content { flex-direction: column; gap: 50px; }
    .phones-container { transform: scale(0.9); width: 100%; }
}

@media (max-width: 768px) {
    .header-container { padding: 16px 20px; }
    .logo-text { font-size: 24px; }

    .hero { padding-top: 100px; padding-bottom: 60px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; margin: 0 auto; }

    .product-section { padding: 60px 20px; }
    .section-header { margin-bottom: 40px; }
    .product-title { font-size: 32px; }

    .phones-container { gap: 12px; }
    .desktop-only { display: none; }

    .section-cta, .hero-cta { width: 100%; }

    /* Reordering for Mobile: CTA Button above bullets */
    .features-container {
        display: flex;
        flex-direction: column;
    }
    .section-cta {
        order: -1;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .content-container {
        font-size: 32px;
        padding: 0 20px;
    }

    /* Privacy and Support Pages - Mobile */
    .privacy-content {
        padding: 0 20px !important;
        box-sizing: border-box;
        width: 100%;
    }

    /* Footer mobile fix */
    footer {
        padding: 50px 20px;
    }

    .privacy-content h1 {
        font-size: 28px;
    }

    .privacy-content h2 {
        font-size: 20px;
    }

    .privacy-content h3 {
        font-size: 16px;
    }

    .privacy-content p,
    .privacy-content li {
        font-size: 14px;
    }

    .privacy-content table {
        font-size: 12px;
    }

    .privacy-content table th,
    .privacy-content table td {
        padding: 8px 4px;
    }

    /* Make table scrollable on very small screens */
    .privacy-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
