/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050a18;
    --bg-secondary: #0a1628;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f4ff;
    --text-secondary: rgba(240, 244, 255, 0.6);
    --text-tertiary: rgba(240, 244, 255, 0.35);
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --gradient-start: #3b82f6;
    --gradient-mid: #8b5cf6;
    --gradient-end: #06b6d4;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Body & Background ===== */
body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Canvas ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== Floating Orbs ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
    top: 40%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ===== Page Wrapper ===== */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
header {
    padding: 28px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.brand:hover {
    opacity: 0.85;
}

.brand-icon {
    font-size: 22px;
    color: var(--accent-light);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.nav-contact:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.contact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ===== Main Content ===== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

/* ===== Launch Badge ===== */
.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Hero Title ===== */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 86px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.title-line {
    display: block;
}

.title-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Hero Description ===== */
.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Countdown ===== */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.countdown.visible {
    opacity: 1;
    transform: translateY(0);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-glass {
    width: 82px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.countdown-glass:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(180deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 28px;
    animation: blink 1.2s ease-in-out infinite;
}

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

/* ===== Notify Section ===== */
.notify-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.notify-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.notify-text {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25), 0 0 40px rgba(59, 130, 246, 0.1);
}

.notify-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-mid), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notify-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.15);
}

.notify-btn:hover::before {
    opacity: 1;
}

.notify-btn span {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 18px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.notify-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== Footer ===== */
footer {
    padding: 28px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-copy a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-copy a:hover {
    color: var(--accent-light);
}

.footer-links {
    display: flex;
    gap: 8px;
}

.footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ===== Page Load Animation ===== */
body:not(.loaded) .page-wrapper {
    opacity: 0;
}

body.loaded .page-wrapper {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header {
        padding: 20px 0;
    }

    .brand-text {
        font-size: 20px;
    }

    .nav-contact span:not(.contact-dot) {
        display: none;
    }

    .nav-contact {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }

    main {
        padding: 20px 0;
    }

    .launch-badge {
        margin-bottom: 28px;
        font-size: 11px;
    }

    .hero-title {
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 36px;
        padding: 0 8px;
    }

    .countdown {
        gap: 6px;
        margin-bottom: 40px;
    }

    .countdown-glass {
        width: 62px;
        height: 72px;
        border-radius: var(--radius-md);
    }

    .countdown-number {
        font-size: 26px;
    }

    .countdown-label {
        font-size: 9px;
    }

    .countdown-separator {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .notify-btn {
        padding: 14px 26px;
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
    .orb-3 { width: 180px; height: 180px; }
}

@media (max-width: 380px) {
    .countdown-glass {
        width: 54px;
        height: 64px;
    }

    .countdown-number {
        font-size: 22px;
    }

    .countdown-separator {
        font-size: 18px;
    }

    .notify-btn {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
    }
}
