/* ============================================
   EONIA — Site of Silence (Coming Soon)
   ============================================ */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Properties */
:root {
    --color-deep: #1a1512;
    --color-walnut: #3D2817;
    --color-cream: #FAF9F6;
    --color-gold: #C4A77D;
    --color-sage: #87A878;
    
    --font-display: 'Playfair Display', serif;
    --font-hebrew: 'Heebo', sans-serif;
    --font-latin: 'Inter', sans-serif;
    
    --transition-slow: 2s ease-in-out;
    --transition-medium: 0.6s ease-out;
}

/* Base */
html {
    font-size: 16px;
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-hebrew);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-cream);
    background: var(--color-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* English override */
[lang="en"] body {
    font-family: var(--font-latin);
}

/* Breathing Background Animation */
.breath-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at 50% 50%,
        var(--color-walnut) 0%,
        var(--color-deep) 70%
    );
    animation: breathe 8s var(--transition-slow) infinite;
    opacity: 0.6;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Main Container */
.silence {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.logo {
    margin-bottom: 1.5rem;
    color: var(--color-cream);
}

.logo svg {
    width: 200px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

/* Tagline */
.tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Divider */
.divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

/* Coming Soon Text */
.soon {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 3rem;
    font-variant-numeric: tabular-nums;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1;
    color: var(--color-gold);
}

.label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0.5;
    margin-top: 0.5rem;
}

.separator {
    font-family: var(--font-display);
    font-size: 2rem;
    opacity: 0.3;
    align-self: flex-start;
    padding-top: 0.5rem;
}

/* Email Form */
.whisper-form {
    margin-bottom: 3rem;
}

.input-wrap {
    display: flex;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto 1rem;
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(250, 249, 246, 0.2);
    border-radius: 100px;
    background: rgba(250, 249, 246, 0.05);
    color: var(--color-cream);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-medium);
}

input[type="email"]::placeholder {
    color: rgba(250, 249, 246, 0.4);
}

input[type="email"]:focus {
    border-color: var(--color-gold);
    background: rgba(250, 249, 246, 0.08);
}

.submit {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    flex-shrink: 0;
}

.submit:hover {
    background: var(--color-cream);
    transform: scale(1.05);
}

.submit svg {
    transform: rotate(-45deg);
}

/* RTL arrow correction */
[dir="rtl"] .submit svg {
    transform: rotate(0deg);
}

.form-hint {
    font-size: 0.75rem;
    opacity: 0.4;
    margin: 0;
}

.success {
    font-size: 0.875rem;
    color: var(--color-sage);
    margin-top: 1rem;
    min-height: 1.5em;
}

/* Language Navigation */
.lang-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.875rem;
    opacity: 0.5;
}

.lang-nav a {
    opacity: 0.5;
    transition: opacity var(--transition-medium);
}

.lang-nav a:hover {
    opacity: 1;
}

.lang-nav .current {
    opacity: 1;
    border-bottom: 1px solid currentColor;
}

/* Footer */
.quiet-footer {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.3;
}

.location {
    margin-top: 0.25rem;
    letter-spacing: 0.2em;
}

.footer-legal {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity var(--transition-medium);
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-sep {
    opacity: 0.4;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .breath-bg {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .silence {
        padding: 1.5rem;
    }
    
    .countdown {
        gap: 0.25rem;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .separator {
        font-size: 1.5rem;
    }
    
    .input-wrap {
        flex-direction: column;
        align-items: center;
    }
    
    .submit {
        width: 100%;
        border-radius: 100px;
    }
}