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

:root {
    --bg: #000000;
    --bg-card: #2a2a2d;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0eeeb;
    --text-dim: rgba(255, 255, 255, 0.50);
    --text-muted: rgba(255, 255, 255, 0.25);
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.10);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   BASE
   ============================================ */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    position: relative;
}

/* Apple crystal gradient layer */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(167, 139, 250, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 60% 80%, rgba(244, 114, 182, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 120% 100% at 50% 50%, rgba(30, 30, 35, 0.9) 30%, transparent 70%);
}

/* Slow drifting light shimmer */
body::after {
    content: '';
    position: fixed;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 35% at 30% 40%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 35% 30% at 70% 60%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
    animation: drift 20s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -2%) rotate(1deg); }
    66% { transform: translate(-2%, 3%) rotate(-1deg); }
}

::selection {
    background: rgba(139, 139, 245, 0.3);
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease) 0.2s forwards;
}

.nav-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 6rem;
    position: relative;
}

.hero-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 0.8s var(--ease) 0.4s forwards;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.line {
    display: block;
    opacity: 0;
    animation: titleIn 1s var(--ease) forwards;
}

.line:nth-child(1) { animation-delay: 0.5s; }
.line:nth-child(2) { animation-delay: 0.7s; }

.accent {
    color: var(--accent);
}

@keyframes titleIn {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.6;
    max-width: 380px;
    opacity: 0;
    animation: slideUp 0.8s var(--ease) 0.9s forwards;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    max-width: 380px;
    margin-top: 2rem;
    opacity: 0;
    animation: slideUp 0.8s var(--ease) 1s forwards;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.progress-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 2.5s var(--ease);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.milestone {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    padding-top: 0.35rem;
}

.milestone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.milestone.active {
    color: var(--text-dim);
}

.milestone.active::before {
    background: var(--accent);
}

/* ============================================
   ANIMATED CONSTRUCTION BLOCKS
   ============================================ */
.blocks {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    opacity: 0;
    animation: fadeIn 1.2s var(--ease) 1s forwards;
}

.block {
    position: absolute;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.block-1 {
    width: 60px;
    height: 60px;
    background: var(--accent-dim);
    bottom: 0;
    left: 0;
    animation: stackUp 2s var(--ease) 1.2s both, float1 6s ease-in-out 3.2s infinite;
}

.block-2 {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    bottom: 0;
    left: 65px;
    animation: stackUp 2s var(--ease) 1.4s both, float2 7s ease-in-out 3.4s infinite;
}

.block-3 {
    width: 55px;
    height: 55px;
    background: rgba(139, 139, 245, 0.06);
    bottom: 55px;
    left: 25px;
    animation: stackUp 2s var(--ease) 1.6s both, float3 5s ease-in-out 3.6s infinite;
}

.block-4 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    bottom: 65px;
    left: 85px;
    animation: stackUp 2s var(--ease) 1.8s both, float1 8s ease-in-out 3.8s infinite;
}

.block-5 {
    width: 35px;
    height: 35px;
    background: var(--accent-dim);
    bottom: 110px;
    left: 45px;
    animation: stackUp 2s var(--ease) 2s both, float2 6s ease-in-out 4s infinite;
}

@keyframes stackUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

/* ============================================
   NOTIFY
   ============================================ */
.notify {
    padding-bottom: 4rem;
    opacity: 0;
    animation: slideUp 0.8s var(--ease) 1.2s forwards;
}

.notify-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notify-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

#email-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
    font-family: var(--font);
    color: var(--text);
    font-weight: 300;
}

#email-input::placeholder {
    color: var(--text-muted);
}

#notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s ease;
}

#notify-btn:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

#notify-btn.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease) 1.4s forwards;
}

.social {
    display: flex;
    gap: 0.25rem;
}

.social-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.social-link:hover {
    color: var(--text);
}

.footer-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .blocks {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 2rem;
        width: 150px;
        height: 150px;
    }

    .hero {
        padding: 2rem 0 4rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
