/* ==========================================================
   Vowora — Coming Soon
   ========================================================== */

:root {
  --ivory: #FAF7F2;
  --cream: #F3EDE3;
  --gold: #C8A96A;
  --gold-deep: #A8884A;
  --gold-soft: rgba(200, 169, 106, 0.18);
  --ink: #2B2B2B;
  --muted: #7A736A;
  --white: #FFFFFF;
  --sage: #A8B09A;
  --sage-deep: #7F8873;
  --sage-soft: rgba(168, 176, 154, 0.28);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(80, 60, 30, 0.25);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* Arabic typography */
html[lang="ar"] {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Background ---------- */
#petals {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.glow-1 { width: 420px; height: 420px; background: var(--sage-soft); top: -120px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow-2 { width: 380px; height: 380px; background: var(--gold-soft); bottom: -140px; right: -100px; animation: drift 22s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.1); }
}

/* ---------- Header ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 5vw, 56px);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 64px; height: auto; display: block; }
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem; font-weight: 500; letter-spacing: .36em;
  color: var(--ink);
}

.lang-btn {
  font-family: "Tajawal", var(--font-body);
  font-size: .9rem; font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--gold-soft);
  border-color: rgba(200, 169, 106, .45);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .3s var(--ease), color .3s var(--ease);
}
html[lang="ar"] .lang-btn { font-family: "Inter", sans-serif; }
.lang-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ---------- Logo ---------- */
.logo-wrap { width: 100%; display: flex; justify-content: center; margin-bottom: 26px; }
.hero-logo { width: min(460px, 88%); height: auto; display: block; }
.logo-fallback { display: none; flex-direction: column; align-items: center; gap: 12px; }
.no-logo .hero-logo { display: none; }
.no-logo .logo-fallback { display: flex; }
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 500; letter-spacing: .32em;
  margin-inline-start: .32em;
}
.tagline {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(.62rem, 2vw, .8rem);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-deep);
}
.tagline i { width: 40px; height: 1px; background: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(24px, 6vh, 64px) 16px 40px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 1rem; }

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  line-height: 1.05;
  margin: 18px 0 20px;
  letter-spacing: -.01em;
}
.title span { display: block; }
.title em {
  display: block;
  font-style: italic;
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #E2CC97, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
html[lang="ar"] .title { line-height: 1.35; }
html[lang="ar"] .title em { font-style: normal; }

@keyframes shimmer { to { background-position: 200% center; } }

.lead {
  max-width: 560px;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  font-weight: 300;
}
html[lang="ar"] .lead { font-weight: 400; font-size: 1.15rem; }

.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 34px 0 30px;
  color: var(--gold);
}
.divider span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { font-style: normal; font-size: .9rem; color: var(--sage-deep); }

/* ---------- Countdown ---------- */
.countdown {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  direction: ltr; /* keep D : H : M : S order in both languages */
}
html[lang="ar"] .countdown { direction: rtl; }

.unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(64px, 17vw, 104px);
  padding: clamp(12px, 2.5vw, 20px) 6px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(200, 169, 106, .28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: inline-block;
}
.num.tick { animation: tick .5s var(--ease); }
@keyframes tick {
  0% { transform: translateY(-6px); opacity: .3; }
  100% { transform: translateY(0); opacity: 1; }
}

.label {
  margin-top: 8px;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ar"] .label { letter-spacing: 0; font-size: .9rem; }

.sep {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--gold);
  padding-top: clamp(14px, 3vw, 22px);
}

.launch {
  margin: 26px 0 30px;
  font-size: .98rem;
  color: var(--muted);
}
.launch strong { color: var(--ink); font-weight: 600; }

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  width: 100%;
  max-width: 480px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(200, 169, 106, .35);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.notify:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft), var(--shadow);
}
.notify.error { border-color: #C0645A; animation: shake .4s; }

@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
}
.notify input::placeholder { color: #A9A197; }

.notify button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit; font-weight: 500; font-size: .95rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
}
.notify button:hover { transform: translateY(-1px); background: var(--ink); box-shadow: 0 10px 22px -10px rgba(43,43,43,.5); }
.notify button:disabled { opacity: .6; cursor: wait; }
.notify button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .notify button svg { transform: scaleX(-1); }

.form-msg {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: .9rem;
  color: var(--gold-deep);
}
.form-msg.err { color: #B4544A; }

/* ---------- Features ---------- */
.features {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  width: 100%;
  margin: 10px auto 40px;
  padding: 0 clamp(16px, 5vw, 40px);
}

.card {
  text-align: center;
  padding: 26px 18px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(200, 169, 106, .2);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: rgba(255, 255, 255, .85); }

.icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sage-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600;
  margin: 0 0 6px;
}
.card p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--muted); }
html[lang="ar"] .card p { font-size: 1rem; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 24px 16px 32px;
  border-top: 1px solid rgba(200, 169, 106, .2);
}
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, .35);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.social a:hover { background: var(--sage); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.social a:hover svg { stroke: var(--white); }
.copy { margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- Launched state ---------- */
.launched .countdown { display: none; }
.launched .launch strong { color: var(--gold-deep); font-size: 1.2rem; }

/* ---------- Reveal on load ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.ready .reveal { animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .topbar { padding: 18px 16px; }
  .brand-name { font-size: 1.05rem; letter-spacing: .28em; }
  .brand-mark { width: 52px; }
  .sep { display: none; }
  .countdown { gap: 8px; width: 100%; }
  .unit { min-width: 0; flex: 1; }
  .notify { flex-direction: column; border-radius: 22px; gap: 6px; }
  .notify input { text-align: center; }
  .notify button { justify-content: center; padding: 14px; }
  .features { gap: 12px; }
  .card { padding: 20px 12px; }
  .card h3 { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}