/* ==========================================================================
   Lighthouse — Landing Page
   Apple-inspired marketing page
   ========================================================================== */

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

:root {
    --color-bg: #faf8f5;
    --color-bg-alt: #f5f0eb;
    --color-text: #1d1d1f;
    --color-text-muted: #6e6e73;
    --color-accent: #C45440;
    --color-accent-light: #e8796a;
    --color-white: #ffffff;
    --color-border: #e5e5e7;
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    --max-width: 980px;
    --section-padding: clamp(80px, 12vw, 160px);
    --side-padding: clamp(20px, 5vw, 40px);
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--color-accent);
    text-decoration: none;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-brand span {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-cta:hover {
    opacity: 0.85;
}

/* ---------- Sections (shared) ---------- */
.section {
    padding: var(--section-padding) var(--side-padding);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 560px;
}

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

.section--goals {
    background: #fdf3ea;
}

.section--journal {
    background: #f3edf9;
}

/* ---------- Social Proof / Review ---------- */
.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.social-proof-stars {
    display: flex;
    gap: 2px;
    color: #f5a623;
    font-size: 18px;
}

.social-proof-quote {
    font-size: clamp(18px, 2.5vw, 22px);
    font-style: italic;
    text-align: center;
    max-width: 520px;
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.social-proof-source {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ---------- Section Divider ---------- */
.section-divider {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.section-divider hr {
    border: none;
    height: 1px;
    background: var(--color-border);
}

/* ---------- Scroll Reveal ---------- */
/* JS adds .js-reveal-ready to <html> — without JS, everything stays visible */
.js-reveal-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .js-reveal-ready .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-phone {
        animation: none !important;
    }
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #fdf5f2 0%, var(--color-bg) 100%);
    overflow: hidden;
}

.hero .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(196, 84, 64, 0.2);
    margin-bottom: 8px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero-tagline {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hero-motto {
    font-size: 16px;
    color: var(--color-accent);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-block;
}

.hero-badge img {
    height: 48px;
    transition: opacity 0.2s;
}

.hero-badge:hover img {
    opacity: 0.85;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-phone {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Device Frames ---------- */
.device-iphone {
    position: relative;
    width: 280px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.device-iphone img {
    border-radius: 28px;
    width: 100%;
    height: auto;
    display: block;
}

.device-iphone--small {
    width: 240px;
}


.device-mac {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.device-mac img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
}

.device-vision {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.device-vision img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Feature Sections (alternating layout) ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.feature-row--reverse .feature-visual {
    order: -1;
}

.feature-visual {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-text .section-subtitle {
    margin-bottom: 16px;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.feature-points li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-top: 9px;
}

/* ---------- Multi-Platform Section ---------- */
.platform-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 48px;
}

.platform-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.platform-item {
    text-align: center;
}

.platform-item .platform-label {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* ---------- Philosophy / Built for Humans ---------- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.philosophy-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
}

.philosophy-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.philosophy-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, #fdf5f2 100%);
}

.cta .section-title {
    max-width: 600px;
    margin: 0 auto 12px;
}

.cta .section-subtitle {
    max-width: 480px;
    margin: 0 auto 28px;
}

.cta-badge img {
    height: 52px;
    margin: 0 auto;
    transition: opacity 0.2s;
}

.cta-badge:hover img {
    opacity: 0.85;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 32px var(--side-padding);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

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

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-lang a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero .section-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-icon {
        margin-bottom: 4px;
    }

    .hero-phone {
        animation-name: heroFloat;
    }

    .device-iphone {
        width: 240px;
    }

    .device-iphone--small {
        width: 200px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-row--reverse .feature-visual {
        order: 0;
    }

    .feature-visual {
        justify-content: center;
    }

    .feature-text {
        align-items: center;
    }

    .feature-text .section-subtitle {
        margin: 0 auto 16px;
    }

    .feature-points {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .platform-row {
        gap: 24px;
    }

    .device-mac {
        max-width: 100%;
    }

    .device-vision {
        max-width: 100%;
    }

    .nav-links .nav-link-text {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .device-iphone {
        width: 200px;
        border-radius: 32px;
        padding: 10px;
    }

    .device-iphone img {
        border-radius: 22px;
    }

    .device-iphone--small {
        width: 170px;
    }

    .feature-visual {
        gap: 12px;
    }

    .nav-cta span {
        display: none;
    }
}
