@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --bg-primary: #fdf6e3; /* Warm Cream */
    --bg-secondary: #e1effc; /* Soft Blue */
    --accent-soft: #ffb74d; /* Warm Orange */
    --accent-deep: #2d3436; /* Deep Charcoal */
    --accent-gold: #c5a059;
    --text-main: #000000;
    --text-muted: #444444;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --footer-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.05rem; /* DM Sans looks extremely readable at 1.05rem */
    background: radial-gradient(circle at top right, #fdf6e3, #f4e8d1);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.home {
    overflow-x: hidden;
}

/* Titles - Cormorant Garamond */
h1, h2, h3, .serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Logo / Brand Title - Cormorant Garamond (all lowercase) */
.logo {
    font-family: 'Cormorant Garamond', serif;
    text-transform: lowercase;
}

/* Small description titles & Meta elements - DM SANS (all uppercase) */
nav a, 
.blog-date, 
.blog-author, 
.ai-tag, 
time, 
.article-author, 
.footer-links a, 
.read-more,
.article-meta-top,
.affirmation-container,
.legal-list li strong {
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* --- Layout --- */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    background: rgba(253, 246, 227, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.header-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

#main-header.scrolled .header-container {
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent-deep);
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

nav a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1350px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: relative;
    z-index: 2;
    gap: 5%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--accent-deep);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards 0.2s;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1.5s forwards 0.5s;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2), 
                inset 0 0 2px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 4px solid #222;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.il-scene {
    position: relative;
    width: 540px;
    height: 540px;
    flex-shrink: 0;
}

.il-img {
    display: block;
    width: 540px;
    height: 540px;
    max-width: 90vw;
    max-height: 90vw;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: il-float 7s ease-in-out infinite 2s;
}

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

/* Dual-layer glow behind illustration */
.il-glow {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.il-glow-blue {
    width: 70%; height: 70%;
    top: 15%; left: 15%;
    background: radial-gradient(circle, rgba(225, 239, 252, 0.85) 0%, transparent 70%);
    filter: blur(38px);
    animation: il-pulse 5s ease-in-out infinite;
}

.il-glow-gold {
    width: 50%; height: 50%;
    top: 25%; left: 25%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.22) 0%, transparent 70%);
    filter: blur(28px);
    animation: il-pulse 7s ease-in-out infinite 1.8s;
}

@keyframes il-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.8; }
    50%       { transform: scale(1.15); opacity: 1;   }
}

/* 4-pointed sparkle stars */
.il-spark {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.il-spark::before,
.il-spark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #c5a059;
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

.il-spark::before { width: 2px;  height: 14px; }
.il-spark::after  { width: 14px; height: 2px;  }

/* Positions mapped to illustration: journal top-left, dream cloud, sides, jar, cup area */
.il-spark-1 { top: 4%;   left: 16%;  animation: il-twinkle 3.0s ease-in-out infinite 0.0s; }
.il-spark-2 { top: 6%;   right: 10%; animation: il-twinkle 3.8s ease-in-out infinite 0.6s; }
.il-spark-3 { top: 30%;  left: 1%;   animation: il-twinkle 2.9s ease-in-out infinite 1.2s; }
.il-spark-4 { top: 38%;  right: 2%;  animation: il-twinkle 3.4s ease-in-out infinite 0.3s; }
.il-spark-5 { bottom: 28%; left: 7%;  animation: il-twinkle 4.1s ease-in-out infinite 1.7s; }
.il-spark-6 { bottom: 22%; right: 6%; animation: il-twinkle 3.2s ease-in-out infinite 2.1s; }
.il-spark-7 { top: 18%;  left: 44%;  animation: il-twinkle 3.6s ease-in-out infinite 0.9s; }
.il-spark-8 { bottom: 42%; right: 18%; animation: il-twinkle 2.7s ease-in-out infinite 1.4s; }

@keyframes il-twinkle {
    0%, 100% { opacity: 0.1;  transform: scale(0.5) rotate(0deg);   }
    50%       { opacity: 0.8;  transform: scale(1.1) rotate(45deg);  }
}

/* Rising golden particles */
.il-particle {
    position: absolute;
    border-radius: 50%;
    background: #c5a059;
    box-shadow: 0 0 6px 2px rgba(197, 160, 89, 0.35);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: il-rise linear infinite;
}

.il-particle-1 { width: 5px; height: 5px; left: 26%; bottom: 22%; animation-duration: 3.6s; animation-delay: 0.0s; }
.il-particle-2 { width: 3px; height: 3px; left: 44%; bottom: 19%; animation-duration: 4.3s; animation-delay: 0.9s; }
.il-particle-3 { width: 4px; height: 4px; left: 62%; bottom: 24%; animation-duration: 3.9s; animation-delay: 1.6s; }
.il-particle-4 { width: 3px; height: 3px; left: 35%; bottom: 28%; animation-duration: 4.6s; animation-delay: 2.3s; }
.il-particle-5 { width: 4px; height: 4px; left: 72%; bottom: 21%; animation-duration: 3.3s; animation-delay: 3.1s; }

@keyframes il-rise {
    0%   { transform: translateY(0)     translateX(0)    scale(1);   opacity: 0;    }
    12%  { opacity: 0.7; }
    75%  { opacity: 0.25; }
    100% { transform: translateY(-90px) translateX(8px)  scale(0.3); opacity: 0;    }
}

.visual-blob {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(225, 239, 252, 0.6) 0%, rgba(225, 239, 252, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
}

/* --- Nature Backdrop --- */

.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--footer-height));
    background: linear-gradient(to bottom, #e1effc 0%, #fdf6e3 100%);
    z-index: 0;
    overflow: hidden;
}

.layered-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cloud {
    position: absolute;
    width: 250px;
}

.cloud-1 { top: 10%; left: -10%; animation: drift 100s infinite linear; }
.cloud-2 { top: 30%; left: -20%; animation: drift 140s infinite linear -20s; }
.cloud-3 { top: 15%; right: -15%; animation: driftReverse 120s infinite linear; }
.cloud-4 { top: 45%; right: -25%; animation: driftReverse 160s infinite linear -40s; }
.cloud-5 { top: 5%; left: 30%; animation: drift 180s infinite linear -60s; }
.cloud-6 { top: 35%; right: -30%; animation: driftReverse 130s infinite linear -10s; }
.cloud-7 { top: 25%; left: -15%; animation: drift 150s infinite linear -30s; }
.cloud-8 { top: 50%; left: 10%; animation: drift 200s infinite linear -50s; }
.cloud-9 { top: 40%; right: -20%; animation: driftReverse 170s infinite linear -80s; }
.cloud-10 { top: 15%; left: 40%; animation: drift 140s infinite linear -20s; }
.cloud-11 { top: 60%; right: 10%; animation: driftReverse 190s infinite linear -40s; }
.cloud-12 { top: 55%; left: -10%; animation: drift 220s infinite linear -60s; }

/* Bird styles removed */

/* --- Terrain --- */









@keyframes drift {
    from { transform: translateX(-10vw); }
    to { transform: translateX(110vw); }
}

@keyframes driftReverse {
    from { transform: translateX(110vw); }
    to { transform: translateX(-10vw); }
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 5;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards 0.4s;
}

/* --- Store Buttons --- */

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards 0.8s;
}

.store-badge {
    height: 45px;
    transition: var(--transition-smooth);
}

.store-badge img {
    height: 100%;
    width: auto;
}

.store-badge:hover {
    transform: translateY(-3px) scale(1.02);
}

/* --- Typing Effect --- */

.affirmation-container {
    height: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Particles --- */

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Decorative Elements --- */

.blob {
    position: absolute;
    z-index: 1;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #e1effc 0%, rgba(225, 239, 252, 0) 70%);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fff4e1 0%, rgba(255, 244, 225, 0) 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

/* --- Sections --- */

section {
    padding: 8rem 10%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--accent-deep);
}

/* --- Footer --- */

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    padding: 0 5%;
    background: #fdf6e3;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.copyright {
    font-family: 'Cormorant Garamond', serif;
    text-transform: lowercase;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* --- Animations --- */

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Blog Section --- */

.blog-page .sky-background.fixed {
    position: fixed;
    height: 100vh;
    width: 100%;
    z-index: 0;
}

.blogs-section {
    padding: 12rem 0 5rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.blogs-section .main-container {
    display: block;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.blog-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ai-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--accent-deep);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    text-decoration: none;
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition-smooth);
}

.read-more:hover {
    color: var(--accent-gold);
}

.read-more::after {
    content: '→';
    transition: var(--transition-smooth);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* --- Individual Blog Post --- */

.blog-post-page .sky-background {
    height: 100vh;
}

.article-main {
    padding: 10rem 0 5rem;
    position: relative;
    z-index: 2;
}

.blog-article {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-header {
    text-align: center;
    margin: 0;
}

.article-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2rem;
    color: var(--accent-deep);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.article-author {
    color: var(--text-muted);
    font-size: 1rem;
}

.article-author strong {
    color: var(--accent-deep);
}

.article-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--accent-deep);
    margin: 3rem 0 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

/* --- Mobile Responsive --- */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    body.home {
        overflow-y: auto;
        height: auto;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 5rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        gap: 4rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .store-buttons {
        justify-content: center;
    }

    .hero-visual {
        transform: translateY(30px);
        animation: fadeInUp 1.5s forwards 0.5s;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    #main-header {
        padding: 1rem 0;
    }

    .header-container {
        padding: 1rem 5%;
    }

    nav a {
        margin-left: 1.5rem;
    }

    .blogs-section, .article-main {
        padding: 8rem 0 4rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .blog-article {
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-cover {
        height: auto;
        border-radius: 15px;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
        border-radius: 30px;
    }

    .il-scene {
        width: 280px;
        height: 280px;
    }

    .il-img {
        width: 280px;
        height: 280px;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        height: auto;
        padding: 2rem 5%;
    }

    .main-footer {
        height: auto;
        position: relative;
    }

    .footer-links a {
        margin: 0 0.8rem;
    }

    .copyright {
        order: 2;
    }

    .footer-links {
        order: 1;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    nav a {
        margin-left: 1rem;
        font-size: 0.85rem;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }

    .blog-article {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-cover {
        height: auto;
    }
}

/* --- Legal Pages Styling --- */
.legal-page .article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.legal-page h2 {
    font-size: 1.7rem;
    color: var(--accent-deep);
    margin: 3.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.25rem;
    color: var(--accent-deep);
    margin: 2.2rem 0 1rem;
    font-weight: 600;
}

.legal-page .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--accent-deep);
    font-style: italic;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-gold);
}

.legal-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    list-style-type: none;
}

.legal-list li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.legal-callout {
    background: rgba(197, 160, 89, 0.08);
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2.5rem 0;
    backdrop-filter: blur(10px);
}

.legal-callout p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--accent-deep);
}

@media (max-width: 768px) {
    .legal-page h2 {
        font-size: 1.5rem;
        margin: 2.5rem 0 1.2rem;
    }
    .legal-page h3 {
        font-size: 1.15rem;
        margin: 1.8rem 0 0.8rem;
    }
    .legal-page .lead {
        font-size: 1.1rem;
        padding-left: 1rem;
    }
    .legal-callout {
        padding: 1.2rem 1.5rem;
    }
}

/* ============================================================
   Home Content Sections — About / Features / Screens / Download
   ============================================================ */

/* Let the home page scroll past the hero, footer flows at the end */
body.home .sky-background { height: 100%; }
body.home .main-footer { position: static; }

.home-section {
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
}

/* Full-height home sections (desktop) */
#about,
#features,
#screens,
#download {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 5%;
    scroll-margin-top: 70px;
}


.section-label {
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    text-align: center;
    color: var(--accent-deep);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.section-heading em {
    font-style: italic;
    color: var(--accent-gold);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- About --- */
.about-pillars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.2rem;
}

.about-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 100px;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-deep);
    backdrop-filter: blur(10px);
}

.about-pillar svg {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.07);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(225, 239, 252, 0.5));
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--accent-gold);
    margin-bottom: 1.4rem;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* --- Screens Gallery --- */
.screens-scroller {
    display: flex;
    gap: 1.8rem;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 2.5rem 0 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.screens-scroller.dragging {
    cursor: grabbing;
}

.screens-scroller::-webkit-scrollbar {
    display: none;
}

.screen-card img {
    user-select: none;
    -webkit-user-drag: none;
}

.screens-scroller.dragging .screen-card {
    pointer-events: none;
}

.screen-card {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.screen-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14);
}

.screen-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screens-hint {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* --- Download CTA --- */
.download-inner {
    background: linear-gradient(135deg, rgba(225, 239, 252, 0.6), rgba(255, 244, 225, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 36px;
    padding: 4.5rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.download-inner .store-buttons {
    justify-content: center;
    animation: none;
    opacity: 1;
    transform: none;
    margin-top: 2.5rem;
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
}

.download-qr img {
    width: 120px;
    height: 120px;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 16px;
}

.qr-caption {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

/* Phones tap the badges directly — the scan prompt is for desktop */
@media (max-width: 560px) {
    .download-qr {
        display: none;
    }
}

/* --- Reveal on scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Full 100vh with 6 stacked feature cards would crop on phones — let it grow */
    #features {
        min-height: auto;
        padding: 5rem 6%;
    }
    #about,
    #download {
        padding: 5rem 6%;
    }
    .section-heading {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .section-sub {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 1.8rem;
    }
    .screen-card {
        width: 82vw;
        max-width: 320px;
    }
    .download-inner {
        padding: 3rem 1.5rem;
    }
    .about-pillars {
        flex-direction: column;
        align-items: center;
    }
}
