:root {
    /* Z App Theme Colors from theme.ts */

    /* Main Gradients */
    --gradient-start: #ffffff;
    --gradient-middle: #eeeef7;
    --gradient-end: #f6f8fa;

    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --text-muted: #A0AEC0;
    --text-light: #FFFFFF;

    /* Action Colors */
    --primary-color: #8DA399;
    /* Sage Green */
    --primary-dark: #5F7A6E;
    --secondary-color: #9FA8DA;
    /* Soft Lavender */
    --accent-color: #F48FB1;
    /* Rose */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* UI Elements */
    --surface-color: #F7F9FC;
    --border-color: #E2E8F0;

    /* Layout */
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(141, 163, 153, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(141, 163, 153, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--primary-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(141, 163, 153, 0.3);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(141, 163, 153, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px 28px;
        gap: 8px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .nav.open {
        display: flex;
    }

    .nav .nav-link {
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav .nav-link:hover,
    .nav .nav-link.active {
        background: var(--surface-color);
    }

    .nav .btn {
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Hamburger Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background var(--transition-speed);
    z-index: 10;
}

.nav-toggle:hover {
    background: var(--surface-color);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs for Background */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #E8F5E9;
    /* Very light green */
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #E8EAF6;
    /* Very light indigo */
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(141, 163, 153, 0.1);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(141, 163, 153, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

/* Mockup / Chat Interface */
.mockup-container {
    perspective: 1000px;
    max-width: 360px;
    margin: 0 auto;
}

.mobile-mockup {
    background: #fff;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px -20px rgba(50, 50, 93, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 -2px 6px 0 rgba(10, 37, 64, 0.35);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
    border: 8px solid #2d3748;
}

.mobile-mockup:hover {
    transform: rotateX(0deg) scale(1.02);
}

.screen-content {
    background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
    border-radius: 32px;
    height: 640px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Chat Bubbles in Mockup */
.chat-interface {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
}

.bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.bubble-ai {
    align-self: flex-start;
    background: #fff;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.bubble-user {
    align-self: flex-end;
    background: #E6E6FA;
    /* Soft Lavender from theme */
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 48px 32px;
    transition: all var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 8px 16px rgba(141, 163, 153, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border: 1px solid white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Store Badges */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--text-primary);
    color: var(--text-light);
    border-radius: 14px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.store-badge:hover {
    background: #1a202c;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.3);
}

.store-badge svg {
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-badge-label {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.store-badge-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: #fff;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations & Responsive */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 40px;
    }

    .feature-card {
        padding: 32px;
    }
}

/* ==============================
   Sub-Page Styles (Privacy, Contact)
   ============================== */

/* Page Hero (compact) */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Active nav link */
.nav-link.active {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Legal Content (Privacy Policy) */
.legal-content {
    padding: 0 0 100px;
}

.content-card {
    padding: 56px 48px;
    max-width: 860px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-section ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 12px;
}

.legal-section ul li {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary-dark);
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.legal-section a:hover {
    border-bottom-color: var(--primary-dark);
}

/* Contact Page */
.contact-section {
    padding: 0 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 28px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: 0 6px 14px rgba(141, 163, 153, 0.3);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.info-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.info-link:hover {
    color: var(--primary-color);
}

.info-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-speed);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 163, 153, 0.4);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 40px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-family);
    font-size: 0.95rem;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(141, 163, 153, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    flex-shrink: 0;
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(141, 163, 153, 0.4);
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive — Sub-pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }

    .content-card {
        padding: 32px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }
}