/* OndaHear Website Styles */

:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --secondary: #34C759;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #2a3545;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #151c24;
    overflow-x: hidden;
    padding-top: 70px; /* Clear fixed navbar */
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 35, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    width: 36px !important;
    height: 36px !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.apple-icon {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #1a2332 0%, #1e3a4f 40%, #1a3340 70%, #162530 100%);
    position: relative;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(52, 199, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 15px;
    max-width: 500px;
}

.hero-privacy {
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    padding-bottom: 20px;
    max-width: 500px;
}

/* Phone Mockup */
.phone-mockup {
    width: 220px;
    height: 440px;
    background: #111;
    border-radius: 32px;
    padding: 10px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.preview-header {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.preview-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.preview-text {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.preview-caption {
    background: rgba(52, 199, 89, 0.2);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--white);
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a2230 0%, #1e2838 50%, #1a2230 100%);
    position: relative;
}

.features h2 {
    color: #ffffff;
}

.features h2,
.how-it-works h2,
.pricing h2,
.cta h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card h3 {
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.65) !important;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #2a3a4a 0%, #1e3340 50%, #263545 100%);
    color: #ffffff;
}

.how-it-works h2 {
    color: #ffffff;
}

.step p {
    color: rgba(255, 255, 255, 0.7);
}

.step h3 {
    color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: linear-gradient(180deg, #2a3545 0%, #1e2d3d 50%, #2a3545 100%);
    color: #ffffff;
}

.pricing h2 {
    color: #ffffff;
}

.pricing-intro {
    color: rgba(255, 255, 255, 0.7) !important;
}

.pricing-intro {
    text-align: center;
    color: var(--gray);
    margin-top: -40px;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    min-width: 0;
}

.pricing-card.featured {
    background: rgba(0, 122, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.3);
}

.pricing-card li {
    color: rgba(255, 255, 255, 0.7) !important;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.pricing-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 30px;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.pricing-card.featured li {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1520 0%, #142535 50%, #0d1a28 100%);
    text-align: center;
    color: #ffffff;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta h2 {
    color: #ffffff;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.cta .btn-primary {
    background: var(--secondary);
    color: #ffffff;
}

.cta .btn-primary:hover {
    background: #2db84e;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.footer-brand span {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Support Page Styles */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a2332 0%, #1e3a4f 50%, #162530 100%);
    text-align: center;
    color: #ffffff;
}

.page-header h1 {
    color: #ffffff;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.content-section {
    padding: 60px 0;
    background: #1a2230;
    color: #e0e0e0;
}

.content-section h2 {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.content-section h3 {
    color: var(--primary);
}

.content-section p,
.content-section li {
    color: rgba(255, 255, 255, 0.7) !important;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.content-section h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: var(--primary);
}

.content-section p,
.content-section li {
    margin-bottom: 15px;
    color: var(--gray);
}

.content-section ul {
    padding-left: 25px;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-answer {
    padding-top: 15px;
    color: rgba(255, 255, 255, 0.65);
}

/* Contact Card */
.contact-card {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.contact-card h3 {
    color: #ffffff !important;
    margin-bottom: 15px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.contact-card a {
    color: var(--primary);
    font-size: 1.2rem;
    text-decoration: none;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.legal-content .last-updated {
    color: var(--gray);
    margin-bottom: 40px;
}

.legal-content h1,
.legal-content h2 {
    color: #ffffff;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.legal-content p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.legal-content .last-updated {
    color: rgba(255, 255, 255, 0.5);
}

/* Language Switcher */
.lang-switcher select {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    appearance: auto;
}

.lang-switcher select option {
    background: #1a1a1a;
    color: #ffffff;
}

.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-btn .globe-icon {
    width: 16px;
    height: 16px;
}

.language-btn .arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.language-switcher.open .language-btn .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    min-width: 160px;
    z-index: 1001;
}

.language-switcher.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.95rem;
    color: var(--dark);
    cursor: pointer;
    transition: background 0.2s;
}

.language-option:hover {
    background: var(--light-gray);
}

.language-option.active {
    background: var(--primary);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .features-grid,
    .steps,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    /* Navbar wraps to multi-row on mobile (logo, nav-links, language switcher),
       so it's taller than the desktop 70px. Bump body padding to match or the
       page H1 gets hidden behind the fixed nav. */
    body {
        padding-top: 160px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-switcher.open .language-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
    }

    .phone-mockup:nth-child(2) {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
