/* ═══════════════════════════════════════════════════════════ */
/*  IONE CENTER — Coming Soon                                  */
/*  Apple-inspired Design System                               */
/* ═══════════════════════════════════════════════════════════ */

:root {
    --ione-red: #E31E24;
    --ione-red-hover: #C8102E;
    --ione-black: #1d1d1f;
    --ione-gray: #6e6e73;
    --ione-light: #f5f5f7;
    --azure: #0071e3;
    --azure-light: #e8f2ff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border: #d2d2d7;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-xl: 0 24px 64px rgba(0,0,0,.16);
    
    --font-ar: 'Cairo', system-ui, sans-serif;
    --font-en: 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Background Blobs (Animated)                                */
/* ═══════════════════════════════════════════════════════════ */

.blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobFloat 20s infinite ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(227,30,36,0.6) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,113,227,0.5) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,45,85,0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.05); }
}

/* ═══════════════════════════════════════════════════════════ */
/*  Container                                                  */
/* ═══════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: 720px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Logo                                                       */
/* ═══════════════════════════════════════════════════════════ */

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    animation: logoFadeIn 1s ease-out;
}

.logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(227,30,36,0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseExpand 3s ease-out infinite;
    pointer-events: none;
}

@keyframes logoFadeIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes pulseExpand {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════ */
/*  Divider                                                    */
/* ═══════════════════════════════════════════════════════════ */

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--ione-red), var(--azure));
    margin: 0 auto 40px;
    border-radius: 2px;
    animation: dividerGrow 1s ease-out 0.3s both;
}

@keyframes dividerGrow {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════ */
/*  Typography                                                 */
/* ═══════════════════════════════════════════════════════════ */

.title {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ione-red) 0%, var(--ione-black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: textFadeUp 0.8s ease-out 0.5s both;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    animation: textFadeUp 0.8s ease-out 0.7s both;
}

.subtitle-en {
    font-family: var(--font-en);
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 400;
    margin-bottom: 48px;
    animation: textFadeUp 0.8s ease-out 0.9s both;
}

@keyframes textFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════ */
/*  Countdown                                                  */
/* ═══════════════════════════════════════════════════════════ */

.countdown {
    direction: ltr;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    animation: textFadeUp 0.8s ease-out 1.1s both;
}

.countdown-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    min-width: 90px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.countdown-number {
    display: block;
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ione-black);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

.countdown-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.4;
    padding-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Subscribe Form                                             */
/* ═══════════════════════════════════════════════════════════ */

.subscribe-form {
    max-width: 500px;
    margin: 0 auto 40px;
    animation: textFadeUp 0.8s ease-out 1.3s both;
}

.input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.input-group:focus-within {
    border-color: var(--ione-red);
    box-shadow: 0 0 0 4px rgba(227,30,36,0.1);
}

.input-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 12px;
    margin-left: 16px;
    flex-shrink: 0;
}

#emailInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-ar);
    font-size: 1rem;
    color: var(--text-primary);
    padding: 12px 8px;
    min-width: 0;
}

#emailInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ione-red);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 24px;
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.subscribe-btn:hover {
    background: var(--ione-red-hover);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(227,30,36,0.3);
}

.subscribe-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.form-message {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: #34C759;
    opacity: 1;
}

.form-message.error {
    color: var(--ione-red);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Contact                                                    */
/* ═══════════════════════════════════════════════════════════ */

.contact-info {
    animation: textFadeUp 0.8s ease-out 1.5s both;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--ione-red);
    background: rgba(227,30,36,0.05);
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Footer                                                     */
/* ═══════════════════════════════════════════════════════════ */

.footer {
    width: 100%;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
    animation: textFadeUp 0.8s ease-out 1.7s both;
}

/* ═══════════════════════════════════════════════════════════ */
/*  Responsive                                                 */
/* ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .container { padding: 30px 16px; }
    .logo { max-width: 240px; }
    .countdown { gap: 4px; }
    .countdown-item { padding: 14px 10px; min-width: 70px; }
    .countdown-number { font-size: 1.75rem; }
    .countdown-label { font-size: 0.75rem; }
    .countdown-separator { display: none; }
    .input-group { flex-direction: column; border-radius: 16px; padding: 8px; }
    .input-icon { display: none; }
    #emailInput { width: 100%; text-align: center; padding: 12px; }
    .subscribe-btn { width: 100%; justify-content: center; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}