/* ============================================================
   multipledger.com - Art-Deco Fintech Mystique
   Colors: #C7A574, #1A2847, #F7F5F1, #D4D0C8, #2D5F4F, #5C3D3A, #F2EDE3
   Fonts: Playfair Display, Inter, Space Mono
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1A2847;
    background-color: #F7F5F1;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    letter-spacing: 0.05em;
    line-height: 1.15;
    color: #1A2847;
    margin-bottom: 1.5rem;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #1A2847;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.accent-text {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: #1A2847;
    letter-spacing: 0.02em;
}

.mono-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
}

/* ---- Layout ---- */

.section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.asymmetric {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.col-left {
    flex: 1.618;
}

.col-right {
    flex: 1;
}

.asymmetric--reversed .col-left {
    order: 2;
}

.asymmetric--reversed .col-right {
    order: 1;
}

/* ---- Gold Divider ---- */

.gold-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #C7A574, #D4D0C8);
    margin: 2rem 0;
}

/* ---- Hero Section ---- */

.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #F7F5F1;
    position: relative;
}

/* Art-Deco Frame */
.deco-frame {
    position: absolute;
    inset: 24px;
    pointer-events: none;
    z-index: 2;
}

.deco-corner {
    position: absolute;
    width: 60px;
    height: 60px;
}

.deco-corner--tl {
    top: 0; left: 0;
    border-top: 3px solid #C7A574;
    border-left: 3px solid #C7A574;
}

.deco-corner--tr {
    top: 0; right: 0;
    border-top: 3px solid #C7A574;
    border-right: 3px solid #C7A574;
}

.deco-corner--bl {
    bottom: 0; left: 0;
    border-bottom: 3px solid #C7A574;
    border-left: 3px solid #C7A574;
}

.deco-corner--br {
    bottom: 0; right: 0;
    border-bottom: 3px solid #C7A574;
    border-right: 3px solid #C7A574;
}

/* Chevron borders on frame */
.chevron-border {
    position: absolute;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        #C7A574 8px,
        #C7A574 9px
    );
    opacity: 0.25;
}

.chevron-border--top,
.chevron-border--bottom {
    height: 1px;
    left: 80px;
    right: 80px;
}

.chevron-border--top { top: 12px; }
.chevron-border--bottom { bottom: 12px; }

.chevron-border--left,
.chevron-border--right {
    width: 1px;
    top: 80px;
    bottom: 80px;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 8px,
        #C7A574 8px,
        #C7A574 9px
    );
    opacity: 0.25;
}

.chevron-border--left { left: 12px; }
.chevron-border--right { right: 12px; }

/* Background currency symbols */
.bg-symbols {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-symbol {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #D4D0C8;
    opacity: 0.08;
    user-select: none;
}

.bg-symbol--1 {
    font-size: 20vw;
    top: 5%;
    left: 5%;
}

.bg-symbol--2 {
    font-size: 15vw;
    top: 55%;
    right: 8%;
}

.bg-symbol--3 {
    font-size: 12vw;
    bottom: 10%;
    left: 15%;
}

.bg-symbol--4 {
    font-size: 18vw;
    top: 20%;
    right: 20%;
    opacity: 0.05;
}

/* Hero Ledger Illustration */
.hero-ledger {
    position: relative;
    z-index: 1;
    width: 320px;
    max-width: 80vw;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.ledger-svg {
    width: 100%;
    height: auto;
}

/* Hero Content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 6rem);
    letter-spacing: 0.12em;
    color: #1A2847;
    margin-bottom: 1rem;
    overflow: hidden;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letterReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: calc(var(--delay) * 0.08s + 0.8s);
    background: linear-gradient(180deg, #1A2847 0%, #C7A574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #C7A574;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
}

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

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

/* Golden Ratio Guide Lines */
.ratio-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ratio-line {
    position: absolute;
    background-color: #C7A574;
    opacity: 0.06;
}

.ratio-line--v1 {
    width: 1px;
    top: 0;
    bottom: 0;
    left: 38.2%;
}

.ratio-line--v2 {
    width: 1px;
    top: 0;
    bottom: 0;
    left: 61.8%;
}

.ratio-line--h1 {
    height: 1px;
    left: 0;
    right: 0;
    top: 61.8%;
}

/* ---- Section 1: Ledgers ---- */

.section-ledgers {
    background-color: #F7F5F1;
    min-height: 150vh;
    padding-top: 4rem;
}

.ledger-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 2rem 0;
}

.ledger-bar {
    height: 16px;
    border-radius: 2px;
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ledger-bar.visible {
    opacity: 1;
    transform: translateX(0);
}

.ledger-bar--1 {
    width: 100%;
    background: linear-gradient(90deg, #C7A574, rgba(199, 165, 116, 0.3));
    transition-delay: 0s;
}

.ledger-bar--2 {
    width: 85%;
    background: linear-gradient(90deg, #D4D0C8, rgba(212, 208, 200, 0.3));
    transition-delay: 0.15s;
}

.ledger-bar--3 {
    width: 92%;
    background: linear-gradient(90deg, #C7A574, rgba(199, 165, 116, 0.25));
    transition-delay: 0.3s;
}

.ledger-bar--4 {
    width: 78%;
    background: linear-gradient(90deg, #D4D0C8, rgba(212, 208, 200, 0.25));
    transition-delay: 0.45s;
}

.ledger-labels {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 2rem 0;
    padding-left: 1rem;
}

.ledger-label {
    font-size: 0.75rem;
    color: #D4D0C8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    height: 16px;
    display: flex;
    align-items: center;
}

/* ---- Chevron Dividers ---- */

.chevron-divider {
    width: 100%;
    padding: 2rem 0;
}

.chevron-divider svg {
    width: 100%;
    height: 40px;
}

.draw-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.draw-path.drawn {
    stroke-dashoffset: 0;
}

/* ---- Section 2: Convergence ---- */

.section-convergence {
    background-color: #F2EDE3;
    min-height: 150vh;
    padding-top: 4rem;
}

.chart-container {
    padding: 2rem 0;
}

.convergence-chart {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chart-line.drawn {
    stroke-dashoffset: 0;
}

.chart-line--1 { transition-delay: 0s; }
.chart-line--2 { transition-delay: 0.3s; }
.chart-line--3 { transition-delay: 0.6s; }
.chart-line--4 { transition-delay: 0.9s; }

.convergence-point {
    opacity: 0;
    transition: opacity 0.6s ease 2s;
}

.convergence-ring {
    opacity: 0;
    transition: opacity 0.6s ease 2.2s;
}

.chart-line.drawn ~ .convergence-point,
.convergence-point.visible {
    opacity: 0.9;
}

.convergence-ring.visible {
    opacity: 0.4;
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { r: 10; opacity: 0.4; }
    50% { r: 15; opacity: 0.2; }
}

/* ---- Section 3: Integration ---- */

.section-integration {
    background-color: #F7F5F1;
    min-height: 150vh;
    padding-top: 4rem;
    position: relative;
}

.bg-ampersand {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(20rem, 40vw, 50rem);
    color: #D4D0C8;
    opacity: 0.07;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-rect {
    position: absolute;
    border: 2px solid #C7A574;
    opacity: 0.08;
    transform: rotate(45deg);
}

.floating-rect--1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
}

.floating-rect--2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 10%;
}

.floating-rect--3 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 30%;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    font-size: 0.875rem;
    color: #C7A574;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.feature-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1A2847;
    line-height: 1.4;
}

/* Stacked Registers */
.stacked-registers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.register {
    background: #F7F5F1;
    border: 1px solid #D4D0C8;
    border-left: 3px solid #C7A574;
    padding: 1.25rem;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(26, 40, 71, 0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.register.visible {
    opacity: 1;
    transform: translateY(0);
}

.register--1 { transition-delay: 0s; }
.register--2 { transition-delay: 0.2s; }
.register--3 { transition-delay: 0.4s; }

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #1A2847;
}

.register-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    padding: 0.15rem 0.5rem;
    border-radius: 1px;
}

.register-status--synced {
    color: #2D5F4F;
    border: 1px solid #2D5F4F;
    opacity: 0.7;
}

.register-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-line {
    height: 4px;
    background: linear-gradient(90deg, #D4D0C8, rgba(212, 208, 200, 0.2));
    border-radius: 1px;
}

.register-line:nth-child(1) { width: 90%; }
.register-line:nth-child(2) { width: 75%; }
.register-line:nth-child(3) { width: 85%; }

/* ---- Closing Section ---- */

.section-closing {
    background-color: #F7F5F1;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
}

.closing-frame {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 3rem;
    bottom: 3rem;
    pointer-events: none;
    z-index: 0;
}

.closing-frame-border {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #C7A574 20%, #C7A574 80%, transparent);
}

.closing-frame-border--top { top: 0; }
.closing-frame-border--bottom { bottom: 0; }

.closing-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.closing-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #1A2847;
    margin-bottom: 1.5rem;
}

.closing-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #1A2847;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button - Art-Deco Frame */
.cta-button {
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.cta-frame {
    display: inline-block;
    position: relative;
    padding: 1rem 3rem;
    border: 2px solid #C7A574;
    overflow: hidden;
    cursor: pointer;
}

.cta-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #C7A574;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.cta-button:hover .cta-fill {
    transform: scaleX(1);
}

.cta-text {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1A2847;
    transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover .cta-text {
    color: #F7F5F1;
}

/* Closing Decoration */
.closing-decoration {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.closing-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.closing-bar {
    height: 3px;
    background: linear-gradient(90deg, transparent, #C7A574, transparent);
    opacity: 0.25;
    border-radius: 1px;
}

.closing-bar:nth-child(1) { width: 200px; }
.closing-bar:nth-child(2) { width: 160px; }
.closing-bar:nth-child(3) { width: 180px; }
.closing-bar:nth-child(4) { width: 140px; }
.closing-bar:nth-child(5) { width: 170px; }

/* Footer */
.footer {
    width: 100%;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1A2847;
    letter-spacing: 0.05em;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background-color: #C7A574;
}

.footer-tagline {
    font-size: 0.75rem;
    color: #D4D0C8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-texture {
    margin-top: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #D4D0C8;
    opacity: 0.08;
    letter-spacing: 1.5rem;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

/* ---- Reveal Animation Classes ---- */

.reveal-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: calc(var(--stagger, 0) * 0.15s);
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Golden Accent Pulse ---- */

.deco-corner,
.closing-frame-border {
    animation: goldPulse 8s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ---- Interactive Hover Effects ---- */

.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #C7A574;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-heading:hover::after {
    width: 100%;
}

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

@media (max-width: 900px) {
    .asymmetric {
        flex-direction: column;
        gap: 2rem;
    }

    .asymmetric--reversed .col-left,
    .asymmetric--reversed .col-right {
        order: unset;
    }

    .col-left, .col-right {
        flex: 1;
        width: 100%;
    }

    .section-inner {
        padding: 5rem 1.5rem;
    }

    .deco-frame {
        inset: 12px;
    }

    .deco-corner {
        width: 35px;
        height: 35px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        letter-spacing: 0.08em;
    }

    .closing-frame {
        left: 2%;
        right: 2%;
    }

    .bg-ampersand {
        font-size: 40vw;
    }
}

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

    .hero-ledger {
        width: 240px;
    }

    .section-heading {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .chevron-border--top,
    .chevron-border--bottom,
    .chevron-border--left,
    .chevron-border--right {
        display: none;
    }

    .bg-symbol {
        opacity: 0.04;
    }
}
