/* --- Root Variables & Reset --- */
:root {
    --brand-blue: #2196f3;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

ul, ol {
    margin: 0 0 1rem 1.3rem;
    padding: 0;
}

li {
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-content p {
    margin-left: 1.25rem;
}

.policy-content ul,
.policy-content ol {
    margin-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.intro-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
}

.intro-spacing {
    padding-bottom: 60px;
}

.intro-content h1 {
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.intro-content h1 span {
    color: var(--brand-blue);
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation & Top Bar --- */
.top-bar {
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.top-bar a {
    color: var(--text-muted);
    text-decoration: none;
}

.success-msg {
    background: linear-gradient(90deg, #e6ffed, #d1f7dc);
    color: #1a7f37;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #b7ebc6;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

.success-msg p {
    margin: 0;
}

header {
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

@media (min-width: 769px) {
    header {
        padding: 0px 40px;
        height: 56px;
    }
}
    
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    flex-shrink: 0;
    max-width: min(58vw, 280px);
}

.logo-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 28px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icons a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.nav-icons a:hover {
    text-decoration: underline;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.menu-wrap {
    position: relative;
}

.menu-icon {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    transform: rotate(90deg);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.16);
}

.menu-wrap.active .menu-dropdown {
    display: flex;
}

.menu-dropdown a {
    color: var(--text-main);
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.menu-dropdown a:hover {
    background: #f3f8ff;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    padding: 80px 20px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(33,150,243,0.35), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(55,162,248,0.25), transparent 40%),
        linear-gradient(135deg, #0d1b2a 0%, #020507 60%, #000000 100%);
    color: var(--white);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
    max-width: 600px; 
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(33,150,243,0.15), transparent 60%);
    z-index: 0;
}


.hero h1 {
    font-size: 4.8rem;
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
    font-weight: 800;
}

.hero-line {
    display: block;
}

.hero-line-accent {
    color: #4fc3f7;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.18rem;
    line-height: 1.65;
    max-width: 28em;
    margin: 0 auto;
}

.hero-image {
    display: block;
    width: 100%;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
}

.btn {
    display: inline-block;
    background: var(--brand-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    margin: 28px 0 0;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-outline:hover {
    background: rgba(33,150,243,0.08);
}

.btn-submit {
    width: 100%;
}

/* --- The #1, #2, #3 Feature Blocks --- */
.feature-block {
    margin-bottom: 60px;
}

.feature-block-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 30px;
    background: #f9fbff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.feature-block-split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 30px;
    background: #f9fbff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}


.feature-media,
.feature-content {
    min-width: 0;
}

/* Default layout */
.feature-media {
    order: 1;
}

.feature-content {
    order: 2;
}

/* 🔥 Reverse layout (FIXED) */
.feature-block-split-reverse .feature-media {
    order: 2;
}

.feature-block-split-reverse .feature-content {
    order: 1;
}

.feature-badge {
    color: var(--brand-blue);
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 16px;
}

.feature-block h1 {
    margin-bottom: 20px;
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.feature-block h1 span {
    color: var(--brand-blue);
}

.feature-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    line-height: 1.9;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-top: 20px;
}

.feature-image {
    display: block;
    width: 100%;
    margin-top: 0;
    border-radius: 28px;
    object-fit: cover;
    aspect-ratio: 16 / 10; 
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.video-embed {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.video-embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    border: 0;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-blue);
}

.testimonial-card h3 {
    margin-bottom: 10px;
}

.author {
    font-weight: bold;
    margin-top: 15px;
    color: var(--brand-blue);
}

/* --- Stats Bar --- */
.stats-wrap {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: var(--brand-blue);
    color: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    margin: 60px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item h1 {
    margin-bottom: 5px;
    font-size: 3rem;
}

.stat-item h2 {
    font-size: 1.2rem;
    font-weight: normal;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

footer a {
    color: var(--brand-blue);
    text-decoration: none;
    margin: 0 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container {
        gap: 16px;
        padding: 0 16px;
    }

    .logo {
        max-width: min(62vw, 220px);
    }

    .logo-image {
        height: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 3.3rem;
        line-height: 1.02;
    }

    .hero p {
        margin: 0 auto;
        max-width: 28rem;
    }

    .image-placeholder {
        height: 220px;
    }

    .feature-block-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .intro-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .intro-spacing {
        padding-bottom: 40px;
    }

    .intro-content h1 {
        font-size: 2.8rem;
    }

    /* Stack all feature blocks vertically with text first, image next */
    .feature-block-split,
    .feature-block-split-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Force text first, image second */
    .feature-block-split .feature-content,
    .feature-block-split-reverse .feature-content {
        order: 1;
    }

    .feature-block-split .feature-media,
    .feature-block-split-reverse .feature-media {
        order: 2;
    }

    /* Mobile padding for all sections */
    .section-padding {
        padding: 40px 20px 20px 20px; /* top 40px, right 20px, bottom 20px, left 20px */
    }

    .feature-block h1 {
        font-size: 2.7rem;
    }

    .video-embed iframe {
        min-height: 220px;
    }

    .menu-wrap.active .menu-dropdown {
        right: 0;
    }
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/*2. CSS for About Page Cards*/

.about-page .feature-blocks {
    margin-top: 60px;
    scroll-margin-top: 88px;
}

.about-page .feature-block-split,
.about-page .feature-block-split-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.about-page .feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--brand-blue);
}

.about-page .feature-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-page .apps-card {
    max-width: 760px;
    margin: 0 auto 32px;
    padding: 28px 24px;
    text-align: center;
    background: #f9fbff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.about-page .apps-card h2 {
    margin-bottom: 12px;
}

.about-page .apps-card p {
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 42rem;
}

.about-page .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
    margin-top: 40px;
    padding: 0 20px; /* left/right padding */
}

.about-page .faq-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
}

.about-page .faq-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--brand-blue);
}

.about-page .faq-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.about-page .about-cta {
    padding-bottom: 20px;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .about-page .feature-block-split,
    .about-page .feature-block-split-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-page .feature-content h3 {
        font-size: 1.5rem;
    }

    .about-page .about-cta {
        padding-bottom: 10px;
    }
}

/* ===== FINAL ENHANCEMENTS (ADD BELOW YOUR FILE) ===== */

/* 🔥 Button improvements */
.btn {
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33,150,243,0.3);
    opacity: 0.95;
}

/* 🔥 Coming soon button */
.btn-coming {
    background: #aaa;
    cursor: not-allowed;
}

/* 🔥 Download button */
.btn-download {
    background: #0d1b2a;
}

/* 🔥 Links under apps */
.links {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.links a {
    color: var(--brand-blue);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--brand-blue);
    font: inherit;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.app-detail-copy {
    max-width: 780px;
    margin: 0 auto;
}

.app-page-head {
    margin-bottom: 26px;
}

.app-page-card,
.app-page-detail-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.app-page-layout {
    align-items: start;
}

.app-page-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-page-copy h1 {
    margin-bottom: 16px;
}

.app-breadcrumb {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.app-breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
}

.app-breadcrumb span {
    margin: 0 8px;
    color: #9aa8b8;
}

.app-status-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9f4ff;
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 700;
}

.app-detail-copy h2,
.app-detail-copy h3 {
    text-align: center;
}

.app-detail-copy h3 {
    margin-top: 28px;
}

.app-detail-copy p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.app-feature-list {
    max-width: 700px;
    margin: 16px auto 0;
    padding-left: 1.5rem;
    color: var(--text-main);
    list-style-position: outside;
    text-align: left;
}

.app-feature-list li {
    margin-bottom: 12px;
    padding-left: 0.2rem;
}

.app-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}

.app-page-primary-actions {
    margin-top: 0;
}

.links {
    text-align: center;
}

.app-page-bottom {
    padding-bottom: 16px;
}

.app-page-detail-card {
    max-width: 920px;
    margin: 32px auto 0;
    padding: 40px 36px;
}

.offline-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px;
}

body.modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.app-modal.is-open {
    display: block;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 18, 0.7);
}

.app-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.app-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}

.app-modal-content {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 32px;
    padding: 32px;
}

.app-modal-media {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.app-modal-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.app-modal-copy h2 {
    margin-bottom: 12px;
}

.app-modal-desc,
.app-modal-copy p {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.75;
}

.app-modal-features-wrap {
    margin-top: 24px;
}

.app-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-modal-actions .btn,
.app-modal-actions .btn-coming {
    width: 100%;
    margin-top: 0;
    text-align: center;
}

.doc-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1001;
}

.doc-modal.is-open {
    display: block;
}

.doc-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 32px));
    height: calc(100vh - 48px);
    margin: 24px auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    display: grid;
    grid-template-rows: auto 1fr;
}

.doc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e7edf5;
}

.doc-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.doc-modal-header .app-modal-close {
    position: static;
    flex-shrink: 0;
}

.doc-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #ffffff;
}

/* 🔥 FAQ ACCORDION (IMPORTANT) */
.faq-accordion {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 18px 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 🔥 Hero improvements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(0,200,255,0.15), transparent 50%);
    z-index: 0;
}

/* 🔥 Smooth hover for cards */
.feature-block-split,
.feature-block-split-reverse {
    transition: all 0.3s ease;
}

.feature-block-split:hover,
.feature-block-split-reverse:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* 🔥 Stats animation smoothness */
.stat-number {
    transition: 0.3s;
}

/* 🔥 Contact button loading */
.btn-submit:disabled {
    cursor: not-allowed;
}

/* 🔥 Footer spacing fix */
footer {
    margin-top: 60px;
}

/* 🔥 Better mobile menu UX */
@media (max-width: 768px) {

    .nav-icons {
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }

    .nav-icons a {
        padding: 10px 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

}

/* ===== FOOTER IMPROVEMENT ===== */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #eee;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

footer a {
    color: var(--brand-blue);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.cta-text {
    color: var(--text-muted);
    max-width: 600px;
    margin: 15px auto;
}

.home-cta {
    padding-bottom: 20px;
}

.home-contact {
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    footer {
        margin-top: 10px;
    }

    .home-cta,
    .home-contact {
        padding-bottom: 10px;
    }

    .app-modal-dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .app-modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .doc-modal-dialog {
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .doc-modal-header {
        padding: 16px 18px;
    }

    .doc-modal-header h2 {
        font-size: 1.1rem;
    }

    .app-page-detail-card {
        padding: 28px 20px;
    }
}
