:root {
    --bg-color: #1a1614; /* Warm dark brown/black */
    --surface-light: #2a2320; /* Soft dark surface */
    --text-primary: #fff5eb; /* Warm cream */
    --text-secondary: #a89f9a; /* Soft muted beige */
    --accent: #FF8C73; /* Peach sunset */
    --accent-glow: rgba(255, 140, 115, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Lora', serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -20%;
    right: -10%;
}

.glow-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 102, 128, 0.1) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
}

/* Navigation */
.cozy-nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 100;
    transition: all 0.5s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(42, 35, 32, 0.6);
    backdrop-filter: blur(20px);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 245, 235, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 140, 115, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--accent);
    font-style: italic;
    font-family: var(--font-body);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: fit-content;
}

.hero-note {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Visual (Soft Photo Stack) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.memory-stack {
    position: relative;
    width: 320px;
    height: 400px;
    cursor: pointer;
}

.memory-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF;
    border-radius: 12px;
    padding: 12px 12px 60px 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.memory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-3 { transform: translate(-20px, -20px) rotate(-6deg); opacity: 0.6; z-index: 1;}
.card-2 { transform: translate(20px, 10px) rotate(4deg); opacity: 0.8; z-index: 2;}
.card-1 { transform: translate(0, 0) rotate(-1deg); z-index: 3;}

.memory-stack:hover .card-3 { transform: translate(-30px, -30px) rotate(-8deg); }
.memory-stack:hover .card-2 { transform: translate(30px, 15px) rotate(6deg); }
.memory-stack:hover .card-1 { transform: translate(0, -5px) rotate(0deg); }

.card-details {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    color: #333;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
}

.card-time-ago {
    color: #888;
}

.click-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.memory-stack:hover .click-hint {
    opacity: 1;
}

/* Features */
.comfort-features {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.feature-image {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.privacy-box {
    background: var(--surface-light);
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.privacy-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.privacy-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.privacy-box p {
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* Pricing / Waitlist */
.join-section {
    padding: 6rem 2rem;
    background: var(--surface-light);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.join-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.join-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.join-container h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.join-container > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 4rem;
}

.pricing-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.price-box {
    flex: 1;
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.price-box.lifetime {
    border-color: rgba(255, 140, 115, 0.3);
    box-shadow: 0 20px 40px rgba(255, 140, 115, 0.05);
}

.price-title {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.price-cost {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-cost .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-box p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}


.download-box {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.download-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.app-store-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.app-store-btn i {
    font-size: 2rem;
    margin-right: 0.75rem;
}

.app-store-btn .btn-texts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-store-btn .small-text {
    font-size: 0.65rem;
    font-family: var(--font-body);
    line-height: 1;
    margin-bottom: 0.1rem;
    opacity: 0.8;
}

.app-store-btn .large-text {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1;
}

/* responsive */
@media (max-width: 768px) {
    .app-store-btn {
        padding: 0.4rem 1rem;
    }
    .app-store-btn i {
        font-size: 1.7rem;
    }
    .app-store-btn .large-text {
        font-size: 1.1rem;
    }
}
/* Footer */
footer {
    background: var(--bg-color);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-legal {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-legal a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-2 { transition-delay: 0.2s; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; padding-top: 8rem; }
    .hero-actions { align-items: center; }
    .feature-row, .feature-row.reverse { flex-direction: column; text-align: center; }
    .pricing-cards { flex-direction: column; }
    .nav-links { display: none; }
    #waitlist-form { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-legal { text-align: center; }
}

/* Legal Pages */
.legal-page {
    padding: 8rem 5% 4rem;
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-light);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.legal-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-container .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 12px;
}

.choices-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choices-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.choices-list li i {
    color: var(--accent);
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--text-primary);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    text-align: right;
}
html[dir="rtl"] .hero-title, 
html[dir="rtl"] .feature-text h2, 
html[dir="rtl"] .join-container h2 {
    font-family: 'Outfit', sans-serif; /* Could swap for an Arabic font if desired */
}
html[dir="rtl"] .contact-box {
    flex-direction: row-reverse;
    text-align: right;
}
html[dir="rtl"] .choices-list li {
    flex-direction: row-reverse;
}
html[dir="rtl"] .footer-legal {
    text-align: left;
}
@media (max-width: 900px) {
    html[dir="rtl"] .footer-legal {
        text-align: center;
    }
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.lang-switcher select {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}
.lang-switcher select option {
    background: var(--bg-color);
    color: var(--text-primary);
}
.lang-switcher i {
    color: var(--text-secondary);
}

.currency-switcher-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.currency-switcher-container label {
    color: var(--text-secondary);
}
.currency-switcher-container select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.currency-switcher-container select option {
    background: var(--bg-color);
    color: var(--text-primary);
}
