/* ============================================================
   AURUM — Homepage hero, editorial edition
   Scoped to .hero-v2 so no other page is touched.
   ============================================================ */

.hero-v2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(9.5rem, 15vh, 12rem) 0 clamp(3.5rem, 7vh, 5.5rem);
    background: var(--background);
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-v2-copy {
    position: relative;
    z-index: 2;
}

.hero-v2-title {
    margin: 0 0 1.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.15rem, 1.15rem + 4.6vw, 4.35rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #f6f1e8;
}

.hero-v2-lede {
    margin: 0 0 2.2rem;
    max-width: 52ch;
    font-size: clamp(1rem, 0.94rem + 0.28vw, 1.18rem);
    font-weight: 300;
    line-height: 1.7;
    color: #cdc4b6;
}

.hero-v2-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 1.9rem;
}

.hero-v2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    background: var(--primary);
    color: #1a0e02 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-v2-cta:hover {
    background: #ffb020;
    color: #1a0e02 !important;
    transform: translateY(-1px);
}

.hero-v2-cta:focus-visible,
.hero-v2-link:focus-visible {
    outline: 2px solid #fcd34d;
    outline-offset: 3px;
}

.hero-v2-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #e9e1d4 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.hero-v2-link .material-symbols-outlined {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.hero-v2-link:hover {
    color: var(--primary) !important;
}

.hero-v2-link:hover .material-symbols-outlined {
    transform: translateY(2px);
}

.hero-v2-note {
    margin: 1.9rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    color: #93897c;
}

/* ---------- The seal ---------- */

.hero-v2-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-seal {
    width: 100%;
    max-width: 540px;
    height: auto;
    display: block;
}

.seal-line {
    fill: none;
    stroke: rgba(245, 158, 11, 0.32);
    stroke-width: 1;
}

.seal-line--faint {
    stroke: rgba(245, 158, 11, 0.14);
}

.seal-center-disc {
    fill: rgba(245, 158, 11, 0.05);
}

.seal-lock {
    stroke: #f0c574;
    stroke-width: 1.1;
    opacity: 0.8;
}

.seal-lock-dot {
    fill: #f0c574;
}

.seal-cipher {
    fill: rgba(240, 199, 116, 0.42);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8.2px;
    font-weight: 500;
    letter-spacing: 1.2px;
}

.seal-cipher-rotor {
    transform-box: fill-box;
    transform-origin: center;
    animation: seal-spin-reverse 220s linear infinite;
}

.seal-word {
    fill: #f0c574;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 35px;
    font-weight: 600;
    letter-spacing: 9px;
}

.seal-sub {
    fill: rgba(230, 220, 205, 0.55);
    font-family: 'Inter', sans-serif;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 2.4px;
}

.seal-arc-text {
    fill: rgba(240, 199, 116, 0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 2.6px;
}

.seal-rotor {
    transform-box: fill-box;
    transform-origin: center;
    animation: seal-spin 140s linear infinite;
}

@keyframes seal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes seal-spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ---------- Layer index band ---------- */

.home-layers {
    position: relative;
    z-index: 1;
    padding: clamp(1.7rem, 3.6vh, 2.5rem) 0;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
    background: #080604;
}

.home-layers .hero-v2-layers {
    margin: 0;
}

.hero-v2-layers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem 2.5rem;
    margin: clamp(2.8rem, 6vh, 4.5rem) 0 0;
    padding: 0;
    list-style: none;
}

.hero-v2-layers li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.hero-v2-layers li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    background: var(--primary);
    transform: rotate(45deg) translateY(-1px);
}

.hero-v2-layers .layer-name {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: #e7dfd2;
}

.hero-v2-layers .layer-note {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    color: #8f8578;
}

/* ---------- Entrance ---------- */

.hero-v2-copy > * {
    opacity: 0;
    animation: hero-v2-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-v2-copy > .hero-v2-title { animation-delay: 0.1s; }
.hero-v2-copy > .hero-v2-lede { animation-delay: 0.22s; }
.hero-v2-copy > .hero-v2-actions { animation-delay: 0.34s; }
.hero-v2-copy > .hero-v2-note { animation-delay: 0.46s; }

.hero-v2-visual {
    opacity: 0;
    animation: hero-v2-seal-in 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

.hero-v2-layers li {
    opacity: 0;
    animation: hero-v2-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-v2-layers li:nth-child(1) { animation-delay: 0.55s; }
.hero-v2-layers li:nth-child(2) { animation-delay: 0.63s; }
.hero-v2-layers li:nth-child(3) { animation-delay: 0.71s; }
.hero-v2-layers li:nth-child(4) { animation-delay: 0.79s; }

@keyframes hero-v2-rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-v2-seal-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 991.98px) {
    .hero-v2 {
        padding-top: 8.75rem;
    }

    .hero-v2-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-v2-visual {
        justify-content: center;
        order: 2;
    }

    .hero-seal {
        max-width: 420px;
    }

    .hero-v2-layers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero-v2 {
        padding-top: 8rem;
        padding-bottom: 3rem;
    }

    .hero-v2-title {
        margin-bottom: 1.35rem;
    }

    .hero-v2-lede {
        margin-bottom: 1.9rem;
    }

    .hero-v2-cta {
        width: 100%;
    }

    .hero-v2-actions {
        gap: 1.1rem;
    }

    .hero-seal {
        max-width: 320px;
    }

    .hero-v2-layers {
        margin-top: 2.5rem;
        gap: 1.2rem 1.5rem;
    }

    .hero-v2-layers .layer-note {
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-v2-copy > *,
    .hero-v2-visual,
    .hero-v2-layers li {
        opacity: 1;
        animation: none;
    }

    .seal-rotor {
        animation: none;
    }

    .seal-cipher-rotor {
        animation: none;
    }
}
