@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f9f9f7; /* Requested warm off-white background */
    --bg-card: #FFFFFF; /* Crisp white for content cards */
    --primary: #10B981; /* Vibrant Emerald Green - Fresh & Trustworthy */
    --primary-hover: #059669; /* Deeper emerald for hovers */
    --text-main: #334155; /* Slate gray for rich, readable body text */
    --text-muted: #64748B; /* Soft slate for secondary text */
    --border: #E2E8F0; /* Clean light slate borders */
    --heading-color: #0F172A; /* Deep rich navy-slate for headings */
    --dark-accent: #FFFFFF; /* White text for buttons/accents */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Modern System Font Stack (0kb download, 100% SEO Speed) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
    margin-bottom: 15px;
}

/* Adjust the H1 slightly so it stands out */
.hero h1 {
    font-size: 39px;
    text-align: center;
    margin-bottom: 50px;
}

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



.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR */
.top-bar {
    background-color: var(--primary);
    padding: 8px 0;
    color: var(--dark-accent);
    font-size: 14px;
    font-weight: 700;
}
.top-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}


/* MAIN HEADER */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Soft elegant shadow */
    position: relative;
    z-index: 100;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
}
.logo img {
    width: 40px;
    height: 40px;
}
.nav-links {
    display: flex;
    gap: 24px;
    font-weight: 600;
    font-size: 15px;
}
.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* HERO SECTION */
.hero {
    padding: 60px 0;
}
.hero-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

/* LEFT SIDE - APP ICON */
.app-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.app-icon-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}
.app-icon-wrapper img {
    width: 140px;
}
.ratings {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
}
.stars {
    color: var(--primary);
}
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: var(--dark-accent);
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 19px;
    transition: background 0.2s ease;
}


/* RIGHT SIDE - STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.stat-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-icon {
    color: var(--primary);
}
.stat-info h3 {
    font-size: 19px;
    margin-bottom: 4px;
    color: var(--primary);
}
.stat-info p {
    color: var(--text-main);
    font-size: 15px;
}

/* CONTENT SECTIONS */
.seo-section {
    padding: 40px 0;
}
.seo-section h2 {
    margin-bottom: 24px;
    color: var(--primary);
}
.seo-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-main);
}
.seo-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
}
.seo-section ul, .seo-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
}
.seo-section li {
    margin-bottom: 8px;
}

/* AMBIENT GLOW BLOB */
.position-relative { position: relative; }
.z-index-2 { z-index: 2; }

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129,0.1) 0%, rgba(16, 185, 129,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
}

/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
    margin-top: 40px;
}

.bento-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
}
.bento-large .feature-icon {
    width: 80px;
    height: 80px;
}
.bento-large .feature-icon svg { width: 40px; height: 40px; }
.bento-large h3 { font-size: 29px; }
.bento-large p { font-size: 17px; }

.bento-wide { grid-column: span 2; }
.bento-square { grid-column: span 1; }

.bento-wide-bottom {
    grid-column: span 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}
.bento-wide-bottom .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}
.bento-wide-bottom .feature-icon svg { width: 40px; height: 40px; }
.bento-wide-bottom h3 { margin-top: 0; }

.bento-card .feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 25px;
}

.bento-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 21px;
    color: var(--heading-color);
    font-weight: 700;
}
.bento-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 1050px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large {
        grid-column: span 2;
        grid-row: auto;
    }
    .bento-wide-bottom {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .bento-wide-bottom .feature-icon { margin-bottom: 20px; }
}
@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide, .bento-square, .bento-wide-bottom {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* UPDATE GRID */
.update-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .update-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .update-grid {
        grid-template-columns: 1fr;
    }
}

/* COMPARISON TABLE */
.comparison-table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.comparison-table th, .comparison-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table th {
    font-size: 19px;
    font-weight: 700;
    color: var(--heading-color);
}
.comparison-table td {
    font-size: 16px;
    color: var(--text-muted);
}
.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
}

/* Highlight OnStream Column */
.col-onstream {
    background: rgba(16, 185, 129, 0.03);
    border-left: 1px solid rgba(16, 185, 129, 0.1);
    border-right: 1px solid rgba(16, 185, 129, 0.1);
}
.comparison-table th.col-onstream {
    color: var(--primary);
    font-size: 21px;
    background: rgba(16, 185, 129, 0.08);
}
.check-icon {
    color: var(--primary);
    margin-right: 8px;
    font-weight: 800;
    font-size: 17px;
}
.cross-icon {
    color: #ef4444;
    margin-right: 8px;
    font-weight: 800;
    font-size: 17px;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    .comparison-table {
        min-width: 700px;
    }
}

/* SECTION IMAGE LAYOUTS */
.prefer-layout, .guide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.section-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}


@media (max-width: 900px) {
    .prefer-layout, .guide-layout {
        grid-template-columns: 1fr;
    }
    .prefer-image-wrapper, .guide-image-wrapper {
        text-align: center;
        order: -1;
        margin-bottom: 30px;
    }
}

/* PREFER CARDS */
.prefer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.prefer-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 35px 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prefer-card h3 {
    color: var(--primary);
    font-size: 23px;
    margin-top: 0;
    margin-bottom: 12px;
}
.prefer-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .prefer-card {
        padding: 25px 20px;
    }

}

/* ABOUT PAGE */
.trust-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-card h2 {
    color: var(--primary);
    font-size: 37px;
    margin: 0 0 10px 0;
}
.metric-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.eeat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.eeat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eeat-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}
.eeat-card h3 {
    font-size: 21px;
    color: var(--text-main);
    margin: 0 0 15px 0;
}
.eeat-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* BREADCRUMB UI */
.breadcrumb-container {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card); /* slightly darker than hero background to blend */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.2);
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@media (max-width: 900px) {
    .trust-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mission-layout {
        grid-template-columns: 1fr;
    }
    .eeat-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .trust-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}
.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
}
.faq-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .top-bar .container {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* TIMELINE SECTION */
.timeline-section {
    padding-top: 40px;
}
.timeline-section h2 {
    text-align: center;
    margin-bottom: 50px;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item.left {
    left: 0;
    text-align: right;
}
.timeline-item.right {
    left: 50%;
    text-align: left;
}
.timeline-circle {
    width: 40px;
    height: 40px;
    position: absolute;
    background-color: var(--bg-dark);
    border: 2px solid;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 1;
}
.timeline-item.left .timeline-circle {
    right: -20px;
}
.timeline-item.right .timeline-circle {
    left: -20px;
}
.timeline-content {
    padding: 25px 30px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.timeline-item.left .timeline-content {
    border-right: 4px solid;
}
.timeline-item.right .timeline-content {
    border-left: 4px solid;
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 19px;
    color: var(--text-main);
}
.timeline-content p {
    margin: 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Timeline Colors */
.border-blue { border-color: #3b82f6 !important; }
.text-blue { color: #3b82f6; }
.border-purple { border-color: #8b5cf6 !important; }
.text-purple { color: #8b5cf6; }
.border-orange { border-color: #f97316 !important; }
.text-orange { color: #f97316; }
.border-green { border-color: #10b981 !important; }
.text-green { color: #10b981; }

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }
    .timeline-item.left .timeline-circle,
    .timeline-item.right .timeline-circle {
        left: 11px;
    }
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        border-right: none;
        border-left: 4px solid;
    }
}

/* Timeline Fill Line Base (Used by JS Fallback) */
.timeline-fill-line {
    position: absolute;
    width: 2px;
    background-color: var(--primary); /* Neon green */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 0;
    transform-origin: top;
    transform: scaleY(0); /* Hidden by default until scrolled */
    will-change: transform;
}

@media screen and (max-width: 768px) {
    .timeline-fill-line {
        left: 31px;
    }
}

/* Native CSS Scroll-Driven Animation (Progressive Enhancement) */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .timeline {
        view-timeline-name: --timeline-line;
        view-timeline-axis: block;
    }
    .timeline-fill-line {
        animation: fill-line linear both;
        animation-timeline: --timeline-line;
        animation-range: entry 10% cover 80%;
    }
    @keyframes fill-line {
        0% { transform: scaleY(0); }
        100% { transform: scaleY(1); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-fill-line {
        animation: none !important;
        transform: scaleY(1) !important;
        transition: none !important;
    }
}

/* =========================================
   GLOBAL MOBILE REBUILD
   ========================================= */

html, body {
    overflow-x: hidden; /* Prevent horizontal scroll from glowing blobs on iOS Safari */
    width: 100%;
}

* {
    word-wrap: break-word; /* Prevent long URLs or text from bleeding out of boxes */
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    /* Typographic scaling */
    h1 {
        font-size: 37px !important;
        line-height: 1.2;
    }
    .hero h1 {
        font-size: 33px !important;
    }
    
    /* Global spacing reduction */
    .seo-section, .hero {
        padding: 40px 0 !important;
        margin-bottom: 40px !important;
    }
    
    /* Policy page heroes */
    [class$="-hero"] {
        padding-top: 40px !important;
    }
    [class$="-hero"] h1 {
        font-size: 41px !important;
    }
    
    /* App Showcase scaling */
    .app-icon-wrapper {
        width: 180px;
        height: 180px;
    }
    .app-icon-wrapper img {
        width: 100px;
    }
    
    /* Bento Grid padding reduction */
    .bento-card {
        padding: 25px;
    }
    
    /* Glow Blob containment */
    .glow-blob {
        max-width: 100vw;
        max-height: 100vw;
    }
    
    /* Make glass deep dives more compact */
    .privacy-details div {
        padding: 25px !important;
    }
}

@media screen and (max-width: 480px) {
    /* Micro adjustments for very small screens */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .logo {
        font-size: 21px;
    }
    
    .top-bar .container {
        gap: 10px;
        justify-content: center;
        text-align: center;
    }
    
    h1, .hero h1 {
        font-size: 29px !important;
    }
    
    [class$="-hero"] h1 {
        font-size: 33px !important;
    }
    
    .bento-large h3 {
        font-size: 23px;
    }
    
    .btn-download {
        font-size: 17px;
        padding: 14px;
    }
    
    .breadcrumb-container {
        overflow-x: auto;
        white-space: nowrap;
    }
}
