/* ============================================
   BUYTITZZ — Coming Soon Page
   Theme: Deep Navy Blue + Vibrant Orange
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --navy-900: #0B1533;
    --navy-800: #111D42;
    --navy-700: #1B2A5E;
    --navy-600: #243874;
    --navy-500: #2E478A;
    --navy-400: #3D5CA8;
    --navy-300: #5A7BC4;
    --navy-200: #8AAADE;
    --navy-100: #B8CFF0;
    --navy-50: #E0EAFC;

    --orange-600: #C45E00;
    --orange-500: #E8740C;
    --orange-400: #F58D2F;
    --orange-300: #FFAA52;
    --orange-200: #FFC47A;
    --orange-100: #FFE0B2;

    --white: #FFFFFF;
    --gray-100: #F5F7FA;
    --gray-200: #E4E8EE;
    --gray-300: #CCD2DC;
    --gray-400: #9AA5B4;
    --gray-500: #6B7785;

    --gradient-bg: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 40%, #162350 70%, var(--navy-700) 100%);
    --gradient-orange: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-400) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(232, 116, 12, 0.15) 0%, transparent 60%);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(232, 116, 12, 0.2);
}

/* ---- 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-body);
    background: var(--gradient-bg);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}

/* ---- Animated Grid Overlay ---- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(90, 123, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 123, 196, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- Floating Particles ---- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
    will-change: transform;
}

@keyframes float {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px) scale(0.5); opacity: 0; }
}

/* ---- Container ---- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* ---- Logo Section ---- */
.logo-section {
    margin-bottom: 32px;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoEntry 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(232, 116, 12, 0.15), rgba(27, 42, 94, 0.3));
    filter: blur(20px);
    animation: logoPulse 4s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3)) brightness(1.15);
    position: relative;
    z-index: 1;
    mix-blend-mode: lighten;
}

@keyframes logoEntry {
    0%   { opacity: 0; transform: scale(0.5) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}

.brand-name {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    animation: fadeInUp 0.8s 0.3s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.brand-buy {
    color: var(--white);
}

.brand-titzz {
    color: var(--orange-500);
    position: relative;
}

.brand-titzz::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-orange);
    border-radius: 2px;
    animation: underlineGrow 1s 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes underlineGrow {
    0%   { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

/* ---- Badge ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(232, 116, 12, 0.1);
    border: 1px solid rgba(232, 116, 12, 0.25);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-300);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s 0.5s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-500);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 116, 12, 0.6); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 8px rgba(232, 116, 12, 0); }
}

/* ---- Hero Text ---- */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.highlight {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: var(--navy-200);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 44px;
    animation: fadeInUp 0.8s 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* ---- Countdown Timer ---- */
.countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 20px;
    min-width: 90px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px 16px 0 0;
}

.countdown-value:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 116, 12, 0.3);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--navy-300);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange-500);
    animation: blink 1s step-end infinite;
    margin-bottom: 24px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.launched-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange-400);
}

/* ---- Subscribe Section ---- */
.subscribe-section {
    width: 100%;
    max-width: 520px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.subscribe-text {
    font-size: 0.95rem;
    color: var(--navy-200);
    margin-bottom: 16px;
    font-weight: 400;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    transition: all 0.4s ease;
}

.subscribe-form.hidden {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--navy-400);
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--orange-400);
}

input[type="email"] {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="email"]::placeholder {
    color: var(--navy-300);
}

input[type="email"]:focus {
    border-color: var(--orange-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(232, 116, 12, 0.15);
}

.btn-notify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient-orange);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.btn-notify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-notify:hover::before {
    left: 100%;
}

.btn-notify:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-notify:hover .btn-arrow {
    transform: translateX(4px);
}

/* ---- Success Message ---- */
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 14px;
    color: #6EE7A0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}

.success-message.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    pointer-events: auto;
    margin-top: 16px;
}

.success-message svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #6EE7A0;
}

/* ---- Social Links ---- */
.social-links {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--navy-200);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: rgba(232, 116, 12, 0.15);
    border-color: rgba(232, 116, 12, 0.3);
    color: var(--orange-400);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 116, 12, 0.15);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--navy-400);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Reveal animation for scroll observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets & Small Desktops */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px 32px;
    }

    .logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .brand-name {
        font-size: 2.4rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        min-width: 64px;
    }

    .countdown-value {
        font-size: 2rem;
        padding: 10px 14px;
        min-width: 70px;
        border-radius: 12px;
    }

    .countdown-separator {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .btn-notify {
        justify-content: center;
        padding: 16px 24px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 32px 16px 24px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .countdown {
        gap: 6px;
        margin-bottom: 36px;
    }

    .countdown-item {
        min-width: 56px;
    }

    .countdown-value {
        font-size: 1.6rem;
        padding: 8px 10px;
        min-width: 58px;
        border-radius: 10px;
    }

    .countdown-separator {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    input[type="email"] {
        padding: 14px 14px 14px 44px;
        font-size: 0.9rem;
    }

    .btn-notify {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }

    .brand-name {
        font-size: 1.7rem;
    }

    .countdown-value {
        font-size: 1.3rem;
        padding: 6px 8px;
        min-width: 48px;
    }

    .countdown-separator {
        font-size: 1.1rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        padding-top: 80px;
    }

    .logo-wrapper {
        width: 160px;
        height: 160px;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle {
        display: none;
    }

    .grid-overlay {
        animation: none;
    }
}
