@font-face {
  font-family: "Rudaw";
  src: url("fonts/Rudaw-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #111638;
  --navy-mid: #242b5c;
  --navy-deep: #0a0d1a;
  --lime: #c3ff4d;
  --lime-deep: #94d600;
  --cream: #faf9f6;
  --ink: #1f222b;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --danger: #ff6b6b;
  --ok: #c3ff4d;
  --font-en: "Lexend Deca", system-ui, sans-serif;
  --font-ar: "Cairo", "Segoe UI", sans-serif;
  --font-ku: "Rudaw", "Cairo", sans-serif;
  --font: var(--font-en);
  --radius-field: 999px;
  --radius-btn: 999px;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--cream);
  background: var(--navy-deep);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}

body[data-lang="ar"] {
  --font: var(--font-ar);
}

body[data-lang="ku"] {
  --font: var(--font-ku);
}

body[dir="rtl"] .field {
  flex-direction: row-reverse;
}

body[dir="rtl"] .prefix {
  border-right: none;
  border-left: 1px solid var(--line);
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(195, 255, 77, 0.18), transparent 55%),
    radial-gradient(900px 600px at 95% 20%, rgba(36, 43, 92, 0.9), transparent 50%),
    linear-gradient(165deg, #151a42 0%, var(--navy-deep) 48%, #0c1028 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: rgba(195, 255, 77, 0.22);
  top: -8%;
  right: -8%;
}

.orb-b {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  background: rgba(39, 178, 153, 0.12);
  bottom: -18%;
  left: -12%;
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, 3%, 0) scale(1.05); }
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 40px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--lime);
  display: grid;
  place-items: center;
  animation: pop-in 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.logo-wrap img {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-word {
  font-family: var(--font-ku);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.langs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.lang {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.lang:hover {
  color: #fff;
}

.lang.is-active {
  background: var(--lime);
  color: var(--navy);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 6vh, 64px) clamp(20px, 5vw, 48px) 48px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(195, 255, 77, 0.85);
  animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.05s both;
}

.brand {
  margin: 0;
  font-family: var(--font-ku);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 6.5rem);
  line-height: 1.05;
  color: var(--lime);
  text-shadow: 0 12px 40px rgba(195, 255, 77, 0.18);
  animation: rise 0.85s cubic-bezier(0.2, 0.9, 0.2, 1) 0.12s both;
}

.tagline {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) 0.2s both;
}

.waitlist {
  width: min(100%, 520px);
  margin-top: clamp(32px, 6vh, 52px);
  animation: rise 1s cubic-bezier(0.2, 0.9, 0.2, 1) 0.28s both;
}

.field {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: rgba(195, 255, 77, 0.55);
  box-shadow: 0 0 0 4px rgba(195, 255, 77, 0.12);
}

.prefix {
  display: grid;
  place-items: center;
  padding: 0 4px 0 18px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 14px;
  outline: none;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.cta {
  appearance: none;
  border: 0;
  margin: 6px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  background: var(--lime);
  color: var(--navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}

.cta:hover {
  background: #d4ff7a;
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.hint {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.status {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.status.is-ok {
  color: var(--ok);
}

.status.is-err {
  color: var(--danger);
}

.foot {
  padding: 20px clamp(20px, 4vw, 40px) 28px;
  text-align: center;
}

.foot p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

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

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

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 560px) {
  .field {
    flex-wrap: wrap;
    border-radius: 24px;
    padding-bottom: 6px;
  }

  .prefix {
    border-right: none;
    padding-top: 14px;
    align-self: center;
  }

  body[dir="rtl"] .prefix {
    border-left: none;
  }

  .field input {
    flex: 1 1 calc(100% - 48px);
    padding-top: 14px;
    padding-bottom: 8px;
  }

  .cta {
    flex: 1 1 100%;
    margin: 4px 8px 8px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
