:root {
    --text-color: #37474F; 
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --highlight: rgba(178, 235, 242, 0.5);
    --accent-red: #d32f2f;
    --section-padding: clamp(60px, 10vh, 100px); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-color); overflow-x: hidden; width: 100%; background: #f8f9fa; font-size: 16px; }

/* CANVAS */
#pearl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#landing-view { position: relative; width: 100%; z-index: 10; display: block; }
.scroll-container { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.section { min-height: 100vh; width: 100%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: var(--section-padding) 20px; position: relative; }

/* --- CLEAN NAVIGATION --- */
.fixed-nav {
    position: fixed; top: 0; left: 0; width: 100%; padding: 30px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; pointer-events: none;
}
.nav-brand {
    font-family: 'Inter', sans-serif; font-weight: 700; text-decoration: none; color: var(--text-color);
    letter-spacing: 2px; font-size: 1.1rem; pointer-events: auto; background: transparent; border: none;
}
.menu-wrapper { position: relative; pointer-events: auto; }
.nav-menu-btn {
    background: transparent; border: none; font-family: 'Inter', sans-serif; font-weight: 500;
    color: var(--text-color); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.95rem;
}
.nav-brand:hover, .nav-menu-btn:hover { opacity: 0.7; transform: translateY(-1px); transition: 0.3s; }

/* SLEEK DROPDOWN MENU */
.glass-dropdown {
    position: absolute; top: 40px; right: 0; width: 180px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6); border-radius: 20px;
    padding: 15px; display: none; flex-direction: column; gap: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); animation: dropIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glass-dropdown.active { display: flex; }
.glass-dropdown a {
    text-decoration: none; color: var(--text-color); font-size: 0.9rem;
    padding: 10px 15px; border-radius: 12px; transition: 0.2s; font-weight: 400;
}
.glass-dropdown a:hover { background: rgba(0,0,0,0.04); }
@keyframes dropIn { from{opacity:0; transform:translateY(-10px) scale(0.95);} to{opacity:1; transform:translateY(0) scale(1);} }

/* --- HANDWRITING INK FLOW --- */
.handwriting-container { display: inline-block; margin-bottom: 0px; }
.ink-flow-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 2.8rem);
    background: linear-gradient(to right, var(--text-color) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: inkReveal 2.5s ease-out forwards;
    display: inline-block;
    padding-right: 10px;
    font-weight: 500;
}
@keyframes inkReveal { to { background-position: 0 0; } }

/* TYPOGRAPHY */
.serif-header { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; margin-bottom: 25px; }
.hero-title { font-family: 'Inter', sans-serif; font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 200; letter-spacing: clamp(5px, 2vw, 15px); margin: 2vh 0; line-height: 1.1; }
.correction-headline { font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 300; margin-bottom: 4vh; font-family: 'Playfair Display', serif; }
.correction-group { position: relative; display: inline-block; margin: 0 5px; }
.caret-symbol { display: block; font-size: 1.5rem; line-height: 0.5; color: var(--accent-red); font-weight: bold; }
.inserted-word { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) rotate(-5deg); font-family: 'Dancing Script', cursive; font-size: 1.5rem; color: var(--text-color); white-space: nowrap; padding-bottom: 5px; }
.hero-desc { font-family: 'Inter', sans-serif; font-size: clamp(0.95rem, 2.5vw, 1.2rem); font-weight: 300; line-height: 1.6; opacity: 0.85; max-width: 650px; margin: 0 auto; }
.poetic-text { font-family: 'Inter', sans-serif; font-size: 1.1rem; line-height: 1.8; opacity: 0.9; max-width: 800px; }
.script-header { font-family: 'Dancing Script', cursive; font-size: 3.5rem; opacity: 0.6; margin-bottom: 5px; font-weight: 600; }

/* DOODLES */
.doodles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.1; }
.doodle { position: absolute; animation: float 6s ease-in-out infinite; }
.doodle-1 { width: 100px; top: 15%; left: 8%; }
.doodle-2 { width: 80px; top: 22%; right: 12%; animation-delay: 1s; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* BUTTONS */
.hero-buttons { display: flex; gap: 30px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.btn-magic-glass { display: flex; align-items: center; gap: 12px; padding: 16px 45px; border-radius: 50px; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.6); cursor: pointer; backdrop-filter: blur(12px); transition: 0.4s; font-size: 1rem; }
.btn-magic-solid { display: flex; align-items: center; gap: 12px; padding: 16px 45px; border-radius: 50px; background: var(--text-color); color: white; border: none; cursor: pointer; transition: 0.4s; font-size: 1rem; }
.btn-magic-glass:hover, .btn-magic-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* BENTO GRID (COMPACT & FRAMED) */
.features-wrapper { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.bento-grid { display: grid; width: 100%; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(160px, auto); gap: 20px; }
.bento-card { background: transparent; perspective: 1000px; cursor: pointer; min-height: 160px; }
.card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.02); }
.bento-card.flipped .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.6); justify-content: space-between; }
.card-back { transform: rotateY(180deg); background: rgba(255, 255, 255, 0.95); justify-content: center; align-items: center; text-align: center; overflow: hidden; }

/* Feature Typography */
.highlight-desc { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-style: italic; color: var(--text-color); margin-bottom: 8px; font-weight: 500; line-height: 1.3; }
.sub-desc { font-family: 'Inter', sans-serif; font-size: 0.8rem; opacity: 0.8; margin-bottom: 12px; line-height: 1.3; }
.bento-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.bento-card .tagline { font-size: 0.8rem; font-weight: 400; opacity: 0.7; font-family: 'Inter', sans-serif; margin-bottom: 0; }
.card-icon { font-size: 1.6rem; margin-bottom: 10px; color: var(--text-color); opacity: 0.8; }
.flip-hint { position: absolute; bottom: 15px; right: 15px; font-size: 1.1rem; opacity: 0.3; transition: 0.3s; }
.doodle-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; pointer-events: none; z-index: 0; }
.doodle-overlay svg { width: 130%; height: 130%; fill: none; stroke: var(--text-color); stroke-width: 1; transform: rotate(-5deg); }
.card-back > *:not(.doodle-overlay) { position: relative; z-index: 1; }
.card-ai { grid-column: span 2; }
.card-human { grid-row: span 2; } 
.card-insights { grid-column: span 3; }

@media (max-width: 1024px) { .bento-grid { grid-template-columns: 1fr 1fr; } .card-ai { grid-column: span 2; } .card-human { grid-column: span 1; grid-row: span 1; } .card-insights { grid-column: span 2; } .section { min-height: auto; padding: 60px 20px; } }
@media (max-width: 768px) { .bento-grid { grid-template-columns: 1fr; } .card-ai, .card-human, .card-insights { grid-column: span 1; } .fixed-nav { padding: 15px 20px; } }

/* SOCIALS & CONNECT */
.join-btn-large { padding: 20px 60px; border-radius: 50px; background: var(--text-color); color: white; border: none; cursor: pointer; font-size: 1.4rem; font-weight: 500; transition: 0.3s; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.join-btn-large:hover { transform: translateY(-4px); background: #000; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.connect-divider { margin: 40px 0 25px 0; font-size: 0.9rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 15px; width: 100%; }
.connect-divider::before, .connect-divider::after { content: ""; flex: 1; height: 1px; background: var(--text-color); opacity: 0.2; }
.social-connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; width: 100%; }

/* BRAND COLOR HOVER LOGIC */
.social-link-card { display: flex; flex-direction: column; align-items: center; padding: 20px; background: rgba(255,255,255,0.5); border-radius: 20px; text-decoration: none; color: var(--text-color); transition: 0.3s ease; border: 1px solid rgba(255,255,255,0.4); }
.social-link-card ion-icon { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.9; transition: 0.3s; }
.social-link-card.instagram:hover { background: rgba(225, 48, 108, 0.08); border-color: rgba(225, 48, 108, 0.3); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(225, 48, 108, 0.15); }
.social-link-card.instagram:hover ion-icon, .social-link-card.instagram:hover span { color: #E1306C; }
.social-link-card.whatsapp:hover { background: rgba(37, 211, 102, 0.08); border-color: rgba(37, 211, 102, 0.3); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.15); }
.social-link-card.whatsapp:hover ion-icon, .social-link-card.whatsapp:hover span { color: #25D366; }
.social-link-card.youtube:hover { background: rgba(255, 0, 0, 0.08); border-color: rgba(255, 0, 0, 0.3); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 0, 0, 0.15); }
.social-link-card.youtube:hover ion-icon, .social-link-card.youtube:hover span { color: #FF0000; }
.social-link-card.email:hover { background: rgba(234, 67, 53, 0.08); border-color: rgba(234, 67, 53, 0.3); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(234, 67, 53, 0.15); }
.social-link-card.email:hover ion-icon, .social-link-card.email:hover span { color: #EA4335; }
@media (max-width: 768px) { .social-connect-grid { grid-template-columns: 1fr 1fr; } .join-btn-large { width: 100%; justify-content: center; } }

/* UTILS */
.glass-pane { background: var(--glass-bg); backdrop-filter: blur(40px); border-radius: 40px; padding: 60px; max-width: 750px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); }
.overlay-glass { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); backdrop-filter: blur(20px); z-index: 300; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.5s; }
.overlay-glass.active { opacity: 1; pointer-events: all; }
.close-btn { position: absolute; top: 30px; right: 30px; background: rgba(0,0,0,0.05); width: 40px; height: 40px; border-radius: 50%; border: none; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.close-btn:hover { background: rgba(0,0,0,0.1); transform: rotate(90deg); }

/* AUTH PANE */
.spacious-auth { padding: 60px; width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 10px; }
.input-group { margin-bottom: 5px; }
.minimal-input { width: 100%; padding: 18px 25px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.08); background: white; font-size: 1rem; outline: none; transition: 0.2s; }
.minimal-input:focus { border-color: var(--text-color); }
.wide-btn { width: 100%; padding: 18px; border-radius: 15px; background: var(--text-color); color: white; border: none; cursor: pointer; font-size: 1.1rem; font-weight: 500; margin-top: 10px; transition: 0.3s; }
.wide-btn:hover { background: #000; transform: translateY(-2px); }
.auth-divider { margin: 30px 0; }
.social-login-wrapper { display: flex; flex-direction: column; gap: 15px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px; border-radius: 50px; border: 1px solid rgba(0,0,0,0.1); background: white; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-color); transition: 0.3s; }
.social-btn:hover { background: #f5f5f5; transform: translateY(-2px); }
.landing-footer { position: absolute; bottom: 20px; width: 100%; text-align: center; font-size: 0.85rem; opacity: 0.7; pointer-events: all; }
.landing-footer a { color: var(--text-color); text-decoration: none; margin: 0 12px; transition: 0.3s; }

/* --- ELEGANT AUTH MODAL --- */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; pointer-events: none; transition: 0.4s ease; }
.auth-overlay.active { opacity: 1; pointer-events: all; }
.auth-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; padding: 40px; width: 100%; max-width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: scale(0.95); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; }
.auth-overlay.active .auth-card { transform: scale(1); }
.auth-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #555; transition: 0.2s; }
.auth-close:hover { color: #000; transform: rotate(90deg); }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 25px; text-align: center; color: #111; font-weight: 500; }
.auth-input { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 15px; outline: none; transition: 0.3s; font-family: 'Inter', sans-serif; }
.auth-input:focus { border-color: #333; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.auth-btn { width: 100%; padding: 14px; border-radius: 12px; background: #111; color: #fff; border: none; font-size: 1rem; font-weight: 500; cursor: pointer; transition: 0.3s; }
.auth-btn:hover { background: #333; transform: translateY(-1px); }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 15px 0; color: #888; font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(0,0,0,0.1); }
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }
.google-btn { width: 100%; padding: 14px; border-radius: 12px; background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.1); font-size: 1rem; font-weight: 500; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.google-btn:hover { background: #f9f9f9; border-color: rgba(0,0,0,0.2); }

/* --- NEW HERO SECTION ANIMATIONS --- */

/* 1. Readable Handwriting Effect */
.handwriting-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0px;
}
.handwriting-text {
    font-family: 'Dancing', cursive;
    font-size: 2.6rem; /* Made larger */
    font-weight: 100; /* Thicker for better readability */
    color: #333; /* Darker for better contrast */
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    max-width: 0;
    /* Types out over 1.5 seconds */
    animation: typeWriter 1.5s steps(30, end) 0.5s forwards; 
}

/* 2. Sleek, Premium Brand Title */
.hero-brand {
    font-family: 'Helvetica', serif;
    font-size: 4.8rem; /* Made significantly bigger */
    font-weight: 200; /* Lighter weight makes it look sleeker */
    letter-spacing: 14px; /* Wide tracking for a premium feel */
    color: #111;
    margin-bottom: 10px;
    margin-left: 14px; /* Visually centers the offset caused by letter-spacing */
    opacity: 0;
    animation: simpleFadeIn 1s 1.8s forwards; /* Appears smoothly after handwriting */
}

/* 3. The Type-In Tagline Transition */
.dynamic-tagline {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 30px;
}

/* The word " Digital" physically pushes " Friend" to the right */
.typewriter-word {
    display: inline-flex;
    overflow: hidden;
    white-space: pre; /* Crucial: Preserves the space before the word */
    max-width: 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: #111;
    border-right: 2px solid transparent;
    position: relative;
    /* Waits 3.5 seconds, then types in the word while showing a blinking cursor */
    animation: typeInDigital 1s steps(8, end) 3.5s forwards, 
               blinkCursor 0.4s step-end 3.5s 3;
}

/* Soft highlight that fades in under the word after typing finishes */
.typewriter-word::after {
    content: '';
    position: absolute;
    left: 8px; /* Skips the space character */
    bottom: 4px;
    width: calc(100% - 8px);
    height: 6px;
    background: rgba(178, 235, 242, 0.7); 
    z-index: -1;
    border-radius: 4px;
    opacity: 0;
    animation: simpleFadeIn 0.8s 4.8s forwards; 
}

/* Keyframes */
@keyframes typeWriter {
    to { max-width: 100%; border-color: transparent; }
}
@keyframes typeInDigital {
    0% { max-width: 0; }
    100% { max-width: 120px; border-right-color: transparent; } /* 120px is wide enough to reveal the word */
}
@keyframes blinkCursor {
    0%, 100% { border-right-color: transparent; }
    50% { border-right-color: #111; }
}
@keyframes simpleFadeIn {
    to { opacity: 1; }
}

/* =========================================================
   MOBILE RESET: COMPACT & FITTED SECTIONS
   ========================================================= */
@media (max-width: 768px) {
    /* 1. Kill Horizontal Scrolling */
    html, body { 
        width: 100%; 
        overflow-x: hidden !important; 
        position: relative;
    }
    *, *::before, *::after { 
        box-sizing: border-box !important; 
    }

    /* 2. Compact Hero Typography */
    .hero-brand { 
        font-size: 11vw; /* Slightly scaled down */
        letter-spacing: 2vw; 
        margin: 0 0 5px 2vw; 
        text-align: center; 
        width: 100%; 
        display: block; 
    }
    .handwriting-text { 
        font-size: 7vw; 
    }
    .dynamic-tagline { 
        font-size: 5vw; 
        flex-wrap: wrap; 
        height: auto; 
        text-align: center; 
        justify-content: center; 
        margin-bottom: 20px;
    }
    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    /* 3. Section Adjustments (Saved Vertical Space) */
    .section { 
        width: 100%; 
        min-height: 100dvh !important; 
        height: auto !important; 
        padding: 80px 5% 40px 5% !important; /* Shrunk from 100/80 to give content more room */
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        position: relative;
    }
    .content-wrapper { 
        width: 100%; 
        padding: 0; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 4. Compact Hero Buttons */
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
        margin-top: 15px;
    }
    .hero-buttons button { 
        width: 100%; 
        padding: 14px; 
    }

    /* 5. Features Box Fix (Perfect Mobile Puzzle Grid) */
    .features-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-top: 10px;
    }
    
    .feature-main-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .bento-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns */
        gap: 12px !important; 
        width: 100%; 
    }

    .bento-card { 
        width: 100%; 
        margin: 0; 
        min-height: 140px !important; /* Increased slightly so text breathes */
        height: auto;
        border-radius: 16px; 
    }

    /* Top card spans both columns */
    .bento-card:nth-child(1) {
        grid-column: span 2;
        min-height: 140px !important; 
    }

    /* CRITICAL FIX: Force the 3D card backgrounds to stretch to full height */
    .card-inner, .card-front, .card-back {
        height: 100% !important;
        width: 100% !important;
    }

    /* Pull the text back inside the white cards and center it */
    .card-front, .card-back {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 10px !important;
    }

    /* Typography scaled for the small boxes */
    .bento-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        text-align: center;
    }
    
    .bento-card .tagline, 
    .bento-card .sub-desc, 
    .bento-card .highlight-desc {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        text-align: center;
        margin-bottom: 0 !important;
    }

    .card-icon {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }

    /* Keep the plus icon locked to the corner so it doesn't overlap text */
    .flip-hint {
        position: absolute;
        bottom: 10px !important;
        right: 10px !important;
        font-size: 1.2rem !important;
        margin: 0 !important;
    }

    /* 6. Connect Section Fix (2x2 Grid) */
    .social-connect-grid { 
        grid-template-columns: 1fr 1fr; /* Places 2 buttons side-by-side to halve the height */
        gap: 10px; 
    }

    /* 7. Modals & Panes */
    .glass-pane { 
        width: 100%; 
        padding: 25px 15px; /* Shrunk padding inside the glass box so it doesn't take over the screen */
        margin: 0 auto; 
        border-radius: 20px;
    }
    .auth-card {
        width: 90%;
        padding: 25px 15px;
    }
}

/* --- PROMISE TEXT JUSTIFICATION --- */
#promise p { text-align: justify; text-justify: inter-word; hyphens: auto; }

/* --- ELEGANT AUTH MODAL --- */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; pointer-events: none; transition: 0.4s ease; }
.auth-overlay.active { opacity: 1; pointer-events: all; }
.auth-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; padding: 40px; width: 100%; max-width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: scale(0.95); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; }
.auth-overlay.active .auth-card { transform: scale(1); }
.auth-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #555; transition: 0.2s; }
.auth-close:hover { color: #000; transform: rotate(90deg); }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 25px; text-align: center; color: #111; font-weight: 500; }
.auth-input { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 15px; outline: none; transition: 0.3s; font-family: 'Inter', sans-serif; }
.auth-input:focus { border-color: #333; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.auth-btn { width: 100%; padding: 14px; border-radius: 12px; background: #111; color: #fff; border: none; font-size: 1rem; font-weight: 500; cursor: pointer; transition: 0.3s; }
.auth-btn:hover { background: #333; transform: translateY(-1px); }
.auth-divider { display: flex; align-items: center; text-align: center; margin: 15px 0; color: #888; font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(0,0,0,0.1); }
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }
.google-btn { width: 100%; padding: 14px; border-radius: 12px; background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.1); font-size: 1rem; font-weight: 500; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.google-btn:hover { background: #f9f9f9; border-color: rgba(0,0,0,0.2); }
