/* ==========================================================================
   Design Tokens & CSS Custom Variables
   ========================================================================== */
:root {
    --bg-dark: #100b2c;
    --card-purple: #20043c;
    --card-glass: rgba(255, 255, 255, 0.04);
    
    --text-white: #ffffff;
    --text-secondary: #a39cb4;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --btn-grad-start: #f9a82a;
    --btn-grad-end: #e8791f;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-card-light: rgba(255, 255, 255, 0.1);
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   Layout Containers & Common Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
}

section {
    position: relative;
    overflow: hidden;
}

/* Helper class for responsive line breaks */
.br-mobile {
    display: none;
}

.br-desktop {
    display: inline;
}

/* Glowing Multi-layered Ambient Orbs in Background */
body::before, body::after, .orb-bg {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Blue Ambient Glow */
body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 145, 217, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 100px;
    left: 200px;
    animation: pulseGlow 18s infinite alternate ease-in-out;
}

/* Pink/Magenta Ambient Glow */
body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 0, 213, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50px;
    right: 150px;
    animation: pulseGlow 24s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(30px, 40px) scale(1.1); opacity: 1; }
}

/* Horizontal Divider Line */
.horizontal-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(201,169,110,0) 0%, rgba(201,169,110,0.2) 50%, rgba(201,169,110,0) 100%);
    z-index: 10;
}

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0 21px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0); /* Transparent border matching Figma layout */
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px; /* Aligns contents with .container below! */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(111, 56, 244, 0.3));
}

.logo-text-img {
    width: 167px;
    height: 22px;
    object-fit: contain;
}

/* Glassmorphic Central Link Capsule */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card-light);
    padding: 13px 25px;
    border-radius: 9999px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-fast);
    opacity: 0.85;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.download-badge-link {
    display: block;
    height: 48px;
    transition: var(--transition-fast);
}

.download-badge-link:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.download-badge {
    height: 48px;
    object-fit: contain;
}

.nav-download-btn {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 4px;
    background-color: #e1e3e4;
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    height: 768px;
    display: flex;
    align-items: end;
    padding-bottom: 0px;
    padding-top: 164px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 10;
}

.hero-content {
    width: 605px;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 56px;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
    color: var(--text-white);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Orange Gradient Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
    color: var(--text-white);
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(249, 168, 42, 0.25);
}

.btn-download:hover {
    box-shadow: 0 15px 35px rgba(249, 168, 42, 0.45);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Visual Graphics (Absolute relative to centered container) */
.parallax-container {
    position: absolute;
    right: -30px;
    top: -17px;
    width: 818px;
    height: 621px;
    z-index: 5;
    pointer-events: none;
}

/* Constellation and Astrolabe background rotating */
.visual-astro-bg {
    position: absolute;
    width: 1007px;
    height: 1007px;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    animation: rotateAstro 120s linear infinite;
}

@keyframes rotateAstro {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Priestess Image Wrapper */
.priestess-wrapper {
    position: absolute;
    width: 605px;
    height: 558px;
    right: 40px;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden; /* Crop the zoomed priestess image */
    transform: scaleX(-1); /* Flips horizontally to match Figma layout */
}

.priestess-img {
    position: absolute;
    width: 195.62%;
    height: 212.1%;
    left: -59.06%;
    top: -27.53%;
    max-width: none;
}

/* Flying Tarot Cards styling inside Priestess Hand */
.flying-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: var(--transition-smooth);
}

.flying-card img {
    width: 58px;
    height: 91px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 14px 20px 0px rgba(217, 0, 213, 0.25);
}

.card-left {
    left: 225px;
    top: 205.51px;
    width: 82.052px;
    height: 103.973px;
    animation: floatCardLeft 6s infinite alternate ease-in-out;
}
.card-left img {
    transform: rotate(-16.98deg);
}

.card-center {
    left: 300.03px;
    top: 205px;
    width: 58px;
    height: 91px;
    animation: floatCardCenter 7s infinite alternate ease-in-out;
}
.card-center img {
    transform: rotate(0deg);
}

.card-right {
    left: 348.03px;
    top: 209px;
    width: 81.991px;
    height: 103.948px;
    animation: floatCardRight 5s infinite alternate ease-in-out;
}
.card-right img {
    transform: rotate(16.93deg);
}

@keyframes floatCardLeft {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

@keyframes floatCardCenter {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes floatCardRight {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Key Features Section
   ========================================================================== */
.features-section {
    padding: 112px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 56px;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 40px;
}

/* Feature Cards base */
.feature-card {
    border-radius: 40px;
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card-light);
}

.card-purple-dark {
    background-color: var(--card-purple);
}

.card-glass {
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Taller cards in row 2 and 3 */
#feat-dreams, #feat-ai, #feat-other, #feat-learn {
    height: 432px;
}

.feature-card:hover {
    border-color: rgba(217, 0, 213, 0.35);
    box-shadow: 0 30px 60px rgba(16, 11, 44, 0.4), 0 0 40px rgba(116, 0, 217, 0.15);
    transform: translateY(-5px);
}

.card-text {
    position: absolute;
    left: 40px;
    top: 60px;
    z-index: 10;
    pointer-events: none;
}

.card-text h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.3;
    color: var(--text-white);
}

/* Card Visual Container (Covers whole card to allow absolute alignments) */
.card-visual-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Phone Mockup Wrapper */
.phone-mockup {
    position: absolute;
    left: calc(50% + 120px);
    transform: translateX(-50%);
    top: 52px;
    width: 223px;
    height: 478px;
    border: 6px solid var(--border-card-light);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    background-color: #0b071e;
}

/* Daily Draw card phone is taller */
#visual-daily .phone-mockup {
    height: 566px;
}

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

/* Animation on card hover - Phone slides up */
.feature-card:hover .phone-mockup {
    transform: translateX(-50%) translateY(-15px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 -25px 50px rgba(217,0,213,0.25);
}

/* ---------------- Card-Specific Flying Assets ---------------- */

/* Card 1: Daily Card Draw Mini Cards */
.floating-mini-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: var(--transition-smooth);
}

.floating-mini-card img {
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 14px 20px 0px rgba(25, 6, 121, 0.25);
}

.mini-card-left {
    left: 280px;
    top: 258px;
    width: 82px;
    height: 104px;
}
.mini-card-left img {
    width: 58px;
    height: 91px;
    transform: rotate(-16.98deg);
}

.mini-card-mid {
    left: 224px;
    top: 139px;
    width: 78px;
    height: 102px;
}
.mini-card-mid img {
    width: 58px;
    height: 91px;
    transform: rotate(-14.05deg);
}

.mini-card-right {
    left: 503px;
    top: 108px;
    width: 81px;
    height: 127px;
}
.mini-card-right img {
    width: 81px;
    height: 127px;
    transform: rotate(0deg);
}

/* Hover shifts for Mini Cards */
.feature-card:hover .mini-card-left {
    transform: translate(-10px, -15px) rotate(-22deg);
}
.feature-card:hover .mini-card-mid {
    transform: translate(-12px, -20px) rotate(-18deg);
}
.feature-card:hover .mini-card-right {
    transform: translate(15px, -12px) rotate(8deg);
}

/* Card 4: Decode Your Dreams Cloud/Moon */
.dream-cloud-icon {
    position: absolute;
    left: calc(50% - 28.5px);
    transform: translateX(-50%);
    bottom: 63px;
    width: 106px;
    height: 101px;
    object-fit: contain;
    z-index: 15;
    transition: var(--transition-smooth);
    animation: floatSlowCloud 4s infinite alternate ease-in-out;
}

@keyframes floatSlowCloud {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-8px); }
}

.feature-card:hover .dream-cloud-icon {
    transform: translateX(-50%) scale(1.15) translate(-15px, -10px);
}

/* Card 5: AI Reader Flying Avatar Elements */
.ai-asset {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 15;
    transition: var(--transition-smooth);
}

.ai-asset-1 {
    width: 94px;
    height: 94px;
    left: 247px;
    top: 204px;
}

.ai-asset-2 {
    width: 55px;
    height: 54px;
    left: 233px;
    top: 127px;
}

.ai-asset-3 {
    width: 63px;
    height: 63px;
    left: 201px;
    top: 326px;
}

.ai-asset-4 {
    width: 56px;
    height: 56px;
    left: 293px;
    top: 323px;
}

.ai-asset-5 {
    width: 90px;
    height: 90px;
    left: 503px;
    top: 208px;
}

/* Hover effects to spread out AI assets */
.feature-card:hover .ai-asset-1 { transform: translate(-15px, -8px) rotate(-6deg); }
.feature-card:hover .ai-asset-2 { transform: translate(-20px, -15px) rotate(8deg); }
.feature-card:hover .ai-asset-3 { transform: translate(-15px, 15px) rotate(-12deg); }
.feature-card:hover .ai-asset-4 { transform: translate(5px, 15px) rotate(8deg); }
.feature-card:hover .ai-asset-5 { transform: translate(20px, -10px) rotate(10deg); }

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-dark);
    padding: 33px 0 32px 0;
}

.footer-container {
    text-align: center;
}

.copyright {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    color: var(--text-white);
    opacity: 0.6;
}

/* ==========================================================================
   Responsive / Mobile Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .navbar {
        padding: 20px 0;
    }
    
    .nav-container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    /* Shrink the absolute hero visual a bit */
    .parallax-container {
        transform: scale(0.85);
        transform-origin: right center;
        right: -40px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none; /* Collapses menu links */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Mobile Drawer Expansion */
    .nav-links.active-mobile {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 96px;
        left: 20px;
        right: 20px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        background: rgba(16, 11, 44, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--border-card-light);
        border-radius: 24px;
        padding: 30px;
        gap: 20px;
        align-items: center;
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        z-index: 99;
    }

    .nav-links.active-mobile .nav-download-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(180deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
        color: var(--text-white);
        text-decoration: none;
        padding: 12px 24px;
        border-radius: 9999px;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 15px;
        width: 100%;
        max-width: 200px;
        box-shadow: 0 8px 20px rgba(249, 168, 42, 0.25);
        transition: var(--transition-smooth);
        margin-top: 5px;
    }

    .nav-links.active-mobile .nav-download-btn:hover {
        box-shadow: 0 12px 28px rgba(249, 168, 42, 0.4);
        transform: translateY(-2px);
    }
    
    .br-desktop {
        display: none;
    }

    .download-badge-link {
        display: none; /* Hide badge */
    }
    
    /* Hero Content Stacking */
    .hero-section {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px; /* Comfort space for fixed header */
        padding-bottom: 0;
        overflow: hidden;
    }
    
    .hero-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .hero-content {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .card-text {
        left: 40px;
        top: 40px;
    }
    
    .card-text h3 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* Hero Visual Mobile coordinates */
    .parallax-container {
        position: relative;
        margin: 40px auto 0 auto;
        align-self: center;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 486.058px;
        height: 369px;
        z-index: 1;
    }
    
    .visual-astro-bg {
        width: 598.362px;
        height: 598.362px;
        left: 0;
        top: 0;
        transform: none;
        animation: rotateAstro 120s linear infinite;
    }
    
    .priestess-wrapper {
        width: 359.493px;
        height: 331.565px;
        right: 23.77px;
        bottom: 0;
    }
    
    /* Flying cards on mobile coordinates */
    .flying-card img {
        width: 34.588px;
        height: 53.878px;
        box-shadow: 0px 8.319px 11.884px 0px rgba(217, 0, 213, 0.2);
    }
    
    .card-left {
        left: 133.7px;
        top: 122.09px;
        width: 48.807px;
        height: 61.657px;
        animation: floatCardLeftMobile 6s infinite alternate ease-in-out;
    }
    .card-left img {
        transform: rotate(-16.98deg);
    }
    
    .card-center {
        left: 178.28px;
        top: 121.81px;
        width: 34.588px;
        height: 53.878px;
        animation: floatCardCenterMobile 7s infinite alternate ease-in-out;
    }
    .card-center img {
        transform: rotate(0deg);
    }
    
    .card-right {
        left: 206.85px;
        top: 124.19px;
        width: 48.782px;
        height: 61.617px;
        animation: floatCardRightMobile 5s infinite alternate ease-in-out;
    }
    .card-right img {
        transform: rotate(16.93deg);
    }
    
    @keyframes floatCardLeftMobile {
        0% { transform: translateY(0); }
        100% { transform: translateY(-4px); }
    }
    @keyframes floatCardCenterMobile {
        0% { transform: translateY(0); }
        100% { transform: translateY(-5px); }
    }
    @keyframes floatCardRightMobile {
        0% { transform: translateY(0); }
        100% { transform: translateY(-4px); }
    }
    
    /* Grid Collapsing on Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        height: 360px !important;
        border-radius: 40px;
    }
    
    /* Swapping visual order for mobile layout */
    #feat-dreams {
        order: 3;
    }
    
    #feat-learn {
        order: 4;
    }
    
    /* ---------------- Mobile Card Visual Wrappers ---------------- */
    
    /* Base Mockup Phone Mobile size */
    .phone-mockup {
        border-width: 5px;
        border-radius: 16.7px 16.7px 0 0;
        box-shadow: 0 -15px 30px rgba(0,0,0,0.5);
    }
    
    /* Card 1: Daily Card Draw */
    #visual-daily {
        width: 291.951px;
        height: 266px;
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }
    
    #visual-daily .phone-mockup {
        left: calc(50% + 23.11px);
        transform: translateX(-50%);
        top: 0;
        width: 180.835px;
        height: 459.043px;
        border-width: 4.866px;
        border-radius: 16.22px 16.22px 0 0;
    }
    
    .mini-card-left {
        left: 45.41px;
        top: 167.02px;
        width: 66.613px;
        height: 84.15px;
    }
    .mini-card-left img {
        width: 47.178px;
        height: 73.578px;
        transform: rotate(-16.98deg);
        box-shadow: 0px 11.354px 16.22px 0px rgba(25, 6, 121, 0.2);
    }
    
    .mini-card-mid {
        left: 0px;
        top: 70.51px;
        width: 63.645px;
        height: 82.794px;
    }
    .mini-card-mid img {
        width: 47.207px;
        height: 73.534px;
        transform: rotate(-14.05deg);
        box-shadow: 0px 11.354px 16.22px 0px rgba(25, 6, 121, 0.2);
    }
    
    .mini-card-right {
        left: 226.05px;
        top: 45.41px;
        width: 65.904px;
        height: 102.659px;
    }
    .mini-card-right img {
        width: 65.904px;
        height: 102.659px;
        transform: rotate(0deg);
        box-shadow: 0px 11.354px 16.22px 0px rgba(25, 6, 121, 0.2);
    }
    
    /* Card 2, 4, 6: Mockup Centered Wrappers */
    #visual-reader, #visual-learn, #visual-other {
        width: 241.678px;
        height: 286px;
        left: 50%;
        top: 94px;
        transform: translateX(-50%);
    }
    
    #visual-reader .phone-mockup, 
    #visual-learn .phone-mockup, 
    #visual-other .phone-mockup {
        left: 50%;
        transform: translateX(-50%);
        top: 11.71px;
        width: 186.485px;
        height: 399.731px;
        border-width: 5.018px;
        border-radius: 16.725px 16.725px 0 0;
    }
    
    /* Card 3 (Dreams) */
    #visual-dreams {
        width: 220.766px;
        height: 266px;
        left: calc(50% + 0.38px);
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }
    
    #visual-dreams .phone-mockup {
        left: calc(50% + 25.65px);
        transform: translateX(-50%);
        top: 9.45px;
        width: 150.553px;
        height: 322.711px;
        border-width: 4.051px;
        border-radius: 13.503px 13.503px 0 0;
    }
    
    .dream-cloud-icon {
        left: calc(50% - 74.57px);
        transform: translateX(-50%);
        bottom: 42.59px;
        width: 71.626px;
        height: 68.129px;
        animation: floatSlowCloudMobile 4s infinite alternate ease-in-out;
    }
    
    @keyframes floatSlowCloudMobile {
        0% { transform: translateX(-50%) translateY(0); }
        100% { transform: translateX(-50%) translateY(-5px); }
    }
    
    /* Card 5 (AI Reader) */
    #visual-ai {
        width: 255.738px;
        height: 259px;
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }
    
    #visual-ai .phone-mockup {
        left: calc(50% + 23.16px);
        transform: translateX(-50%);
        top: 11.09px;
        width: 145.484px;
        height: 311.844px;
        border-width: 3.914px;
        border-radius: 13.048px 13.048px 0 0;
    }
    
    .ai-asset-1 { width: 61.325px; height: 61.325px; left: 30.01px; top: 110.25px; }
    .ai-asset-2 { width: 35.882px; height: 35.229px; left: 20.88px; top: 60.02px; }
    .ai-asset-3 { width: 41.101px; height: 41.101px; left: 0px; top: 189.85px; }
    .ai-asset-4 { width: 36.534px; height: 36.534px; left: 60.02px; top: 187.89px; }
    .ai-asset-5 { width: 58.715px; height: 58.715px; left: 197.02px; top: 112.86px; }
    
    /* Hover effects disabled/simplified for mobile to avoid overflows */
    .feature-card:hover {
        transform: none;
    }
    .feature-card:hover .phone-mockup {
        transform: translateX(-50%) translateY(0);
    }
    .feature-card:hover .mini-card-left { transform: rotate(-16.98deg); }
    .feature-card:hover .mini-card-mid { transform: rotate(-14.05deg); }
    .feature-card:hover .mini-card-right { transform: rotate(0deg); }
    .feature-card:hover .dream-cloud-icon { transform: translateX(-50%) scale(1); }
    .feature-card:hover .ai-asset-1 { transform: none; }
    .feature-card:hover .ai-asset-2 { transform: none; }
    .feature-card:hover .ai-asset-3 { transform: none; }
    .feature-card:hover .ai-asset-4 { transform: none; }
    .feature-card:hover .ai-asset-5 { transform: none; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .logo-img {
        width: 44px;
        height: 44px;
    }
    
    .logo-text-img {
        width: 129px;
        height: 17px;
    }
}

/* ==========================================================================
   Document Pages (Privacy Policy & Terms of Use)
   ========================================================================== */
.doc-section {
    padding: 164px 0 112px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.doc-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.doc-content-wrapper {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.doc-title-wrapper {
    text-align: center;
    width: 100%;
}

.doc-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 56px;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.doc-last-updated {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    color: var(--text-white);
    opacity: 0.5;
}

.doc-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.doc-block h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    color: var(--text-white);
    line-height: 1.2;
}

.doc-block p, 
.doc-block li {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    color: var(--text-white);
    line-height: 1.6;
    opacity: 0.9;
}

.doc-block ul {
    list-style-type: disc;
    padding-left: 27px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-block strong {
    font-weight: 700;
}

.doc-divider-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 16px;
}

/* Document Mobile Responsiveness */
@media (max-width: 900px) {
    .doc-section {
        padding: 120px 0 60px 0;
    }
    
    .doc-container {
        padding: 0 40px;
    }
    
    .doc-title {
        font-size: 36px;
    }
    
    .doc-block h3 {
        font-size: 20px;
    }
    
    .doc-block p, 
    .doc-block li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .doc-container {
        padding: 0 20px;
    }
    
    .doc-title {
        font-size: 28px;
    }
}

/* Viewport scaling for mobile hero banner */
@media (max-width: 500px) {
    .parallax-container {
        transform: scale(0.96);
        transform-origin: top center;
        margin-top: 20px;
        margin-bottom: -15px; /* Adjust spacing to account for scaled height reduction */
    }
}

@media (max-width: 380px) {
    .parallax-container {
        transform: scale(0.84);
        transform-origin: top center;
        margin-top: 10px;
        margin-bottom: -59px; /* Adjust spacing to account for scaled height reduction */
    }
}

