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

:root {
  --color-blush: #ddb5ad;
  --color-blush-light: #f0d8d2;
  --color-blush-soft: #f7ece8;
  --color-blush-dark: #c99a90;
  --color-cream: #faf6f3;
  --color-warm: #f3ebe4;
  --color-sand: #e8ddd4;
  --color-gold: #b8946a;
  --color-gold-light: #d4b896;
  --color-gold-dark: #967048;
  --color-charcoal: #3d3530;
  --color-muted: #8a7e76;
  --color-white: #ffffff;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-serif-ar: "Amiri", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-sans-ar: "Tajawal", "Outfit", system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-charcoal);
  background: var(--color-cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.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;
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--color-blush-soft);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--color-gold);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--color-blush-light);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--color-gold);
  border-radius: 2px;
  animation: loaderSlide 1s var(--ease-in-out) infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 181, 173, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body.loaded .cursor-glow { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ── Page layout ── */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ── Background ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    165deg,
    var(--color-cream) 0%,
    var(--color-blush-soft) 35%,
    var(--color-blush-light) 70%,
    var(--color-warm) 100%
  );
  z-index: -5;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(221, 181, 173, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(184, 148, 106, 0.15) 0%, transparent 55%);
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -3;
  will-change: transform;
}

.bg-blob--1 {
  width: 500px;
  height: 500px;
  background: var(--color-blush);
  top: -150px;
  right: -100px;
  opacity: 0.35;
  animation: blobDrift1 18s ease-in-out infinite;
}

.bg-blob--2 {
  width: 420px;
  height: 420px;
  background: var(--color-gold-light);
  bottom: -120px;
  left: -80px;
  opacity: 0.2;
  animation: blobDrift2 22s ease-in-out infinite;
}

.bg-blob--3 {
  width: 300px;
  height: 300px;
  background: var(--color-blush-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  animation: blobPulse 8s ease-in-out infinite;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 25px) scale(1.06); }
  66% { transform: translate(15px, -20px) scale(0.96); }
}

@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.08); }
}

@keyframes blobPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.25; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.35; }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

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

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

body.loaded .reveal {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .reveal[data-delay="1"] { transition-delay: 0.1s; }
body.loaded .reveal[data-delay="2"] { transition-delay: 0.25s; }
body.loaded .reveal[data-delay="3"] { transition-delay: 0.4s; }
body.loaded .reveal[data-delay="4"] { transition-delay: 0.55s; }
body.loaded .reveal[data-delay="5"] { transition-delay: 0.7s; }
body.loaded .reveal[data-delay="6"] { transition-delay: 0.85s; }
body.loaded .reveal[data-delay="7"] { transition-delay: 1s; }

/* ── Header ── */
.header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 2rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--color-gold);
  text-decoration: none;
  overflow: hidden;
}

.logo-text {
  position: relative;
  z-index: 1;
  transition: letter-spacing 0.4s var(--ease-out-expo);
}

.logo:hover .logo-text {
  letter-spacing: 0.12em;
}

.logo-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.logo:hover .logo-shine { left: 150%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  position: relative;
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 148, 106, 0.25);
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  height: calc(100% - 0.5rem);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 0;
  box-shadow: 0 2px 8px rgba(184, 148, 106, 0.3);
}

html[lang="ar"] .lang-switch::before {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 3.75rem;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-charcoal);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.lang-btn[data-lang="ar"] {
  font-family: var(--font-sans-ar);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.lang-btn:not(.active) {
  color: var(--color-charcoal);
}

.lang-btn.active {
  background: transparent;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lang-btn:hover:not(.active) {
  color: var(--color-gold-dark);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(184, 148, 106, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 148, 106, 0.4); }
  50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(184, 148, 106, 0); }
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-monogram {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 85vw);
  height: min(420px, 85vw);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 148, 106, 0.12) 0%, transparent 70%);
  animation: monogramGlow 6s ease-in-out infinite;
}

.monogram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(184, 148, 106, 0.15);
  animation: monogramSpin 40s linear infinite;
}

.monogram-ring::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(221, 181, 173, 0.25);
  animation: monogramSpin 55s linear infinite reverse;
}

.monogram-letter {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 9rem);
  font-weight: 400;
  color: rgba(184, 148, 106, 0.07);
  line-height: 1;
  animation: monogramFloat 8s ease-in-out infinite;
  user-select: none;
}

@keyframes monogramGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes monogramSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes monogramFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Word reveal ── */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(6px);
}

body.loaded .word-reveal {
  animation: wordReveal 0.85s var(--ease-out-expo) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 1.25rem;
}

.title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--color-charcoal);
}

.title-line { display: block; }
.title-line + .title-line {
  margin-top: 0.1em;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.35em;
  width: 100%;
}

.shimmer-text {
  font-style: italic;
  background: linear-gradient(
    120deg,
    var(--color-gold-dark) 0%,
    var(--color-gold-light) 25%,
    var(--color-gold) 50%,
    var(--color-gold-light) 75%,
    var(--color-gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ── Features pills ── */
.features {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

body.loaded .features .feature {
  animation: featurePop 0.7s var(--ease-out-expo) backwards;
}

body.loaded .features .feature:nth-child(1) { animation-delay: 1.05s; }
body.loaded .features .feature:nth-child(2) { animation-delay: 1.18s; }
body.loaded .features .feature:nth-child(3) { animation-delay: 1.31s; }

@keyframes featurePop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, color 0.3s ease;
  cursor: default;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 53, 48, 0.08);
  color: var(--color-charcoal);
}

.feature-icon {
  display: flex;
  color: var(--color-gold);
  transition: transform 0.4s var(--ease-out-expo);
}

.feature-icon svg {
  width: 14px;
  height: 14px;
}

.feature:hover .feature-icon {
  transform: rotate(15deg) scale(1.15);
}

/* ── Form ── */
.form-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notify-form {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 440px;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 24px rgba(61, 53, 48, 0.06);
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.notify-form:focus-within {
  box-shadow: 0 8px 40px rgba(61, 53, 48, 0.1), 0 0 0 2px rgba(184, 148, 106, 0.25);
  transform: translateY(-2px);
}

.form-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(221,181,173,0.4), rgba(184,148,106,0.25), rgba(221,181,173,0.4));
  background-size: 200% 200%;
  animation: glowRotate 6s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.notify-form:focus-within .form-glow { opacity: 1; }

@keyframes glowRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.notify-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-charcoal);
  outline: none;
}

.notify-form input::placeholder {
  color: #b0a59e;
  transition: opacity 0.3s ease;
}

.notify-form input:focus::placeholder { opacity: 0.5; }

.input-ripple {
  position: absolute;
  left: 1.25rem;
  bottom: 0.65rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-blush));
  transition: width 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.notify-form:focus-within .input-ripple {
  width: calc(100% - 9rem);
}

.notify-form button {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.notify-form button:hover {
  box-shadow: 0 6px 20px rgba(184, 148, 106, 0.4);
  transform: scale(1.03);
}

.notify-form button:active { transform: scale(0.97); }

.notify-form button:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-text { position: relative; z-index: 1; }

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70%, 100% { left: -100%; }
  85% { left: 150%; }
}

.form-message {
  min-height: 1.5rem;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--color-gold-dark);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-message.error { color: #b85c5c; }

.form-message.success {
  animation: successPop 0.5s var(--ease-out-expo);
}

@keyframes successPop {
  0% { opacity: 0; transform: scale(0.9) translateY(5px); }
  60% { transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  animation: footerLogoGlow 4s ease-in-out infinite;
}

@keyframes footerLogoGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 24px rgba(184, 148, 106, 0.25); }
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-heart {
  display: inline-block;
  animation: heartBeat 1.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.22); }
  30% { transform: scale(1); }
  45% { transform: scale(1.14); }
  60% { transform: scale(1); }
}

html[dir="rtl"] .footer-tagline {
  font-style: normal;
  letter-spacing: 0;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.35s var(--ease-out-expo);
}

.social a:hover {
  color: var(--color-charcoal);
  transform: translateY(-2px);
}

.social a span { position: relative; }

.social a span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.social a:hover span::after {
  transform: scaleX(1);
  transform-origin: left;
}

.divider { color: var(--color-sand); }

.copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: #b0a59e;
}

/* ── Confetti ── */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 1.2s var(--ease-out-expo) forwards;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(120px) rotate(720deg) scale(0.3); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow, .particles, .loader, .hero-monogram { display: none; }

  .word-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  body.loaded .features .feature {
    animation: none;
  }
}

@media (max-width: 520px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .notify-form {
    flex-direction: column;
    border-radius: 1.25rem;
    padding: 0.5rem;
  }

  .notify-form button {
    width: 100%;
    border-radius: 0.85rem;
  }

  .notify-form:focus-within .input-ripple {
    width: calc(100% - 2.5rem);
  }

  .hero-monogram {
    opacity: 0.6;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .badge { font-size: 0.65rem; }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Arabic / RTL ── */
html[dir="rtl"] body {
  font-family: var(--font-sans-ar);
}

html[dir="rtl"] .title,
html[dir="rtl"] .footer-logo,
html[dir="rtl"] .loader-logo {
  font-family: var(--font-serif-ar);
  letter-spacing: 0;
}

html[dir="rtl"] .logo {
  letter-spacing: 0.06em;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .badge,
html[dir="rtl"] .feature,
html[dir="rtl"] .social a,
html[dir="rtl"] .notify-form button {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .title {
  line-height: 1.35;
}

html[dir="rtl"] .shimmer-text {
  font-style: normal;
}

html[dir="rtl"] .subtitle {
  line-height: 1.9;
}

html[dir="rtl"] .notify-form input,
html[dir="rtl"] .notify-form button {
  font-family: var(--font-sans-ar);
}

html[dir="rtl"] .feature {
  font-size: 0.82rem;
}

html[dir="rtl"] .social a span::after {
  transform-origin: left;
}

html[dir="rtl"] .social a:hover span::after {
  transform-origin: right;
}

html[dir="rtl"] .logo-shine {
  left: auto;
  right: -100%;
}

html[dir="rtl"] .logo:hover .logo-shine {
  right: 150%;
  left: auto;
}

html[dir="rtl"] .btn-shine {
  left: auto;
  right: -100%;
  animation-name: btnShineRtl;
}

@keyframes btnShineRtl {
  0%, 70%, 100% { right: -100%; }
  85% { right: 150%; }
}

html[dir="rtl"] .input-ripple {
  left: auto;
  right: 1.25rem;
}

html[dir="rtl"] .notify-form:focus-within .input-ripple {
  width: calc(100% - 9rem);
}

html[dir="rtl"] .loader-bar span {
  animation-name: loaderSlideRtl;
}

@keyframes loaderSlideRtl {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-350%); }
}
