/* ==========================================================================
   ALLURA CUSTOM STYLES
   Extracted from index.html inline styles
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
    --editorial-bg: #F8F8FA;
    --editorial-text: #5D5276;
    --editorial-accent: #7A6E94;
    --editorial-highlight: #98DDC8;
    --grid-line: rgba(155, 141, 181, 0.2);
    --grain-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");

    /* Legacy variables */
    --brand-purple: #9B8DB5;
    --brand-purple-dark: #3F678E;
    --cta-purple: #7A6E94;
    --soft-blue: #8FB8D9;
    --periwinkle-blue: #A3C5D6;
    --mint-green: #98DDC8;
    --mint-green-alt: #A4D6C4;
    --lavender: #C9B2E3;
    --lavender-light: #DDCBEA;
    --coral: #D6A7B1;
    --text-dark: #5D5276;
    --text-dark-alt: #3F678E;
    --bg-light: #F8F8FA;
    --bg-lavender: #F0E8F8;
    --bg-mint: #E8F8F2;
    --white: #FFFFFF;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'General Sans', system-ui, sans-serif;
    background-color: var(--editorial-bg);
    color: var(--editorial-text);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--grain-url);
    pointer-events: none;
    z-index: 9000;
    opacity: 0.3;
    mix-blend-mode: multiply;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    width: 140%;
    height: 140%;
    background-image: url('bg-optimized.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--cta-purple);
    border-radius: 10px;
}

/* --- UTILITY CLASSES (replacing repeated inline styles) --- */
.bg-transparent {
    background: transparent;
}

.mt-6 {
    margin-top: 1.5rem;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 0;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}

.hero-title-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--grid-line);
    margin: 0 -2rem;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(152, 221, 200, 0.05), transparent 70%);
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 200;
    font-size: clamp(2.5rem, 10vw, 8rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
    color: var(--editorial-text);
}

.hero-title .line {
    display: block;
}

.hero-title .italic {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.05em;
}

.hero-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    color: var(--editorial-text);
    opacity: 0.85;
    line-height: 1.6;
}

.hero-cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--editorial-text);
    opacity: 0.7;
}

.hero-footer-item {
    font-weight: 500;
}

.hero-footer-item.text-right {
    text-align: right;
}

.hero-footer-center {
    text-align: center;
    opacity: 0.8;
    display: flex;
    justify-content: center;
}

.hero-bounce-icon {
    width: 28px;
    height: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* Hero responsive */
@media (max-height: 850px) {
    .hero-section {
        padding: 5.5rem 2rem 0;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 6rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-height: 700px) {
    .hero-section {
        padding: 5rem 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 5rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 1rem;
    }

    .hero-cta-container {
        margin-bottom: 0;
    }

    .hero-footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
}

@media (max-height: 600px) {
    .hero-section {
        padding: 4.5rem 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 4rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 0 auto 0.75rem;
    }

    .hero-footer {
        padding: 0.75rem 0;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-footer-item.text-right {
        text-align: center;
    }
}

/* --- NAVBAR --- */
.nav-pill {
    background: rgba(248, 248, 250, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(155, 141, 181, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill:hover {
    box-shadow: 0 12px 48px rgba(155, 141, 181, 0.12);
}

.nav-container,
.nav-container .max-w-5xl,
.nav-links {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compact state */
.nav-container.nav-compact .max-w-5xl {
    max-width: 220px;
}

.nav-container.nav-compact .nav-pill {
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(155, 141, 181, 0.18);
}

.nav-container.nav-compact .nav-links {
    opacity: 0;
    width: 0;
    max-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none;
    position: absolute;
}

.nav-container.nav-compact .allura-logo {
    height: 28px !important;
}

.nav-container.nav-compact .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 12px;
    line-height: 1;
}

.nav-compact-icon {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 0.5rem;
}

.nav-container.nav-compact .nav-compact-icon {
    display: flex;
}

.scroll-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(155, 141, 181, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mint-green), var(--cta-purple));
    border-radius: 2px;
    transition: width 0.1s ease-out;
}

/* Expanded state */
.nav-container.nav-expanded .max-w-5xl {
    max-width: 64rem;
}

.nav-container.nav-expanded .nav-links {
    opacity: 1;
    width: auto;
    max-width: none;
    position: relative;
    pointer-events: auto;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cta-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--cta-purple);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- BUTTONS --- */
.btn-primary {
    background: var(--cta-purple);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(122, 110, 148, 0.3);
}

.btn-primary:hover {
    background: #6A5E82;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(122, 110, 148, 0.35);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(93, 82, 118, 0.2);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--mint-green);
    background: rgba(152, 221, 200, 0.08);
}

/* --- PINNED SCROLL SECTIONS --- */
.pinned-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

.pinned-spacer {
    position: relative;
    height: 400vh;
}

.scroll-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.scroll-layer.active {
    opacity: 1;
    pointer-events: all;
}

.scroll-layer-number {
    font-family: 'General Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--editorial-accent);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scroll-layer-number::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--editorial-accent);
    opacity: 0.5;
}

.scroll-layer-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    color: var(--editorial-text);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.scroll-layer-title .italic {
    font-style: italic;
    font-weight: 500;
    display: block;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-layer-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--editorial-text);
    opacity: 0.75;
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.scroll-layer-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.scroll-layer-stat-value {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 300;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.scroll-layer-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--editorial-text);
    opacity: 0.5;
    margin-top: 0.75rem;
}

/* Scroll layer animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        filter: brightness(1) blur(0px);
    }

    50% {
        filter: brightness(1.1) blur(1px);
    }

    100% {
        filter: brightness(1) blur(0px);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.scroll-layer-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(155, 141, 181, 0.15);
    opacity: 0.9;
    animation: float 6s ease-in-out infinite, shimmer 4s ease-in-out infinite;
}

#feature-2 .scroll-layer-image,
#method-2 .scroll-layer-image {
    animation: pulse 5s ease-in-out infinite;
}

#feature-3 .scroll-layer-image,
#method-3 .scroll-layer-image {
    animation: breathe 7s ease-in-out infinite;
}

.scroll-progress-dots {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.scroll-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grid-line);
    transition: all 0.3s ease;
}

.scroll-progress-dot.active {
    background: var(--editorial-accent);
    transform: scale(1.3);
}

.scroll-layer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.scroll-layer-text {
    text-align: left;
}

.scroll-layer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .scroll-progress-dots {
        right: 1rem;
    }

    .scroll-layer {
        padding: 1rem;
    }

    .scroll-layer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .scroll-layer-text {
        text-align: center;
        order: 2;
    }

    .scroll-layer-visual {
        order: 1;
    }

    .scroll-layer-image {
        max-height: 40vh;
    }

    #features-spacer,
    #method-spacer {
        height: 350vh !important;
    }
}

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* --- LOGO --- */
.allura-logo {
    display: inline-block;
    height: 40px;
    background: transparent;
    line-height: 0;
}

.allura-logo img,
.logo-img {
    height: 100%;
    width: auto;
    display: block;
    background: none !important;
    background-color: transparent !important;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* --- SECTION: BRIDGE --- */
.section-bridge {
    padding: 3rem 0;
    border-bottom: 1px solid var(--grid-line);
}

@media (min-width: 768px) {
    .section-bridge {
        padding: 4rem 0;
    }
}

.bridge-quote {
    color: var(--editorial-text);
    opacity: 0.7;
    line-height: 1.8;
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .bridge-quote {
        font-size: 1.125rem;
    }
}

.bridge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--editorial-accent);
    text-decoration: none;
    font-family: 'Fraunces', serif;
    opacity: 0.8;
}

.bridge-link:hover {
    gap: 0.75rem;
}

.bridge-link-icon {
    width: 14px;
    height: 14px;
}

/* --- SECTION: TEAM --- */
.section-team {
    padding: 4rem 0;
    border-bottom: 1px solid var(--grid-line);
    background: rgba(240, 232, 248, 0.2);
}

@media (min-width: 768px) {
    .section-team {
        padding: 5rem 0;
    }
}

.team-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--editorial-accent);
    opacity: 0.7;
    font-family: 'Fraunces', serif;
}

.team-heading {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--editorial-text);
}

@media (min-width: 768px) {
    .team-heading {
        font-size: 1.875rem;
    }
}

.team-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--editorial-text);
    opacity: 0.8;
    line-height: 1.7;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--editorial-accent);
    text-decoration: none;
    font-family: 'Fraunces', serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-link:hover {
    gap: 0.75rem;
}

.team-link-icon {
    width: 16px;
    height: 16px;
}

.team-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(122, 110, 148, 0.15), rgba(152, 221, 200, 0.15));
    border: 1px solid rgba(122, 110, 148, 0.2);
}

@media (min-width: 768px) {
    .team-icon-wrapper {
        width: 5rem;
        height: 5rem;
    }
}

.team-icon {
    width: 28px;
    height: 28px;
    color: var(--editorial-accent);
}

.team-badge-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--editorial-text);
    font-family: 'Fraunces', serif;
}

.team-badge-subtitle {
    font-size: 0.75rem;
    color: var(--editorial-text);
    opacity: 0.6;
}

/* --- SECTION: CTA --- */
.section-cta {
    padding: 7rem 0;
    border-bottom: 1px solid var(--grid-line);
}

.cta-label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    color: var(--editorial-accent);
    font-family: 'Fraunces', serif;
}

.cta-heading {
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--editorial-text);
}

@media (min-width: 768px) {
    .cta-heading {
        font-size: 3rem;
    }
}

.cta-gradient {
    font-style: italic;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtext {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--editorial-text);
    opacity: 0.8;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--editorial-text);
    opacity: 0.8;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-check-icon {
    width: 1rem;
    height: 1rem;
    color: var(--editorial-highlight);
}

@media (max-width: 768px) {
    #download {
        padding: 4rem 0;
    }

    #download h2 {
        font-size: 1.75rem;
    }

    #download button {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
    }
}

/* --- EMAIL MODAL --- */
/* Styles moved to modal.css */


/* --- FOOTER --- */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
    color: #5D5276;
    border-top: 1px solid rgba(93, 82, 118, 0.1);
}

.footer-simple .footer-links {
    display: flex;
    gap: 2rem;
}

.footer-simple .footer-links a {
    color: #5D5276;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.footer-simple .footer-links a:hover {
    opacity: 1;
    color: #7A6E94;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--editorial-text);
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(248, 248, 250, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--editorial-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--editorial-accent);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--editorial-text);
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-section {
        padding: 5rem 1rem 0;
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-title-container {
        padding: 1.5rem 1rem;
        margin: 0 -1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.25rem;
    }

    .hero-cta-container button {
        width: 100%;
        max-width: 300px;
    }

    .footer-simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer-simple .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .footer-simple .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .pinned-section {
        padding-top: 60px;
    }

    .scroll-layer {
        padding: 0.75rem;
    }

    .scroll-layer-content {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .scroll-layer-text {
        padding: 0 0.5rem;
    }

    .scroll-layer-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .scroll-layer-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .scroll-layer-stat {
        align-items: center;
    }

    .scroll-layer-stat-value {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .scroll-layer-image {
        max-height: 35vh;
        border-radius: 16px;
    }

    .scroll-progress-dots {
        right: 0.5rem;
        gap: 0.75rem;
    }

    .scroll-progress-dot {
        width: 8px;
        height: 8px;
    }

    .nav-pill {
        padding: 0.5rem 1rem;
    }

    .allura-logo {
        height: 32px;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }




}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .scroll-layer-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .footer-simple .footer-links {
        gap: 0.75rem 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-layer-content {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .scroll-layer-image {
        max-height: 50vh;
    }
}

/* --- ANSWER BOX SECTION (SEO Featured Snippets) --- */
.answer-box-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(155, 141, 181, 0.05) 100%);
}

.answer-box-container {
    max-width: 800px;
    margin: 0 auto;
}

.answer-box-question {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--editorial-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.answer-box-question:first-of-type {
    margin-top: 0;
}

.answer-box-answer {
    font-family: 'General Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--editorial-text);
    opacity: 0.85;
}

.answer-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.answer-box-list li {
    font-family: 'General Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--editorial-text);
    opacity: 0.85;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.answer-box-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--brand-purple);
    border-radius: 50%;
}

.answer-box-list li strong {
    color: var(--editorial-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .answer-box-section {
        padding: 3rem 1rem;
    }
    
    .answer-box-question {
        margin-top: 2rem;
    }
}