/* ============================================================
   SimpliMEI — Landing Page Stylesheet
   Dark mode, modern SaaS aesthetic
   Fonts: Syne (display) + DM Sans (body)
============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --bg:           #0a0b0e;
  --bg-elevated:  #0f1117;
  --bg-card:      #13151c;
  --border:       rgba(255,255,255,.07);
  --border-hover: rgba(255,255,255,.14);

  /* Brand */
  --accent:       #00e5a0;
  --accent-dim:   #00e5a020;
  --accent-glow:  #00e5a040;

  /* Text */
  --text-primary:   #f0f2f8;
  --text-secondary: #8b92a8;
  --text-muted:     #4b5168;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-gap: clamp(80px, 12vw, 140px);
  --container:   1180px;
  --radius:      12px;
  --radius-lg:   20px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3 { font-family: var(--font-display); line-height: 1.15; }

/* ── HEADER ── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 18px;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(10,11,14,.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
  padding: .45rem 1.1rem !important;
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(0,229,160,.25) !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: background .2s, border-color .2s !important;
}
.nav__cta:hover {
  background: var(--accent-glow) !important;
  border-color: rgba(0,229,160,.5) !important;
}

/* hamburger – hidden on desktop */
.nav__hamburger { display: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .22s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: #00ffb2;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Dot grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Glow blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .4;
}
.hero__glow--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #00e5a015, transparent 70%);
  top: -200px; left: -200px;
}
.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0057ff08, transparent 70%);
  bottom: -100px; right: -100px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem;
  background: rgba(0,229,160,.06);
  border: 1px solid rgba(0,229,160,.18);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 2rem;
  animation: fadeUp .6s var(--ease) both;
}

.badge__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s .1s var(--ease) both;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), #00b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeUp .6s .2s var(--ease) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  animation: fadeUp .6s .3s var(--ease) both;
}

.hero__disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  animation: fadeUp .6s .4s var(--ease) both;
}

/* Stat cards */
.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 5rem;
}

.stat-card {
  flex: 1 1 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  animation: fadeUp .6s calc(.5s + var(--delay)) var(--ease) both;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-card__label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── SECTION COMMONS ── */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ── BENEFITS ── */
.benefits {
  padding-block: var(--section-gap);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.benefit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}

.benefit-card--featured {
  border-color: rgba(0,229,160,.2);
  background: linear-gradient(135deg, rgba(0,229,160,.05), var(--bg-card));
  grid-column: span 2;
}

.benefit-card--accent {
  border-color: rgba(0,229,160,.15);
}

.benefit-card__icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}

.benefit-card p {
  font-size: .95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how {
  padding-block: var(--section-gap);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 220px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .2s, transform .2s;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .25;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.05em;
}

.step__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.step__content p {
  font-size: .95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
}

.step__connector {
  flex: 0 0 2rem;
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent-dim), var(--border));
}

/* ── CTA SECTION ── */
.cta-section {
  padding-block: var(--section-gap);
}

.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(0,229,160,.2);
  border-radius: calc(var(--radius-lg) * 1.5);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.cta-box__glow {
  position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: .75rem 0 1rem;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-form__group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.cta-form__input {
  flex: 1 1 220px;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.cta-form__input:focus { border-color: rgba(0,229,160,.4); }
.cta-form__input::placeholder { color: var(--text-muted); }

.cta-form__msg {
  margin-top: .75rem;
  font-size: 13px;
  color: var(--accent);
  min-height: 1.2em;
}

.cta-disclaimer {
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer__inner {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.footer__brand .nav__logo { margin-bottom: .75rem; }
.footer__brand p {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}

.footer__col a {
  font-size: .9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: rgba(10,11,14,.97);
    backdrop-filter: blur(16px);
    padding: 2rem;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .nav__links.open a { font-size: 1.1rem; }

  .nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .25s;
  }

  .benefit-card--featured { grid-column: span 1; }

  .steps { flex-direction: column; }
  .step__connector {
    width: 1px;
    height: 2rem;
    align-self: flex-start;
    margin-left: 2rem;
    background: linear-gradient(180deg, var(--border), var(--accent-dim), var(--border));
  }

  .hero__stats { margin-top: 3rem; }
}
