/* =========================================
   CSS Variables & Resets
   ========================================= */
:root {
    --primary-purple: #5F25D9;
    --primary-purple-hover: #4B1CB3;
    --light-purple: #F5EFFF;
    --primary-green: #10B981;
    --light-green: #ECFDF5;
    
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    
    --font-family: 'Days One', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-purple { color: var(--primary-purple); }
.text-green { color: var(--primary-green); }
.text-white { color: white !important; }

.bg-light-purple { background-color: var(--light-purple); }
.bg-light-green { background-color: var(--light-green); }

.section {
    padding: 100px 0;
}

.section-light-purple {
    background-color: #FAEDFF; /* Soft background based on design */
    background: linear-gradient(180deg, rgba(250, 237, 255, 0) 0%, #FAEDFF 50%, rgba(250, 237, 255, 0) 100%);
}

.section-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-purple);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 48px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-purple);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 400;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

.btn-white {
    background-color: white;
    color: var(--primary-purple);
}

.btn-white:hover {
    background-color: #f3f4f6;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 400;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-text {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-purple);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Days One', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: var(--text-main);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(95, 37, 217, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--light-purple);
    color: var(--primary-purple);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-purple);
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-reviews {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stars {
    display: flex;
    color: #FBBF24;
    font-size: 1.25rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-graphic {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-phone-img {
    width: 320px;
    height: auto;
    border-radius: 40px;
    box-shadow: var(--shadow-float);
    position: relative;
    margin: 0 auto;
    display: block;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.hero-phone-img:hover {
    transform: rotate(0deg);
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.badge-1 {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    right: -20px;
    animation-delay: 2s;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-icon.purple-icon {
    background-color: var(--light-purple);
}

.badge-icon.green-icon {
    background-color: var(--light-green);
}

.badge-text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-main);
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   Features Section
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   How It Works Section
   ========================================= */
.hw-container {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hw-image {
    flex: 1;
}

.hw-img-container {
    position: relative;
    width: 100%;
}

.hw-img-actual {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    display: block;
    box-shadow: var(--shadow-lg);
}

.hw-floating-badge {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: white;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.hw-content {
    flex: 1;
}

.steps-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

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

/* =========================================
   Family Tree Showcase
   ========================================= */
.showcase-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.showcase-card {
    height: 300px;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    text-align: left;
}

.showcase-1 {
    background-image: url('../images/new-feature.png');
}

.showcase-2 {
    background-image: url('../images/explore.png');
}

.showcase-overlay {
    position: relative;
    z-index: 2;
    color: white;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--primary-purple);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-tag.bg-green {
    background: var(--primary-green);
}

.showcase-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gradient-banner {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(90deg, rgba(95, 37, 217, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 100px;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-purple);
}

/* =========================================
   Core Values
   ========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    margin: 20px 0;
    color: var(--text-muted);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-purple);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.user-avatar.bg-green {
    background: var(--light-green);
    color: var(--primary-green);
}

.user-details strong {
    display: block;
    color: var(--text-main);
}

.user-details span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    background: #111;
    background: linear-gradient(135deg, #1f0b4f 0%, #06402d 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

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

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.store-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

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

.store-text {
    text-align: left;
}

.store-text span {
    display: block;
    font-size: 0.625rem;
    opacity: 0.8;
}

.store-text strong {
    display: block;
    font-size: 1rem;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95,37,217,0.4) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #0a0514;
    color: white;
    padding: 80px 0 32px;
}

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

.footer-desc {
    opacity: 0.6;
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.6;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.875rem;
}

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

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-purple);
}

/* =========================================
   Hero Users & Avatars
   ========================================= */
.hero-users {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
}

.hero-users p strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.hero-users p span {
    color: var(--text-muted);
}

.user-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-purple);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    border: 2px solid white;
    margin-left: -12px;
}

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

.avatar-1 { background-color: #E9D8FD; }
.avatar-2 { background-color: #D6BCFA; }
.avatar-3 { background-color: #B794F4; color: white; }
.avatar-4 { background-color: #9F7AEA; color: white; }

/* =========================================
   Scroll Animations
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    
    /* Mobile Nav Open State */
    .navbar.nav-open .nav-container { flex-wrap: wrap; }
    .navbar.nav-open .nav-links,
    .navbar.nav-open .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .navbar.nav-open .nav-links { margin-top: 16px; }
    .navbar.nav-open .nav-actions { border-top: none; padding-top: 0; }

    .hero-title { font-size: 3rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-users { justify-content: center; }
    .hero-image-wrapper { width: 100%; margin-top: 40px; }
    .floating-badge { display: none; }
    
    .hw-container { flex-direction: column; }
    .showcase-cards { grid-template-columns: 1fr; }
    .showcase-card { height: auto; min-height: 300px; padding: 32px 20px; }
    .showcase-overlay h3 { font-size: 1.25rem; }
    .showcase-overlay p { font-size: 0.875rem; line-height: 1.4; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    .hero-phone-img {
        width: 250px;
    }
    
    .features-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .cta-title { font-size: 2.5rem; }
    .cta-actions { flex-direction: column; }
    .store-buttons { flex-direction: column; align-items: center; }
}

