/* OpenVista branded landing page for mailing.openvista.ma (served by nginx) */

@font-face {
  font-family: 'Abel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/branding/fonts/abel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Abel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: #e6edf9;
  background-color: #0b1526;
  background-image:
    linear-gradient(180deg, #0b1526 0%, #0f172a 55%, #0d1a31 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ambient brand glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.glow-a {
  width: 720px;
  height: 720px;
  top: -330px;
  left: 50%;
  margin-left: -360px;
  background: radial-gradient(circle, rgba(34, 122, 253, 0.30) 0%, rgba(34, 122, 253, 0) 68%);
}
.glow-b {
  width: 560px;
  height: 560px;
  bottom: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(2, 85, 209, 0.35) 0%, rgba(2, 85, 209, 0) 68%);
}

/* dotted texture */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 18%, rgba(255, 255, 255, 0.16), transparent 100%),
    radial-gradient(1px 1px at 30% 62%, rgba(255, 255, 255, 0.10), transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 28%, rgba(255, 255, 255, 0.12), transparent 100%),
    radial-gradient(1px 1px at 84% 70%, rgba(255, 255, 255, 0.10), transparent 100%),
    radial-gradient(1.2px 1.2px at 44% 86%, rgba(255, 255, 255, 0.08), transparent 100%),
    radial-gradient(1px 1px at 92% 12%, rgba(255, 255, 255, 0.10), transparent 100%);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 34px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.brand img {
  display: block;
  height: auto;
}
.admin-link {
  color: #aebcd8;
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: 0.6px;
  padding: 9px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.admin-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px 60px 22px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.kicker {
  margin: 0 0 18px 0;
  font-size: 0.86rem;
  letter-spacing: 3.2px;
  color: #6f9ff0;
  text-transform: uppercase;
}
.kicker::before,
.kicker::after {
  content: '—';
  color: #2a6fe0;
  margin: 0 10px;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 20px 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-wrap: balance;
}

.lead {
  margin: 0 auto 34px auto;
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: #b7c6e0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 44px;
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 13px;
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2a7ffd 0%, #227afd 45%, #1c66f5 100%);
  box-shadow: 0 16px 34px -12px rgba(34, 122, 253, 0.75);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px -12px rgba(34, 122, 253, 0.85);
  background: linear-gradient(135deg, #1c6af8 0%, #1b63f0 45%, #0255d1 100%);
}
.btn-ghost {
  color: #dfe8f7;
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #93a7c9;
  font-size: 1.02rem;
  letter-spacing: 0.4px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #227afd;
  box-shadow: 0 0 12px rgba(34, 122, 253, 0.9);
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 22px 30px 22px;
  color: #64748b;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
}
.foot a {
  color: #93a7c9;
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot .sep {
  color: #33415e;
}
.foot .powered a {
  color: #6f9ff0;
}

@media (max-width: 640px) {
  .topbar {
    padding: 16px 18px;
    flex-direction: column;
    gap: 12px;
  }
  .brand img {
    width: 132px;
  }
  .hero {
    padding-top: 26px;
    text-align: center;
  }
  .actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
