* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #666;
    --accent-color: #0066ff;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-color);
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body.rtl {
    direction: rtl;
}

body.rtl .brand,
body.rtl .tagline,
body.rtl .value-prop,
body.rtl .trust-text {
    font-family: 'Tajawal', sans-serif;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.lang-btn {
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.language-toggle .separator {
    color: var(--border-color);
    font-size: 0.85rem;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, var(--primary-color) 50px, var(--primary-color) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, var(--primary-color) 50px, var(--primary-color) 51px);
    pointer-events: none;
    animation: patternMove 60s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.content {
    text-align: center;
    max-width: 750px;
}

.brand {
    font-family: 'Space Mono', monospace;
    font-size: 7rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    animation: fadeInUp 0.8s ease-out;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tagline {
    font-size: 2rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.tagline span {
    display: inline-block;
}

.rotating-text {
    color: var(--primary-color);
    font-weight: 400;
    min-width: 280px;
    width: 280px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.rotating-text.fade-out {
    animation: fadeOutSlide 0.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.rotating-text.fade-in {
    animation: fadeInSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.value-prop {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    min-height: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.status-text {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 400;
}

/* Notify Section */
.notify-section {
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.notify-form {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 0;
    color: var(--primary-color);
    outline: none;
    transition: all 0.3s ease;
}

body.rtl .email-input {
    border-right: 1px solid var(--border-color);
    border-left: none;
}

.email-input::placeholder {
    color: #999;
}

.email-input:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    background: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.submit-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

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

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

body.rtl .arrow {
    transform: scaleX(-1);
}

body.rtl .submit-btn:hover .arrow {
    transform: scaleX(-1) translateX(-3px);
}

.trust-text {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    z-index: 10;
    animation: fadeIn 0.8s ease-out 0.6s backwards;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.pin-icon {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .separator {
    color: var(--border-color);
}

/* Toast Messages */
.message-toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideDown 0.3s ease-out forwards;
    border: 1px solid;
    background: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-toast.success {
    color: #059669;
    border-color: #059669;
}

.message-toast.error {
    color: #dc2626;
    border-color: #dc2626;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeOutSlide {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        filter: blur(2px);
    }
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes slideDown {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }

    .brand {
        font-size: 4.5rem;
    }
    
    .tagline {
        font-size: 1.6rem;
    }
    
    .rotating-text {
        min-width: 220px;
        width: 220px;
    }

    .value-prop {
        font-size: 0.95rem;
    }

    .notify-form {
        flex-direction: column;
        width: 100%;
    }

    .email-input {
        border: 1px solid var(--border-color);
        border-bottom: none;
    }

    body.rtl .email-input {
        border: 1px solid var(--border-color);
        border-bottom: none;
    }

    .submit-btn {
        justify-content: center;
        border-top: 1px solid var(--primary-color);
    }

    .footer-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .rotating-text {
        min-width: 180px;
        width: 180px;
    }
    
    .brand {
        min-height: 5rem;
    }
    
    .tagline {
        min-height: 2.6rem;
    }

    .value-prop {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links .separator {
        display: none;
    }
}
