:root {
  --night: #050811;
  --gold: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.3);
  --emerald: #10b981;
  --rose: #f43f5e;
  --white-10: rgba(255, 255, 255, 0.1);
  --white-5: rgba(255, 255, 255, 0.05);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-25: rgba(255, 255, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  background: var(--night);
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fxmaroc-landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--night);
  padding-bottom: 3rem;
}

.fxmaroc-landing__glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fxmaroc-landing__glows span {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}

.fxmaroc-landing__glows span:nth-child(1) {
  left: -20%;
  top: 10%;
  width: 50vh;
  height: 50vh;
  background: rgba(250, 204, 21, 0.12);
}

.fxmaroc-landing__glows span:nth-child(2) {
  right: -15%;
  bottom: 5%;
  width: 45vh;
  height: 45vh;
  background: rgba(16, 185, 129, 0.12);
}

.fxmaroc-landing__glows span:nth-child(3) {
  left: 50%;
  top: 33%;
  width: 35vh;
  height: 35vh;
  transform: translateX(-50%);
  background: rgba(37, 99, 235, 0.12);
}

.fxmaroc-landing__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 60px 60px;
}

.fxmaroc-landing__chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.6;
}

.fxmaroc-landing__chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.fxmaroc-landing__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fxmaroc-landing__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 48rem;
  padding: 5rem 1.5rem;
  text-align: center;
  animation: fade-in 0.8s ease-out both;
}

.fxmaroc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.fxmaroc-badge svg {
  width: 0.875rem;
  height: 0.875rem;
}

.fxmaroc-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.fxmaroc-logo-wrap__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.2);
  filter: blur(24px);
  transition: opacity 0.3s;
}

.fxmaroc-logo-wrap:hover .fxmaroc-logo-wrap__glow {
  opacity: 0.8;
}

.fxmaroc-logo-wrap__ring {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--white-10);
  background: var(--night);
  padding: 0.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.fxmaroc-logo-wrap__ring img {
  display: block;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

.fxmaroc-logo-wrap__label {
  position: absolute;
  left: 50%;
  bottom: -0.4rem;
  transform: translateX(-50%);
  padding: 0.1rem 0.75rem;
  border: 1px solid var(--white-10);
  border-radius: 999px;
  background: var(--white-5);
  color: var(--white-40);
  font-size: 0.65rem;
  backdrop-filter: blur(8px);
}

.fxmaroc-tagline {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.9);
}

.fxmaroc-headline {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fxmaroc-headline span {
  display: inline;
  background: linear-gradient(to left, #fcd34d, #fef08a, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.fxmaroc-desc {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--white-70);
  line-height: 1.7;
}

.fxmaroc-subdesc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--white-40);
}

.fxmaroc-form {
  width: 100%;
  max-width: 26rem;
  margin: 2rem auto 0;
}

.fxmaroc-form__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  background: var(--white-5);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.fxmaroc-form__field {
  position: relative;
  flex: 1;
}

.fxmaroc-form__field svg {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--white-40);
  pointer-events: none;
}

.fxmaroc-form__field input {
  width: 100%;
  height: 3rem;
  padding-right: 2.5rem;
  padding-left: 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.fxmaroc-form__field input::placeholder {
  color: var(--white-40);
}

.fxmaroc-form__field input:focus {
  box-shadow: inset 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.fxmaroc-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 3rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(to left, #f59e0b, #fde047);
  color: #0f172a;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2);
  transition: transform 0.15s;
}

.fxmaroc-form__submit:hover {
  transform: scale(1.02);
}

.fxmaroc-form__submit:active {
  transform: scale(0.98);
}

.fxmaroc-form__submit svg {
  width: 0.9rem;
  height: 0.9rem;
}

.fxmaroc-form__note {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--white-30);
}

.fxmaroc-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.fxmaroc-message--success {
  color: #34d399;
}

.fxmaroc-message--error {
  color: #fb7185;
}

.fxmaroc-message svg {
  width: 1rem;
  height: 1rem;
}

.fxmaroc-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--white-60);
  text-decoration: none;
  transition: color 0.2s;
}

.fxmaroc-contact:hover {
  color: #fde68a;
}

.fxmaroc-contact svg {
  width: 1rem;
  height: 1rem;
}

.fxmaroc-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.fxmaroc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--white-10);
  border-radius: 999px;
  background: var(--white-5);
  color: var(--white-70);
  font-size: 0.78rem;
  backdrop-filter: blur(6px);
}

.fxmaroc-chip svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--gold);
}

.fxmaroc-disclaimer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--white-25);
}

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

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw-line {
  0% { stroke-dashoffset: 1200; }
  100% { stroke-dashoffset: 0; }
}

.fxmaroc-chart-line {
  stroke-dasharray: 1200;
  animation: draw-line 3s ease-out forwards;
}

@media (max-width: 640px) {
  .fxmaroc-landing {
    padding-bottom: 3.5rem;
  }

  .fxmaroc-logo-wrap__ring img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .fxmaroc-form__box {
    flex-direction: column;
    padding: 0.5rem;
  }

  .fxmaroc-form__field,
  .fxmaroc-form__submit {
    width: 100%;
  }

  .fxmaroc-disclaimer {
    bottom: 0.5rem;
  }
}
