/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #f8f9fa;
    /* Light Mode Background */
    --bg-card: #ffffff;
    --primary: #005E88;
    --accent: #4cc9f0;
    --text-main: #1a1f2c;
    /* Dark Text */
    --text-muted: #64748b;
    --glass-border: rgba(0, 0, 0, 0.08);
    --gradient-hero: linear-gradient(135deg, #005E88 0%, #00a8e8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    /* Remove default button border */
}

.btn-primary {
    background: var(--primary);
    color: white;
    /* No shadow */
}

.btn-primary:hover {
    transform: translateY(-2px);
    /* No shadow on hover either, just movement */
    opacity: 0.9;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- NAVBAR --- */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #005E88, #00a8e8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a.btn-primary {
    color: white !important;
}

/* --- HERO SECTION --- */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated background blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 10s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #005E88;
    opacity: 0.5;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #00a8e8;
    opacity: 0.4;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    background: linear-gradient(to right, #005E88, #00a8e8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

.phone-card {
    width: 300px;
    height: 600px;
    background: #1a1f2c;
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s;
    background-image: url('images/phone photo.jpeg');
    background-size: cover;
    background-position: center;
}

.phone-card:hover {
    transform: rotateY(0) rotateX(0);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #333;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* --- FEATURES --- */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
}

/* --- SCROLL REVEAL (DISABLED) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* --- AUTH PAGES --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #f1f5f9;
    /* Light grey input background */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #333;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 94, 136, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

.divider {
    margin: 24px 0;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.divider span {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #333;
    border: 1px solid #e1e4e8;
    /* Subtle border */
    padding: 12px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.google-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-footer {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    /* Widened from 400px */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

/* Ensure modal fits on screen and scrolls internally */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Never taller than 90% of screen */
    padding: 30px;
    /* Reduce padding slightly for better fit */
}

.privacy-scroll {
    overflow-y: auto;
    flex: 1;
    /* Take remaining space */
    padding-right: 10px;
    text-align: left;
    margin-top: 10px;
}

/* --- FEATURE BREAKDOWN --- */
.feature-breakdown {
    padding: 0 0 50px 0;
    /* Reduced from 100px */
    overflow: hidden;
}



.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

/* Alternate order for even rows */
.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: #1a1f2c;
    line-height: 1.2;
}

.feature-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    border-radius: 24px;
    /* No shadow for blending */
    transition: transform 0.3s;
    mix-blend-mode: multiply;
    /* Blends white background into the page */
}

.feature-image img:hover {
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    .feature-row {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }

    .feature-text h2 {
        font-size: 2.5rem;
    }

    .feature-image img {
        max-height: 500px;
        /* Increased from 300px */
    }
}

/* --- PRICING --- */
.pricing {
    padding: 50px 0;
    /* Reduced from 100px */
    text-align: center;
}

.pricing-header h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.pricing-subtitle {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.pricing-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 60px;
}

.toggle-option {
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.toggle-option.active {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #1a1f2c;
}

.toggle-option span {
    font-size: 0.8rem;
    background: rgba(0, 94, 136, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.pricing-single {
    display: flex;
    justify-content: center;
}

.pricing-single .pricing-card {
    max-width: 400px;
    width: 100%;
    border: 2px solid var(--primary);
    /* Highlight the free card since it's the only one */
    box-shadow: 0 20px 40px rgba(0, 94, 136, 0.1);
}

.pricing-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 24px;
    padding: 40px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.pricing-card.pro {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 94, 136, 0.1);
}

.tier-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 48px;
}

.pricing-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #1a1f2c;
    color: #1a1f2c;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 40px;
}

.pricing-btn:hover {
    background: #1a1f2c;
    color: white;
}

.pricing-card.pro .pricing-btn {
    background: #1a1f2c;
    color: white;
    border: none;
}

.pricing-card.pro .pricing-btn:hover {
    background: #333;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li i {
    color: var(--primary);
    margin-top: 4px;
}

/* --- FOOTER --- */
footer {
    background: #001a2c;
    color: white;
    padding: 80px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.social-links {
    margin-top: 24px;
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-desc {
        margin: 16px auto 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- ABOUT MODAL STYLES --- */
.about-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
    max-height: 80vh;
    /* Fallback */
}

.about-header-section {
    text-align: center;
    margin-bottom: 30px;
}

.about-header-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.mission-box {
    background: linear-gradient(135deg, rgba(0, 94, 136, 0.05) 0%, rgba(76, 201, 240, 0.05) 100%);
    border-left: 4px solid var(--primary);
    padding: 24px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    position: relative;
}

.mission-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(0, 94, 136, 0.1);
    font-family: serif;
    line-height: 1;
}

.story-section {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #555;
}

.story-section h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sets-apart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.about-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.about-card i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.about-card h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.commitment-section {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- RESPONSIVE POLISH --- */
/* --- RESPONSIVE POLISH --- */
@media (max-width: 768px) {

    /* Global */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Container */
    .container {
        padding: 0 16px;
        /* Gain more space on small screens */
    }

    /* Hero Section */
    .blob {
        display: none;
        /* Hide background blobs on mobile for white background and better spacing */
    }

    header {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
        background: white;
        /* Ensure it's explicitly white */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding-top: 120px;
        /* More space for navbar wrapping */
    }

    .hero-text {
        display: contents;
        /* Allow children to be reordered in the main flex container */
    }

    .hero-text h1 {
        order: 1;
        font-size: 2.5rem;
        /* Slightly smaller for mobile */
        width: 100%;
        line-height: 1.2;
    }

    .hero-text p {
        order: 2;
        margin: 0 auto 20px;
    }

    .hero-mockup {
        order: 3;
        transform: scale(0.9);
        /* Slightly larger than 0.8 */
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        /* Ensure container doesn't overflow */
        display: flex;
        justify-content: center;
    }

    .phone-card {
        max-width: 100%;
        /* Reset rotate for cleaner look on mobile? */
        transform: none;
    }

    .hero-text .btn {
        order: 4;
        margin-top: 15px;
        margin-bottom: 30px;
        /* Add gap after button */
    }

    /* Add space between feature cards if stacked */
    .feature-card {
        margin-bottom: 20px;
    }

    /* Navigation */
    .navbar {
        padding: 16px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links li a {
        font-size: 0.85rem;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .about-header-section h2 {
        font-size: 2rem;
    }

    .mission-box {
        padding: 20px;
        font-size: 1rem;
    }

    .mission-box::before {
        font-size: 3rem;
        top: -5px;
    }

    /* Grids */
    .sets-apart-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .feature-row {
        flex-direction: column !important;
        text-align: center;
        gap: 50px;
        /* Increased from 30px for better separation */
    }

    .feature-text {
        min-width: 0;
        /* Allow shrinking */
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        justify-content: center;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}