/* ============================================
   Two Hearts - Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(255, 0, 0, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 20%, rgba(138, 0, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 60%, rgba(255, 0, 0, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(138, 0, 255, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- CSS Custom Properties --- */
:root {
    --red: #FF0000;
    --purple: #8A00FF;
    --gradient: linear-gradient(135deg, #FF0000 0%, #8A00FF 100%);
    --gradient-horizontal: linear-gradient(90deg, #FF0000 0%, #8A00FF 100%);
    --gradient-light: linear-gradient(135deg, rgba(255,0,0,0.06) 0%, rgba(138,0,255,0.06) 100%);

    --background: #FFFFFF;
    --background-alt: #FFF5F5;
    --background-dark: #0A0A0A;

    --text-primary: #0A0A0A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #737373;
    --text-light: #FFFFFF;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --max-width: 1200px;
    --content-width: 720px;
}

/* --- Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

*:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.92);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    max-height: 36px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

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

.nav-cta {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 84px;
    padding-bottom: var(--space-4xl);
    background:
        radial-gradient(ellipse at 70% 10%, rgba(255, 0, 0, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 40%, rgba(138, 0, 255, 0.14) 0%, transparent 45%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 0%, rgba(138, 0, 255, 0.06) 0%, transparent 60%);
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 480px;
    line-height: 1.7;
}

.hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 0, 0, 0.2);
    border-radius: var(--radius-full);
    padding: 8px 24px 8px 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(255, 0, 0, 0.06);
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--background);
    object-fit: cover;
    margin-left: -8px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-link:hover {
    transform: scale(1.05);
}

.app-store-badge {
    height: 52px;
}

.hero-subtext {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

/* Hero Mockups */
.hero-mockups {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-mockup {
    position: absolute;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.hero-mockup-1 {
    width: 320px;
    transform: rotate(-5deg) translateX(-70px);
    z-index: 2;
}

.hero-mockup-2 {
    width: 260px;
    transform: rotate(4deg) translateX(70px);
    z-index: 1;
}

/* --- Value Proposition --- */
.value-prop {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.06) 0%, rgba(138, 0, 255, 0.06) 100%);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.value-prop-stat {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.value-prop-text {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-secondary);
    max-width: var(--content-width);
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Use Cases Section --- */
.use-cases {
    padding: var(--space-5xl) 0;
}

.section-headline {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-3xl);
    color: var(--text-primary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.use-case-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    text-align: center;
}

.use-case-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.use-case-icon {
    font-size: 40px;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.use-case-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.use-case-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Features Section --- */
.features {
    padding: var(--space-5xl) 0;
    background: linear-gradient(180deg, rgba(138, 0, 255, 0.04) 0%, rgba(255, 0, 0, 0.06) 100%);
}

/* Desktop Features */
.features-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.features-phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.features-phone-container img {
    max-height: 580px;
    width: auto;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    transition: opacity 0.2s ease;
}

.features-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    position: relative;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.feature-card.active {
    border: 2px solid var(--red) !important;
    border-left: 2px solid var(--red) !important;
    border-right: 2px solid var(--red) !important;
    border-top: 2px solid var(--red) !important;
    border-bottom: 2px solid var(--red) !important;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.12);
    background: var(--background);
}

.feature-card.active .feature-card-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.feature-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Dots */
.features-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4D4D4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active {
    background: var(--red);
    width: 24px;
    border-radius: 4px;
}

/* Mobile Features (Carousel) */
.features-mobile {
    display: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-images-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease-out;
    cursor: pointer;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

.carousel-slide img {
    max-height: 440px;
    width: auto;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.carousel-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -16px;
    right: -16px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    font-size: 18px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--background);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.carousel-text-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-lg);
}

.carousel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    transition: opacity 0.15s ease;
}

.carousel-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: opacity 0.15s ease;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

/* --- Testimonials --- */
.testimonials {
    padding: var(--space-5xl) 0;
    background:
        radial-gradient(ellipse at 10% 30%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 70%, rgba(138, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 0, 0.03) 0%, transparent 60%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.review-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.review-card:hover {
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.12);
}

.review-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 0, 0, 0.1);
}

.review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* --- FAQ Section --- */
.faq {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.04) 0%, rgba(138, 0, 255, 0.05) 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.faq-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.faq-answer {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
    padding: var(--space-5xl) 0;
    background: var(--gradient);
    text-align: center;
}

.final-cta-headline {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.final-cta-text {
    font-size: clamp(16px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.final-cta .app-store-badge {
    height: 60px;
}

.app-store-badge-white {
    filter: invert(1);
}

/* --- Footer --- */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

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

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* --- Legal Pages --- */
.legal-page {
    padding-top: 96px;
    padding-bottom: var(--space-4xl);
}

.legal-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.legal-content h1 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.legal-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3xl);
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.legal-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.legal-content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.legal-content li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xs);
}

.legal-content a {
    color: var(--red);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--purple);
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-3xl);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-social-proof {
        justify-content: center;
    }

    .hero-mockups {
        min-height: 400px;
    }

    .hero-mockup-1 {
        width: 270px;
    }

    .hero-mockup-2 {
        width: 220px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-desktop {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .features-phone-container img {
        max-height: 480px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-content {
        height: 48px;
        display: flex;
        justify-content: space-between;
    }

    .logo-img {
        height: 26px;
    }

    .nav-center {
        display: none;
    }

    .hero {
        padding-top: 72px;
        padding-bottom: var(--space-3xl);
        min-height: auto;
    }

    .hero-mockup-1 {
        width: 220px;
        transform: rotate(-4deg) translateX(-40px);
    }

    .hero-mockup-2 {
        width: 180px;
        transform: rotate(3deg) translateX(40px);
    }

    .hero-mockups {
        min-height: 340px;
    }

    .features-desktop {
        display: none;
    }

    .features-desktop-dots {
        display: none;
    }

    .features-mobile {
        display: block;
    }

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

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

    .section-headline {
        margin-bottom: var(--space-2xl);
    }

    .use-cases,
    .features,
    .testimonials,
    .faq,
    .final-cta {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav-content {
        padding: 0 var(--space-md);
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .hero-mockup-1 {
        width: 190px;
        transform: rotate(-3deg) translateX(-30px);
    }

    .hero-mockup-2 {
        width: 155px;
        transform: rotate(2deg) translateX(30px);
    }

    .hero-mockups {
        min-height: 300px;
    }

    .carousel-slide img {
        max-height: 360px;
    }

    .app-store-badge {
        height: 44px;
    }

    .final-cta .app-store-badge {
        height: 52px;
    }

    .footer-links {
        gap: var(--space-lg);
    }
}
