/* ========================================
   SAMPRITI — Coming Soon
   Premium Countdown Page
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #06060e;
    --bg-secondary: #0c0c1d;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(138, 100, 255, 0.2);

    --text-primary: #f0eef6;
    --text-secondary: rgba(240, 238, 246, 0.55);
    --text-muted: rgba(240, 238, 246, 0.3);

    --accent-1: #8a64ff;
    --accent-2: #5ce1e6;
    --accent-3: #ff6ec7;
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --accent-gradient-warm: linear-gradient(135deg, var(--accent-1), var(--accent-3));

    --orb-1: rgba(138, 100, 255, 0.15);
    --orb-2: rgba(92, 225, 230, 0.1);
    --orb-3: rgba(255, 110, 199, 0.08);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

/* Selection */
::selection {
    background: rgba(138, 100, 255, 0.35);
    color: #fff;
}

/* --- 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(100px);
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--orb-1);
    top: -15%;
    right: -10%;
    animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-2);
    bottom: -20%;
    left: -10%;
    animation: orbFloat2 22s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--orb-3);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-60px, 40px) scale(1.1);
    }

    50% {
        transform: translate(30px, 80px) scale(0.95);
    }

    75% {
        transform: translate(-40px, -30px) scale(1.05);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translateX(-50%) translate(0, 0) scale(1);
    }

    25% {
        transform: translateX(-50%) translate(40px, -50px) scale(1.15);
    }

    50% {
        transform: translateX(-50%) translate(-20px, 30px) scale(0.9);
    }

    75% {
        transform: translateX(-50%) translate(30px, 20px) scale(1.05);
    }
}

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

/* --- Top Navigation Bar --- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideDown 0.8s var(--ease-out-expo) 0.2s forwards;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-icon {
    font-size: 1.35rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoSpin 6s linear infinite;
}

@keyframes logoSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: fadeSlideUp 0.7s var(--ease-out-expo) 0.4s forwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(92, 225, 230, 0.5);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* Title */
.title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.title-line-1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--text-primary);
    animation: titleReveal 0.9s var(--ease-out-expo) 0.6s forwards;
}

.title-line-2 {
    font-size: clamp(3rem, 8vw, 6.2rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 0.9s var(--ease-out-expo) 0.8s forwards;
    padding-bottom: 0.1em;
}

.title-line-3 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--text-primary);
    animation: titleReveal 0.9s var(--ease-out-expo) 1.0s forwards;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Subtitle */
.subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

/* --- Countdown Timer --- */
.countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.4s forwards;
}

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

.countdown-value {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.countdown-value::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(138, 100, 255, 0.05),
            transparent 50%,
            rgba(92, 225, 230, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.countdown-value:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(138, 100, 255, 0.1);
}

.countdown-value:hover::before {
    opacity: 1;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    animation: separatorPulse 1.5s ease-in-out infinite;
}

@keyframes separatorPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

/* --- Email Signup --- */
.signup-wrapper {
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.6s forwards;
}

.signup-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.input-group:focus-within {
    border-color: rgba(138, 100, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(138, 100, 255, 0.08),
        0 8px 40px rgba(138, 100, 255, 0.1);
}

.input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

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

.input-group button {
    padding: 1rem 1.5rem;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.input-group button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-group button:hover {
    opacity: 0.92;
}

.input-group button:hover::before {
    opacity: 1;
}

.input-group button:active {
    transform: scale(0.97);
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease-spring);
}

.input-group button:hover .btn-icon {
    transform: translateX(3px);
}

.form-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Success message */
.success-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(92, 225, 230, 0.06);
    border: 1px solid rgba(92, 225, 230, 0.15);
    border-radius: 14px;
    color: var(--accent-2);
    font-size: 0.9rem;
    font-weight: 500;
    animation: successPop 0.5s var(--ease-spring);
}

.success-message.visible {
    display: flex;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent-2);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.8s forwards;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease-spring);
}

.social-link:hover {
    background: var(--surface-hover);
    border-color: var(--border-glow);
    color: var(--accent-1);
    box-shadow: 0 0 25px rgba(138, 100, 255, 0.12);
    transform: translateY(-3px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 2s forwards;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- Shared Animations --- */
@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Glow line accent across the page --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
    z-index: 10;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 120px;
    background: radial-gradient(ellipse at center top, rgba(138, 100, 255, 0.12), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .title {
        letter-spacing: -1px;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-value {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }

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

    .countdown-separator {
        font-size: 1.4rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 14px;
    }

    .input-group input {
        text-align: center;
    }

    .input-group button {
        justify-content: center;
        border-radius: 0 0 13px 13px;
    }

    .nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .countdown-value {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .countdown-number {
        font-size: 1.35rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
        margin: 0 -0.15rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(138, 100, 255, 0.25);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 100, 255, 0.4);
}