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

html {
    scroll-behavior: smooth;
    background: #0e0e12;
    color: #c8c8c8;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    background: #0e0e12;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 0.95;
    color: #e8e6e0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    margin-bottom: 0.5em;
    text-align: center;
}

.section-intro {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #7a7a88;
    text-align: center;
    max-width: 500px;
    margin: 0 auto 3rem;
    letter-spacing: 0.02em;
}

/* === CHAMBERS (SECTIONS) === */
.chamber {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* === HERO === */
#hero {
    background: #0e0e12;
    position: relative;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(155, 114, 240, 0.03) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 99px, rgba(232, 230, 224, 0.03) 99px, rgba(232, 230, 224, 0.03) 100px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.keystone-arch {
    width: min(300px, 60vw);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease-out 0.3s forwards;
}

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

.arch-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawPath 2s ease-out 0.5s forwards;
}

.arch-keystone {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawPath 1s ease-out 1.8s forwards;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 8rem);
    color: #f4f2ec;
    letter-spacing: 0.12em;
    opacity: 0;
    animation: fadeUp 1s ease-out 1s forwards;
}

.hero-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #7a7a88;
    margin-top: 1rem;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.3s forwards;
}

.hero-cta {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease-out 1.6s forwards;
}

.btn-primary {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: #c4a1ff;
    border: 1px solid #9b72f0;
    padding: 0.8em 2.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #9b72f0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: #0e0e12;
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #9b72f0, transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* === COLONNADE (CARD GRID) === */
#colonnade {
    background: #0e0e12;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
}

.marble-card {
    background: linear-gradient(165deg, #1c1c24 0%, #0e0e12 100%);
    border: 1px solid #3a3a46;
    padding: 2rem 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
}

.marble-card.visible {
    opacity: 1;
    transform: translateY(var(--offset, 0px));
}

.marble-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9b72f0, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marble-card:hover::before {
    opacity: 1;
}

.marble-card:hover {
    border-color: #9b72f0;
    box-shadow: 0 0 30px rgba(155, 114, 240, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
}

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

.card-title {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
    color: #e8e6e0;
}

.card-text {
    font-size: 0.85rem;
    color: #7a7a88;
    line-height: 1.5;
}

/* === VAULT (HOW IT WORKS) === */
#vault {
    background: linear-gradient(180deg, #0e0e12 0%, #1c1c24 50%, #0e0e12 100%);
}

.vault-steps {
    max-width: 600px;
    width: 100%;
}

.vault-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.vault-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #9b72f0;
    min-width: 50px;
    text-align: center;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.step-content p {
    font-size: 0.9rem;
    color: #7a7a88;
    line-height: 1.5;
}

.step-line {
    position: absolute;
    left: 25px;
    bottom: 0;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, #9b72f0, #3a3a46);
    transition: height 0.6s ease 0.3s;
}

.vault-step.visible .step-line {
    height: 2rem;
}

/* === SANCTUM (CTA) === */
#sanctum {
    background: #0e0e12;
    position: relative;
}

.sanctum-pattern {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.3;
}

.sanctum-svg {
    width: min(500px, 80vw);
    height: auto;
    animation: slowRotate 120s linear infinite;
}

.sanctum-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.sanctum-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f4f2ec;
    margin-bottom: 1rem;
}

.sanctum-text {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #7a7a88;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto 1rem;
}

.waitlist-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.8em 1.2em;
    background: #1c1c24;
    border: 1px solid #3a3a46;
    color: #e8e6e0;
    outline: none;
    transition: border-color 0.3s ease;
}

.waitlist-input::placeholder {
    color: #7a7a88;
}

.waitlist-input:focus {
    border-color: #9b72f0;
}

.btn-submit {
    border-left: none;
}

.sanctum-note {
    font-size: 0.75rem;
    color: #3a3a46;
    letter-spacing: 0.05em;
}

/* === FOOTER === */
#footer {
    background: #0e0e12;
    border-top: 1px solid #1c1c24;
    padding: 2rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #3a3a46;
}

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

.footer-links a {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    color: #7a7a88;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c4a1ff;
}

.footer-copy {
    font-size: 0.75rem;
    color: #3a3a46;
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes slowRotate {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vault-step {
        gap: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .btn-submit {
        border-left: 1px solid #9b72f0;
    }
}

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