/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --frost-white: #E8EEF0;
    --ice-blue: #D0D8E0;
    --charcoal: #282830;
    --botanical-green: #507848;
    --seal-gold: #B8983B;
    --rose-antique: #C08070;
    --grid-gray: #C0C8D0;

    --font-display: 'Abril Fatface', serif;
    --font-body: 'Source Serif 4', serif;

    --mouse-x: 50%;
    --mouse-y: 50%;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--frost-white);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 0.9vw, 16px);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* ===== GRID-LINES BACKGROUND ===== */
.grid-lines-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: gridFadeIn 600ms ease-out 200ms forwards;
    background:
        repeating-linear-gradient(
            to right,
            transparent,
            transparent calc(25% - 1px),
            rgba(192, 200, 208, 0.08) calc(25% - 1px),
            rgba(192, 200, 208, 0.08) 25%
        ),
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 79px,
            rgba(192, 200, 208, 0.08) 79px,
            rgba(192, 200, 208, 0.08) 80px
        );
}

@keyframes gridFadeIn {
    to { opacity: 1; }
}

/* ===== FROSTED ENTRY (Hero) ===== */
.frosted-entry {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Botanical header decorations */
.botanical-header-left,
.botanical-header-right {
    position: absolute;
    top: 0;
    width: 200px;
    height: 300px;
    z-index: 2;
    opacity: 0.8;
}

.botanical-header-left {
    left: 5%;
    top: 5%;
}

.botanical-header-right {
    right: 5%;
    top: 5%;
}

.botanical-svg {
    width: 100%;
    height: 100%;
}

/* SVG draw animation */
.draw-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.botanical-draw.animate .draw-path {
    animation: drawStroke 1200ms ease-out forwards;
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

/* Stagger draw paths */
.botanical-draw.animate .draw-path:nth-child(1) { animation-delay: 0ms; }
.botanical-draw.animate .draw-path:nth-child(2) { animation-delay: 80ms; }
.botanical-draw.animate .draw-path:nth-child(3) { animation-delay: 160ms; }
.botanical-draw.animate .draw-path:nth-child(4) { animation-delay: 240ms; }
.botanical-draw.animate .draw-path:nth-child(5) { animation-delay: 320ms; }
.botanical-draw.animate .draw-path:nth-child(6) { animation-delay: 400ms; }
.botanical-draw.animate .draw-path:nth-child(7) { animation-delay: 480ms; }
.botanical-draw.animate .draw-path:nth-child(8) { animation-delay: 560ms; }
.botanical-draw.animate .draw-path:nth-child(9) { animation-delay: 640ms; }
.botanical-draw.animate .draw-path:nth-child(10) { animation-delay: 720ms; }
.botanical-draw.animate .draw-path:nth-child(11) { animation-delay: 800ms; }
.botanical-draw.animate .draw-path:nth-child(12) { animation-delay: 880ms; }
.botanical-draw.animate .draw-path:nth-child(13) { animation-delay: 960ms; }

/* Frosted glass panels */
.frosted-panel {
    background: rgba(232, 238, 240, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(208, 216, 224, 0.4);
    border-radius: 2px;
    padding: 48px;
    transition: backdrop-filter 400ms ease, -webkit-backdrop-filter 400ms ease;
}

.frosted-panel:hover {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero panel */
.hero-panel {
    text-align: center;
    max-width: 700px;
    z-index: 3;
    opacity: 0;
    animation: heroFadeIn 800ms ease-out 400ms forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 52px);
    color: var(--charcoal);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.1vw, 18px);
    color: var(--charcoal);
    opacity: 0.7;
    line-height: 1.6;
}

/* ===== PRIVACY CLASSIFIEDS SECTION ===== */
.classifieds-section {
    position: relative;
    z-index: 1;
    padding: 80px 5% 60px;
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* F-pattern block placements */
.block-primary {
    grid-column: 1 / 8;
    grid-row: 1;
}

.block-secondary {
    grid-column: 1 / 6;
    grid-row: 2;
}

.block-side {
    grid-column: 6 / 10;
    grid-row: 2;
}

.block-seal {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-left-1 {
    grid-column: 1 / 5;
    grid-row: 3;
}

.block-left-2 {
    grid-column: 1 / 5;
    grid-row: 4;
}

.block-left-3 {
    grid-column: 1 / 5;
    grid-row: 5;
}

.block-right-1 {
    grid-column: 5 / 10;
    grid-row: 3;
}

.block-right-2 {
    grid-column: 5 / 10;
    grid-row: 4;
}

/* Classified blocks */
.classified-block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.classified-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.classified-block .frosted-panel {
    height: 100%;
    position: relative;
    border-left: 2px solid transparent;
    transition: border-color 300ms ease, backdrop-filter 400ms ease, -webkit-backdrop-filter 400ms ease;
}

.classified-block .frosted-panel:hover {
    border-left-color: var(--seal-gold);
}

.classified-header {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.classified-rule {
    width: 60px;
    height: 2px;
    background: var(--grid-gray);
    margin-bottom: 16px;
}

.classified-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 0.9vw, 16px);
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.classified-ref {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--seal-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Magnetic block interaction */
.magnetic-block {
    --mag-x: 0px;
    --mag-y: 0px;
    will-change: transform;
}

.magnetic-block.visible {
    transform: translate(var(--mag-x), var(--mag-y));
}

/* Botanical seals */
.botanical-seal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-svg {
    width: 180px;
    height: 180px;
}

.seal-large .seal-svg {
    width: 300px;
    height: 120px;
}

/* Seal divider section */
.seal-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

/* Botanical hover detail increase */
.botanical-header-left,
.botanical-header-right {
    transition: opacity 300ms ease;
}

.frosted-entry:hover .botanical-header-left,
.frosted-entry:hover .botanical-header-right {
    opacity: 1;
}

/* ===== REGISTRY (Footer) ===== */
.registry-section {
    position: relative;
    z-index: 1;
    padding: 60px 5% 40px;
    border-top: 2px solid rgba(192, 200, 208, 0.15);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.registry-column {
    padding: 0 16px;
}

.registry-heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.registry-rule {
    width: 40px;
    height: 2px;
    background: var(--seal-gold);
    margin-bottom: 16px;
}

.registry-list {
    list-style: none;
}

.registry-list li {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 0.85vw, 15px);
    line-height: 2;
    color: var(--charcoal);
    opacity: 0.75;
    border-bottom: 1px solid rgba(192, 200, 208, 0.1);
    padding: 4px 0;
}

.registry-footer-line {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(192, 200, 208, 0.12);
    text-align: center;
}

.fine-print {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--charcoal);
    opacity: 0.5;
    letter-spacing: 0.03em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .classifieds-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .block-primary,
    .block-secondary,
    .block-side,
    .block-seal,
    .block-left-1,
    .block-left-2,
    .block-left-3,
    .block-right-1,
    .block-right-2 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .registry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .botanical-header-left,
    .botanical-header-right {
        width: 120px;
        height: 180px;
    }

    .frosted-panel {
        padding: 32px;
    }
}

@media (max-width: 600px) {
    .registry-grid {
        grid-template-columns: 1fr;
    }

    .botanical-header-left {
        left: 2%;
        top: 2%;
        width: 80px;
        height: 120px;
    }

    .botanical-header-right {
        right: 2%;
        top: 2%;
        width: 80px;
        height: 120px;
    }

    .frosted-panel {
        padding: 24px;
    }

    .hero-panel {
        margin: 0 16px;
    }
}
