/* ============================================================
   GlobalBridge Merch Center — Under Maintenance (Light Theme)
   Brand Colors: Orange #F5941E, Deep Blue #2B5797
   Industry: Global Merchandise Sourcing & Trade
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand palette */
    --gb-orange: #F5941E;
    --gb-orange-light: #FFAD42;
    --gb-orange-dark: #D47A0A;
    --gb-orange-glow: rgba(245, 148, 30, 0.12);
    --gb-blue: #2B5797;
    --gb-blue-light: #3A72BF;
    --gb-blue-dark: #1A3A6B;
    --gb-blue-glow: rgba(43, 87, 151, 0.08);
    --gb-teal: #4AAED9;
    --gb-teal-glow: rgba(74, 174, 217, 0.08);

    /* Light neutral palette */
    --bg-primary: #FAFBFE;
    --bg-secondary: #F0F2F8;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1A2030;
    --text-secondary: rgba(26, 32, 48, 0.6);
    --text-muted: rgba(26, 32, 48, 0.35);
    --border-subtle: rgba(43, 87, 151, 0.1);
    --shadow-soft: rgba(26, 32, 48, 0.06);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 200ms;
    --duration-medium: 400ms;
    --duration-slow: 800ms;
}

/* --- 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;
}

/* Subtle warm gradient base */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(245, 148, 30, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(43, 87, 151, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(74, 174, 217, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

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

/* --- Grain Overlay --- */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- Route Lines (decorative shipping routes) --- */
.route-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

.route-lines svg {
    width: 100%;
    height: 100%;
}

.route {
    fill: none;
    stroke-width: 1;
    stroke-dasharray: 8 12;
    animation: routeFlow 25s linear infinite;
}

.route-1 {
    stroke: var(--gb-orange);
    stroke-dasharray: 12 18;
    animation-duration: 20s;
}

.route-2 {
    stroke: var(--gb-teal);
    stroke-dasharray: 6 14;
    animation-duration: 28s;
    animation-delay: -5s;
}

.route-3 {
    stroke: var(--gb-blue-light);
    stroke-dasharray: 10 16;
    animation-duration: 24s;
    animation-delay: -10s;
}

@keyframes routeFlow {
    to {
        stroke-dashoffset: -200;
    }
}

/* --- Glowing Orbs --- */
.orb {
    position: fixed;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    filter: blur(100px);
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(245, 148, 30, 0.08) 0%, transparent 70%);
    animation-duration: 14s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -8%;
    background: radial-gradient(circle, rgba(43, 87, 151, 0.06) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: -4s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(74, 174, 217, 0.05) 0%, transparent 70%);
    animation-duration: 16s;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.orb-3 {
    animation-name: orbFloat3;
}

@keyframes orbFloat3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
    33% { transform: translateX(-50%) translate(20px, -30px) scale(1.08); }
    66% { transform: translateX(-50%) translate(-15px, 20px) scale(0.92); }
}

/* --- Main Container --- */
.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

/* --- Logo Section --- */
.logo-section {
    animation: fadeInDown 1s var(--ease-out-expo) both;
    animation-delay: 0.2s;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    animation: logoSpin 1.2s var(--ease-out-expo) both;
    animation-delay: 0.4s;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(245, 148, 30, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-brand {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gb-orange);
    line-height: 1.1;
}

.logo-highlight {
    color: var(--gb-blue);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--gb-blue);
    text-transform: uppercase;
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    animation: fadeInUp 1s var(--ease-out-expo) both;
    animation-delay: 0.5s;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px 6px 12px;
    border-radius: 100px;
    background: rgba(245, 148, 30, 0.08);
    border: 1px solid rgba(245, 148, 30, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(245, 148, 30, 0.06);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gb-orange);
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gb-orange);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.4; transform: scale(1.6); }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gb-orange-dark);
    text-transform: uppercase;
}

/* Hero Title */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    line-height: 1.15;
}

.title-line {
    display: block;
}

.title-line-1 {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 0.7s;
}

.title-line-2 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 0.9s;
}

.title-line-2 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--gb-orange), var(--gb-orange-dark), var(--gb-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Description */
.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 1.1s;
}

/* --- Countdown Section --- */
.countdown-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 1.3s;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 72px;
    padding: var(--space-md) var(--space-sm);
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px var(--shadow-soft),
                0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color var(--duration-medium) ease,
                box-shadow var(--duration-medium) ease,
                transform var(--duration-medium) ease;
}

.countdown-item:hover {
    border-color: rgba(245, 148, 30, 0.25);
    box-shadow: 0 8px 32px rgba(245, 148, 30, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.countdown-value {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gb-blue-dark);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.countdown-separator {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gb-orange);
    opacity: 0.6;
    padding-bottom: 18px;
    animation: separatorBlink 1.5s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

/* --- Notify Section --- */
.notify-section {
    width: 100%;
    max-width: 520px;
    text-align: center;
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 1.5s;
}

.notify-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px var(--shadow-soft),
                0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color var(--duration-medium) ease,
                box-shadow var(--duration-medium) ease;
}

.input-group:focus-within {
    border-color: rgba(245, 148, 30, 0.35);
    box-shadow: 0 8px 40px rgba(245, 148, 30, 0.1),
                0 0 0 3px rgba(245, 148, 30, 0.06);
}

#email-input {
    flex: 1;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    min-width: 0;
}

#email-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

#notify-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, var(--gb-orange), var(--gb-orange-dark));
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--duration-medium) var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

#notify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

#notify-btn:hover::before {
    left: 100%;
}

#notify-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(245, 148, 30, 0.35);
    transform: translateX(2px);
}

#notify-btn:active {
    transform: scale(0.97);
}

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

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

.form-feedback {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    min-height: 1.2em;
    transition: all var(--duration-medium) ease;
}

.form-feedback.success {
    color: #2E8B57;
}

.form-feedback.error {
    color: #D93025;
}

/* --- Trust Bar --- */
.trust-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px var(--shadow-soft),
                0 1px 3px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 1.7s;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.trust-number {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--gb-blue);
    font-variant-numeric: tabular-nums;
}

.trust-suffix {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--gb-orange);
}

.trust-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle), transparent);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding-top: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    animation-delay: 1.9s;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.footer-link:hover {
    color: var(--gb-orange);
}

.footer-link svg {
    opacity: 0.5;
    transition: opacity var(--duration-fast) ease;
}

.footer-link:hover svg {
    opacity: 1;
}

.copyright {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.tagline-footer {
    font-style: italic;
    color: var(--gb-blue);
    opacity: 0.5;
    font-size: 0.68rem;
}

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

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

@keyframes logoSpin {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .main-container {
        padding: var(--space-lg) var(--space-md);
        gap: var(--space-lg);
    }

    .logo-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        align-items: center;
    }

    .logo-brand {
        font-size: 1.3rem;
    }

    .countdown-section {
        gap: var(--space-sm);
    }

    .countdown-item {
        min-width: 58px;
        padding: var(--space-sm) var(--space-xs);
    }

    .countdown-separator {
        font-size: 1.2rem;
        padding-bottom: 14px;
    }

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

    #email-input {
        text-align: center;
        padding: 14px 16px;
    }

    #notify-btn {
        justify-content: center;
        padding: 14px 20px;
        border-top: 1px solid var(--border-subtle);
    }

    .trust-bar {
        gap: var(--space-md);
        padding: var(--space-md) var(--space-md);
    }

    .trust-divider {
        height: 30px;
    }
}

@media (max-width: 380px) {
    .countdown-item {
        min-width: 48px;
    }

    .trust-bar {
        gap: var(--space-sm);
        padding: var(--space-md) var(--space-sm);
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(245, 148, 30, 0.2);
    color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(43, 87, 151, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(43, 87, 151, 0.35);
}
