/* =============================================
   Natural Science Society — Coming Soon
   Design System & Styles
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Color palette — deep oceanic science theme */
    --bg-primary: #030712;
    --bg-secondary: #0a1628;
    --bg-card: rgba(15, 25, 50, 0.6);
    --bg-card-hover: rgba(20, 35, 70, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-teal: #6ee7b7;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-purple: #a78bfa;

    --gradient-main: linear-gradient(135deg, #6ee7b7 0%, #3b82f6 50%, #a78bfa 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(110, 231, 183, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    --gradient-glow: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);

    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-accent: rgba(110, 231, 183, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(110, 231, 183, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border-subtle);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Particle Canvas ---------- */
#particleCanvas {
    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.35;
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    top: -10%;
    right: -8%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.3), transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.25), transparent 70%);
    top: 40%;
    left: 50%;
    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(15px, 35px) scale(1.02); }
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    animation: fadeSlideDown 0.8s ease-out;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    backdrop-filter: blur(12px);
}

.header-cta:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); }
}

/* ---------- Hero ---------- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0 60px;
    gap: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-subtle);
    border: 1px solid var(--border-accent);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

.title-line {
    display: block;
}

.title-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite, fadeSlideUp 0.8s ease-out 0.4s both;
}

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

.hero-subtitle {
    max-width: 580px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------- Countdown ---------- */
.countdown-section {
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
}

.countdown-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.countdown-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    min-width: 90px;
    transition: all var(--transition-fast);
}

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

.countdown-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
    animation: blink 1s step-end infinite;
}

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

/* ---------- Notify Section ---------- */
.notify-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeSlideUp 0.8s ease-out 1s both;
}

.notify-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.notify-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    padding: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    transition: all var(--transition-fast);
}

.notify-form:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), var(--shadow-card);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.input-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    color: var(--text-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.notify-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gradient-main);
    color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.notify-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(110, 231, 183, 0.3);
}

.notify-btn:active {
    transform: scale(0.98);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

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

.notify-success {
    display: none;
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: 500;
    animation: fadeSlideUp 0.4s ease-out;
}

.notify-success.visible {
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    padding: 40px 0 32px;
    animation: fadeSlideUp 0.8s ease-out 1.2s both;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.contact-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    color: var(--accent-teal);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-value {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card:hover .contact-value {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 0 16px;
    }

    .header {
        padding: 16px 0;
    }

    .header-cta span:not(.cta-dot) {
        display: none;
    }

    .header-cta {
        padding: 10px;
        border-radius: 50%;
    }

    .hero {
        padding: 24px 0 40px;
        gap: 24px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .countdown-card {
        min-width: 64px;
        padding: 14px 12px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-grid {
        gap: 6px;
    }

    .notify-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
    }

    .input-wrapper {
        width: 100%;
        padding: 8px 4px;
    }

    .notify-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}
