/* ==========================================================================
   UNIVERSE PAGE — Premium Animations & Interactions
   Apple-level quality motion design
   ========================================================================== */

/* ── Custom easing curves ── */
:root {
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reduce motion accessibility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   HERO — Word-by-word reveal animation
   ========================================================================== */

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotate(2deg);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.hero-title .word.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Stagger each word */
.hero-title .word:nth-child(1) { transition-delay: 0.1s; }
.hero-title .word:nth-child(2) { transition-delay: 0.2s; }
.hero-title .word:nth-child(3) { transition-delay: 0.3s; }
.hero-title .word:nth-child(4) { transition-delay: 0.4s; }

/* Welcome line — fade + slide with blur */
.hero-welcome {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
    transition-delay: 0.05s;
}

.hero-welcome.u-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Hero subtitle */
.hero-subtitle-block {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.7s ease;
    transition-delay: 0.35s;
}

.hero-subtitle-block.u-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Hero CTA buttons */
.hero-cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    transition-delay: 0.55s;
}

.hero-cta.u-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MAGNETIC BUTTON EFFECT
   ========================================================================== */

.btn-magnetic {
    position: relative;
    transition: transform 0.3s var(--ease-spring) !important;
}

/* ==========================================================================
   SCROLL REVEAL — enhanced from base styles
   ========================================================================== */

.u-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.u-reveal.delay-1 { transition-delay: 0.12s; }
.u-reveal.delay-2 { transition-delay: 0.24s; }
.u-reveal.delay-3 { transition-delay: 0.36s; }
.u-reveal.delay-4 { transition-delay: 0.48s; }

/* Fade up for text lines */
.u-line {
    overflow: hidden;
    display: block;
}
.u-line-inner {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.u-line-inner.u-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   STEP CARDS — feature blocks as glassy cards
   ========================================================================== */

.u-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 40px;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
    cursor: default;
}

.u-step-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(201, 162, 39, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 162, 39, 0.06);
}

.u-step-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(201,162,39,0.4), rgba(201,162,39,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.u-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary, #fff);
}

.u-step-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary, rgba(255,255,255,0.55));
}

/* How it works 2x2 grid */
.u-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 64px;
}

@media (max-width: 768px) {
    .u-steps-grid {
        grid-template-columns: 1fr;
    }
    .u-step-card {
        padding: 28px;
    }
}

/* ==========================================================================
   FEATURE CARDS — horizontal icon + text layout
   ========================================================================== */

.u-feature-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), border-color 0.3s ease;
}

.u-feature-card:last-child { border-bottom: none; }

.u-feature-card.u-visible {
    opacity: 1;
    transform: translateX(0);
}

.u-feature-card:hover {
    border-color: rgba(201, 162, 39, 0.15);
}

.u-feature-number {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--kaver-gold, #C9A227);
    opacity: 0.7;
    min-width: 36px;
    padding-top: 6px;
}

.u-feature-body h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    color: var(--text-primary, #fff);
}

.u-feature-body p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary, rgba(255,255,255,0.55));
    max-width: 560px;
}

/* ==========================================================================
   QUOTE — large cinematic treatment
   ========================================================================== */

.u-quote-section {
    padding: 120px 0;
    overflow: hidden;
}

.u-quote-text {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-primary, #fff);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.u-quote-mark {
    font-size: 6rem;
    line-height: 0.5;
    color: var(--kaver-gold, #C9A227);
    opacity: 0.3;
    display: block;
    margin-bottom: 24px;
    font-family: Georgia, serif;
}

.u-quote-cite {
    display: block;
    margin-top: 32px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   WAITLIST FORM — premium input styling
   ========================================================================== */

.u-waitlist-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.u-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 22px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.u-input::placeholder { color: rgba(255,255,255,0.3); }

.u-input:focus {
    border-color: rgba(201, 162, 39, 0.6);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.u-input.u-error {
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.u-field-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}

.u-field-error.visible { display: block; }

.u-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on button */
.u-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.u-submit-btn:hover::before {
    left: 160%;
}

/* Success state */
.u-success {
    display: none;
    text-align: center;
    padding: 48px 20px;
    opacity: 0;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

.u-success.visible {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.u-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.12);
    border: 1.5px solid rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.25); }
    50% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
}

/* Checkmark draw animation */
.u-check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.6s var(--ease-out-expo) 0.2s;
}
.u-success.visible .u-check-path {
    stroke-dashoffset: 0;
}

/* ==========================================================================
   FOUNDER CARD
   ========================================================================== */

.u-founder-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 56px 64px;
    max-width: 720px;
    margin: 48px auto 0;
    position: relative;
    overflow: hidden;
}

.u-founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), transparent);
}

.u-founder-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.9;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.u-founder-sig strong {
    display: block;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.u-founder-sig span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .u-founder-card {
        padding: 36px 28px;
    }
}

/* ==========================================================================
   FEATURE CARDS — horizontal list
   ========================================================================== */

.u-features-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 64px;
}

.u-feature-card {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.u-feature-card.u-visible {
    opacity: 1;
    transform: translateX(0);
}

.u-feature-number {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #C9A227;
    min-width: 40px;
    padding-top: 6px;
    flex-shrink: 0;
}

.u-feature-body h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.u-feature-body p {
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    font-size: 0.97rem;
    max-width: 600px;
}

@media (max-width: 640px) {
    .u-feature-card { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   WAITLIST FORM — premium wrap
   ========================================================================== */

.u-waitlist-wrap {
    max-width: 480px;
    margin: 0 auto;
}

#u-waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.u-field {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   FOUNDER CITE
   ========================================================================== */

.u-founder-cite {
    display: block;
    font-size: 0.95rem;
    font-style: normal;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

.u-founder-cite strong {
    color: #fff;
    font-weight: 600;
}

.u-founder-cite span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
}

/* Success SVG check circle */
.u-check {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 24px;
}

.u-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.u-success p {
    color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   PARTICLE BACKGROUND for WAITLIST section
   ========================================================================== */

.u-particle-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================================================
   FLOATING BADGE — "Early Access"
   ========================================================================== */

.u-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--kaver-gold, #C9A227);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.u-badge.u-visible {
    opacity: 1;
    transform: translateY(0);
}

.u-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kaver-gold, #C9A227);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ==========================================================================
   SCROLL PROGRESS LINE
   ========================================================================== */

.u-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #C9A227, #f0d060);
    z-index: 10001;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==========================================================================
   NUMBER COUNTER (for stats if added)
   ========================================================================== */

.u-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   NAV transparent → solid on scroll
   ========================================================================== */

.navbar.u-scrolled {
    background: rgba(10, 10, 10, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}
