/* ============================================
   SWIFTSEND COMING SOON PAGE
   Premium, dark theme with animated gradients
   ============================================ */

/* CSS Variables for easy theming */
:root {
    --bg-dark: #050810;
    --text-primary: #FFFFFF;
    --text-secondary: #8B9DC3;
    --blue-dark: #1E3A8A;
    --blue-light: #3B82F6;
    --purple-dark: #7C3AED;
    --purple-light: #A78BFA;
    --cyan: #00E5FF;
    --gold: #FFD700;
    --orange: #FF6B35;
    --pink: #FF3CAC;
    --success-green: #00FF88;
    --error-red: #FF4757;

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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
    /* Safe area support for notched phones */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Particle canvas background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated gradient mesh overlay */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
    background:
        radial-gradient(ellipse at 20% 30%, var(--blue-dark) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--purple-dark) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, var(--blue-light) 0%, transparent 80%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.3;
        transform: scale(1.05) rotate(2deg);
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Brand (Logo + Name) */
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 60px rgba(0, 229, 255, 0.6));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Main content */
.content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* Headline */
.headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #00E5FF 25%,
        #FFFFFF 50%,
        #A78BFA 75%,
        #FFFFFF 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(0, 229, 255, 0.5);
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.3));
}

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

/* Subheadline */
.subheadline {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Countdown section */
.countdown-section {
    margin-bottom: 3rem;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: clamp(70px, 12vw, 120px);
    padding: 1rem;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
    transition: transform 0.3s ease;
}

.countdown-value.flip {
    animation: flip 0.6s ease;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-unit {
    font-family: var(--font-sans);
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 500;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--cyan);
    opacity: 0.4;
    margin: 0 -0.5rem;
}

/* Signup section */
.signup-section {
    margin-top: 2rem;
}

.signup-form {
    margin-bottom: 1rem;
}

.form-wrapper {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 280px;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 30px rgba(0, 229, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.email-input:invalid:not(:placeholder-shown) {
    border-color: var(--error-red);
}

.cta-button {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    background: var(--cyan);
    color: #050810;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6), 0 10px 40px rgba(0, 229, 255, 0.3);
    background: #00F5FF;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

.form-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Success message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-green);
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto 1rem;
    animation: slideUp 0.5s ease;
}

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

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

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--success-green);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-green);
}

.success-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.signup-subtext {
    font-family: var(--font-sans);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 4rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.social-link:hover {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
}

/* Fade-in animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* Responsive design - Tablet */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        min-height: 100dvh; /* Use dynamic viewport height for mobile */
    }

    .brand {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }

    .logo {
        height: 50px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1.5rem;
    }

    .subheadline {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
        width: 100%;
    }

    .email-input {
        min-width: 100%;
        width: 100%;
        padding: 1rem 1.25rem;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .signup-subtext {
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }

    .social-links {
        margin-top: 3rem;
        gap: 0.75rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Responsive design - Mobile */
@media (max-width: 480px) {
    .container {
        padding: 1.25rem;
        justify-content: center;
    }

    .brand {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .logo {
        height: 55px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .headline {
        font-size: clamp(2rem, 11vw, 3rem);
        margin-bottom: 1.25rem;
    }

    .subheadline {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .signup-section {
        margin-top: 1rem;
    }

    .email-input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.9rem 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    .social-links {
        margin-top: 2.5rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

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

/* Responsive design - Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }

    .brand {
        margin-bottom: 1.5rem;
    }

    .logo {
        height: 48px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .headline {
        font-size: 1.75rem;
    }

    .subheadline {
        font-size: 0.95rem;
    }

    .email-input,
    .cta-button {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem 2rem;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .brand {
        margin-bottom: 1.5rem;
    }

    .headline {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .subheadline {
        margin-bottom: 1.5rem;
    }

    .social-links {
        margin-top: 2rem;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .email-input {
        border-width: 3px;
    }

    .cta-button {
        border: 2px solid var(--cyan);
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}
