/* ======================================================
   IRLYSM — GLOBAL DESIGN SYSTEM v3.0
   Inspired by hatom.com — Inch-by-inch 3D scroll experience
   ====================================================== */

@font-face {
    font-family: 'NCLGasdrifo';
    src: url('./assets/fonts/NCLGasdrifo-Demo.otf') format('opentype');
}

/* ── ROOT TOKENS ── */
:root {
    --bg:           #000000;
    --surface:      rgba(255,255,255,0.04);
    --border:       rgba(255,255,255,0.08);
    --brand:        #FF1493;
    --brand-blue:   #007AFF;
    --brand-purple: #A855F7;
    --brand-orange: #FF8C00;
    --brand-green:  #32CD32;
    --glow-pink:    rgba(255,20,147,0.35);
    --glow-blue:    rgba(0,122,255,0.35);
    --text:         #FFFFFF;
    --muted:        rgba(255,255,255,0.45);
    --heading:      'NCLGasdrifo', 'Helvetica Neue', sans-serif;
    --body:         'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── NOISE CANVAS (FIXED BG) ── */
#irly-noise {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
}

/* ── AMBIENT GLOW ORBS ── */
.ambient {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    opacity: 0.15;
    transition: transform 0.6s ease;
}
.ambient-1 {
    width: 600px; height: 600px;
    background: var(--brand);
    top: -200px; left: -100px;
}
.ambient-2 {
    width: 500px; height: 500px;
    background: var(--brand-blue);
    bottom: 20%; right: -100px;
}
.ambient-3 {
    width: 400px; height: 400px;
    background: var(--brand-purple);
    top: 40%; left: 30%;
}

/* ── NAVBAR ── */
.irly-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 72px;
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.irly-nav.scrolled {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

/* ── Phase pagination dots (center of nav) ── */
.nav-phases {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.phase-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.phase-dot.active {
    background: var(--brand);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--brand);
}

/* Nav Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

/* Nav right actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}
.nav-btn {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
}
.nav-btn:hover { color: var(--text); }
.nav-btn.cta {
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--text);
}
.nav-btn.cta:hover {
    border-color: var(--brand);
    background: rgba(255,20,147,0.08);
}

/* ── FULL-SCREEN MENU OVERLAY ── */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
}
.menu-link {
    font-family: var(--heading);
    font-size: clamp(48px, 8vw, 100px);
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
    letter-spacing: 2px;
    line-height: 1;
}
.menu-link:hover {
    color: var(--text);
    transform: translateX(12px);
}
.menu-footer {
    position: absolute;
    bottom: 40px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}
.menu-socials {
    display: flex;
    gap: 24px;
}
.menu-social-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.menu-social-link:hover { color: var(--text); }

/* ── PHASE LABEL ── */
.phase-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,20,147,0.1);
    border: 1px solid rgba(255,20,147,0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 28px;
}
.phase-pip {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
    animation: pip-pulse 1.5s ease-in-out infinite;
}
@keyframes pip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.5); }
}

/* ── SECTION TITLES ── */
.scene-title {
    font-family: var(--heading);
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1.0;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}
.scene-title .grad {
    background: linear-gradient(135deg, var(--brand) 0%, #ff6eb0 50%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.scene-sub {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
    font-weight: 300;
    max-width: 480px;
}

/* ── CANVAS 3D SCENE ── */
#scene-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── SCROLL CONTAINER (Main 3D Journey) ── */
.journey {
    position: relative;
    z-index: 10;
}

/* Each scene is a full-page sticky-scroll section */
.scene-panel {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10vw;
    position: relative;
}
.scene-panel.right {
    justify-content: flex-end;
}
.scene-panel.center {
    justify-content: center;
    text-align: center;
}

.scene-content {
    max-width: 520px;
    position: relative;
    z-index: 20;
}
.scene-panel.center .scene-content {
    max-width: 700px;
}

/* ── STICKY SCROLL TRACK (hatom-style) ── */
.scroll-track {
    position: relative;
}
.scroll-track .sticky-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── SCENE TRANSITIONS ── */
.fade-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    opacity: 0;
    transition: opacity 0.0s; /* Controlled by JS */
    pointer-events: none;
}
.fade-scene.active {
    opacity: 1;
    pointer-events: auto;
}
.fade-scene.right { justify-content: flex-end; }
.fade-scene.center { justify-content: center; text-align: center; }

/* ── SCROLL PROGRESS INDICATOR ── */
.scroll-progress-wrap {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--brand), transparent);
    animation: scroll-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-drip {
    0%   { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; transform-origin: top; }
}
.scroll-label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── CTA BUTTON ── */
.irly-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: var(--body);
}
.irly-btn:hover {
    border-color: var(--brand);
    background: rgba(255,20,147,0.08);
    box-shadow: 0 0 30px rgba(255,20,147,0.15);
}
.irly-btn.solid {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}
.irly-btn.solid:hover {
    background: #ff3da7;
    box-shadow: 0 8px 40px var(--glow-pink);
}
.btn-icon {
    width: 18px; height: 18px;
    opacity: 0.7;
    transition: transform 0.3s;
}
.irly-btn:hover .btn-icon { transform: translateX(3px); }

/* ── FEATURE CARDS ── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--border);
    margin-top: 60px;
}
.feat-card {
    background: rgba(0,0,0,0.8);
    padding: 40px 32px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}
.feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.feat-card:hover { background: rgba(10,0,5,0.95); }
.feat-card:hover::before { opacity: 0.04; }
.feat-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.feat-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}
.feat-title {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: normal;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}
.feat-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ── STAT ROW ── */
.stats-row {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 48px;
}
.stat-item {
    flex: 1;
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-val {
    font-family: var(--heading);
    font-size: 48px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.stat-val sup { font-size: 60%; }
.stat-lbl {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.5;
}

/* ── WAITLIST FORM ── */
.waitlist-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
}
.waitlist-row {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.waitlist-row:focus-within {
    border-color: rgba(255,20,147,0.4);
    box-shadow: 0 0 40px rgba(255,20,147,0.1);
}
.waitlist-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-size: 15px;
    font-family: var(--body);
    color: var(--text);
    outline: none;
}
.waitlist-input::placeholder { color: rgba(255,255,255,0.2); }
.waitlist-submit {
    background: var(--brand);
    border: none;
    padding: 0 28px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--body);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 10px;
    margin: 5px;
}
.waitlist-submit:hover { background: #ff3da7; }
.form-msg {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}
.form-msg.success { color: #4ade80; }
.form-msg.error   { color: #f87171; }

/* ── FLOATING LIVE BADGE ── */
.live-badge {
    position: fixed;
    bottom: 36px;
    right: 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 500;
    font-size: 13px;
}
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pip-pulse 2s ease-in-out infinite;
}
.live-label { color: var(--muted); }
.live-val { color: var(--text); font-weight: 600; }

/* ── FOOTER (Hatom-style large nav) ── */
.irly-footer {
    position: relative;
    z-index: 10;
    padding: 80px 60px 40px;
    border-top: 1px solid var(--border);
}
.footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
}
.footer-nav-link {
    font-family: var(--heading);
    font-size: clamp(28px, 4vw, 52px);
    color: rgba(255,255,255,0.12);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s;
}
.footer-nav-link:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ─── LEGAL PAGES (Shared) ─── */
.legal-page {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px 80px;
}
.legal-header {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 56px;
}
.legal-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}
.legal-title {
    font-family: var(--heading);
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.0;
    text-transform: uppercase;
    color: var(--text);
}
.legal-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 16px;
}
.legal-section {
    margin-bottom: 48px;
}
.legal-section h2 {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: normal;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.legal-section p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 14px;
}
.legal-section ul {
    padding-left: 20px;
    margin-bottom: 14px;
}
.legal-section ul li {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 8px;
}
.legal-section a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,20,147,0.3);
    transition: border-color 0.2s;
}
.legal-section a:hover { border-bottom-color: var(--brand); }
.legal-footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.legal-footer-nav a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s;
}
.legal-footer-nav a:hover { color: rgba(255,255,255,0.8); }

/* ─── CONTACT PAGE ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.contact-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: border-color 0.3s, background 0.3s;
    background: rgba(255,255,255,0.02);
}
.contact-card:hover {
    border-color: rgba(255,20,147,0.3);
    background: rgba(255,20,147,0.03);
}
.contact-icon { font-size: 28px; margin-bottom: 16px; }
.contact-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
    font-weight: 600;
}
.contact-val {
    font-family: var(--heading);
    font-size: 20px;
    color: var(--text);
    margin-bottom: 8px;
}
.contact-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ─── ANIMATIONS ─── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.36s; }
.anim-delay-4 { animation-delay: 0.52s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .irly-nav { padding: 0 24px; }
    .nav-phases { display: none; }
    .feat-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-nav-links { gap: 30px; flex-wrap: wrap; justify-content: center; }
    .legal-page { padding: 0 24px 60px; }
    .menu-footer { padding: 0 24px; flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
    .scene-title { font-size: 40px; }
    .stats-row { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
}
