/* ── NexaMail landing page ─────────────────────────────── */
:root {
  --nm-dark:    #0f172a;
  --nm-dark2:   #1e293b;
  --nm-primary: #4f46e5;
  --nm-primary-h: #6366f1;
  --nm-border:  #e2e8f0;
  --nm-text:    #0f172a;
  --nm-muted:   #64748b;
  --nm-gray-bg: #f8fafc;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nm-text);
  line-height: 1.6;
  margin: 0;
}

/* ── Nav ──────────────────────────────────────────── */
.nm-nav {
  background: var(--nm-dark);
  padding: .875rem 0;
}
.nm-nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nm-logo {
  color: #fff; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; letter-spacing: -.4px;
}
.nm-logo:hover { color: #a5b4fc; text-decoration: none; }
.nm-nav-links { display: flex; align-items: center; }

/* ── Hero ─────────────────────────────────────────── */
.nm-hero {
  background: var(--nm-dark);
  color: #fff;
  padding: 5.5rem 0 6.5rem;
  position: relative; overflow: hidden;
}
.nm-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(79,70,229,.3) 0%, transparent 60%);
  pointer-events: none;
}
.nm-tag {
  display: inline-block;
  background: rgba(99,102,241,.18);
  color: #a5b4fc;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 20px;
  border: 1px solid rgba(165,180,252,.22);
  margin-bottom: 1.5rem;
}
.nm-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.18;
  margin-bottom: 1.25rem; letter-spacing: -.5px;
}
.nm-hero-sub {
  font-size: 1.1rem; color: #94a3b8;
  line-height: 1.75; max-width: 520px; margin: 0 auto;
}

/* ── Buttons ──────────────────────────────────────── */
.nm-btn-cta {
  display: inline-block;
  background: var(--nm-primary); color: #fff;
  padding: .75rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; border: none;
  transition: background .15s, transform .1s;
}
.nm-btn-cta:hover {
  background: var(--nm-primary-h); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}
.nm-btn-ghost {
  display: inline-block;
  background: transparent; color: #fff;
  padding: .75rem 2rem; border-radius: 8px;
  font-weight: 500; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.22);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.nm-btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
  color: #fff; text-decoration: none;
}

/* ── Sections ─────────────────────────────────────── */
.nm-section { padding: 5rem 0; }
.nm-section--gray { background: var(--nm-gray-bg); }
.nm-section-title {
  font-size: 1.875rem; font-weight: 800;
  color: var(--nm-text); margin-bottom: .5rem;
  letter-spacing: -.3px;
}
.nm-section-sub {
  color: var(--nm-muted); font-size: 1rem; line-height: 1.7;
}

/* ── Feature cards ────────────────────────────────── */
.nm-card {
  background: #fff; border: 1px solid var(--nm-border);
  border-radius: 12px; padding: 2rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .2s, border-color .2s;
}
.nm-card:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,.1);
  border-color: #c7d2fe;
}
.nm-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(79,70,229,.08);
  color: var(--nm-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.nm-card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--nm-text); margin-bottom: .5rem;
}
.nm-card-text {
  color: var(--nm-muted); font-size: .95rem;
  line-height: 1.65; margin: 0;
}
.nm-card-text code {
  background: #eef2ff; color: var(--nm-primary);
  padding: .1em .35em; border-radius: 4px;
  font-size: .88em;
}

/* ── Rules ────────────────────────────────────────── */
.nm-rules { display: flex; flex-direction: column; gap: .875rem; }
.nm-rule {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--nm-gray-bg); border: 1px solid var(--nm-border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
}
.nm-rule--danger {
  background: #fff7f7; border-color: #fecaca;
}
.nm-rule--danger .nm-rule-icon { color: #ef4444; }
.nm-rule--danger strong { color: #b91c1c; }
.nm-rule-icon {
  flex-shrink: 0; margin-top: .15rem;
  color: var(--nm-primary);
}
.nm-rule strong {
  display: block; font-size: .975rem; font-weight: 700;
  margin-bottom: .3rem; color: var(--nm-text);
}
.nm-rule p {
  margin: 0; font-size: .9rem; color: var(--nm-muted); line-height: 1.65;
}

/* ── Steps ────────────────────────────────────────── */
.nm-step { padding: 1rem; }
.nm-step-num {
  font-size: 2.5rem; font-weight: 900; color: var(--nm-primary);
  opacity: .15; line-height: 1; margin-bottom: .75rem;
  letter-spacing: -.05em;
}
.nm-step-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: .5rem; color: var(--nm-text);
}
.nm-step-text {
  color: var(--nm-muted); font-size: .95rem; line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────── */
.nm-footer {
  background: var(--nm-dark); color: #94a3b8;
  padding: 2rem 0;
}
.nm-footer-logo {
  color: #fff; font-weight: 800; font-size: 1rem;
}
.nm-footer-text { font-size: .875rem; }
.nm-footer-links { display: flex; gap: 1.5rem; }
.nm-footer-links a {
  color: #64748b; text-decoration: none; font-size: .875rem;
  transition: color .15s;
}
.nm-footer-links a:hover { color: #fff; }

@media (max-width: 576px) {
  .nm-hero { padding: 4rem 0 5rem; }
  .nm-section { padding: 3.5rem 0; }
  .nm-footer .d-flex { flex-direction: column; text-align: center; }
  .nm-footer-links { justify-content: center; }
}
