/* ========================================
   Humans Wonder Styles
   ======================================== */

:root {
    --bg-color: #FAF8F5;
    --text-color: #3E3424;
    --text-secondary: #8B7E6A;
    --accent-color: #C4A46C;
    --border-color: #E8E2D9;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(62, 52, 36, 0.08);
    --section-alt-bg: #F5F1EC;
    --font-main: 'Inter', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

body.dark-mode {
    --bg-color: #1A1816;
    --text-color: #F0EBE3;
    --text-secondary: #A89E8E;
    --accent-color: #D4B87A;
    --border-color: #332E27;
    --card-bg: #242019;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --section-alt-bg: #1E1C19;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Header
   ======================================== */

header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(62, 52, 36, 0.08);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(240, 235, 227, 0.1);
}

.sun-icon { display: block; }
.moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

/* ========================================
   Hero
   ======================================== */

.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.hero-quote-card {
    max-width: 480px;
    margin: 0 auto 48px;
    padding: 48px 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 1s ease-out;
}

.hero-quote-card .quote-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-quote-card .quote-author {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-style: normal;
    font-variant: small-caps;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Store Button */
.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-bottom: 40px;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.app-store-btn img {
    height: 50px;
    width: auto;
}

/* ========================================
   Sections — shared
   ======================================== */

.section-alt {
    background: var(--section-alt-bg);
}

section {
    padding: 100px 0;
}

section h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.3px;
}

/* ========================================
   Philosophy
   ======================================== */

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

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.value-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.philosophy-closing {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    text-align: center;
    color: var(--accent-color);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Daily Ritual — Card Flip
   ======================================== */

.card-flip-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.card-flip-wrapper {
    perspective: 1200px;
}

.card-flip {
    width: 260px;
    height: 562px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px;
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 28px;
}

.card-front {
    text-align: center;
}

.card-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-author {
    display: block;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-style: normal;
    font-variant: small-caps;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

.card-section {
    margin-bottom: 16px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.card-section-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.card-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   How It Works
   ======================================== */

.steps {
    display: flex;
    gap: 48px;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #FFF;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

body.dark-mode .step-number {
    color: #1A1816;
}

.step p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========================================
   Quote Showcase
   ======================================== */

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.showcase-card {
    padding: 36px 32px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--accent-color);
}

.showcase-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.showcase-author {
    display: block;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-style: normal;
    font-variant: small-caps;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.name {
    font-weight: 600;
    font-size: 1rem;
}

.stars {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.feedback {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Bottom CTA
   ======================================== */

.cta-bottom {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(196, 164, 108, 0.08) 100%);
}

body.dark-mode .cta-bottom {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(212, 184, 122, 0.06) 100%);
}

.cta-heading {
    font-family: var(--font-serif);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.legal-page h2 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    text-align: left;
}

.legal-page p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-color);
    color: #FFF;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

body.dark-mode .btn {
    color: #1A1816;
}

.btn:hover {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    opacity: 0.7;
}

/* ========================================
   Footer
   ======================================== */

footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

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

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

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

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

/* ========================================
   Responsive — 900px
   ======================================== */

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 72px;
    }

    .hero-tagline {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }

    .hero-quote-card {
        padding: 36px 28px;
        margin-bottom: 36px;
    }

    .hero-quote-card .quote-text {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .values {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card-flip-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card-flip {
        width: 280px;
        height: 606px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

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

    .notify-form {
        flex-direction: column;
    }

    .notify-form button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column-reverse;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
