/* ==========================================================================
   MXNPro — light, Vercel-inspired theme. Pure CSS, no JavaScript.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --fg: #0a0a0a;
  --fg-muted: #666666;
  --fg-subtle: #8f8f8f;
  --border: #eaeaea;
  --border-strong: #d4d4d4;
  --accent-1: #0070f3;
  --accent-2: #7928ca;
  --accent-3: #ff0080;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.08);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.logo__svg {
  display: block;
  height: 18px;
  width: auto;
}
.logo--small .logo__svg { height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--dark { background: var(--fg); color: #fff; }
.btn--dark:hover { background: #383838; }
.btn--light { background: var(--bg); color: var(--fg); border-color: var(--border-strong); }
.btn--light:hover { background: var(--bg-muted); border-color: var(--fg-subtle); }
.btn:focus-visible,
.nav__links a:focus-visible,
.footer__links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 24px;
}
.nav__links a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 128px;
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 720px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 180deg at 50% 50%, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  filter: blur(110px);
  opacity: 0.16;
  border-radius: 50%;
}
.hero__content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
  box-shadow: var(--shadow);
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #000 30%, #555 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero__lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--fg-muted);
  line-height: 1.55;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head { max-width: 720px; }
.section__head--center { margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.section__title {
  margin-top: 14px;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.section__lead {
  margin-top: 20px;
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.feature {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--border);
  transition: background-color .2s ease;
}
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-muted); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg);
}
.feature h3 {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 15px;
}

/* ---------- Reviews ---------- */
.reviews {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.review:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.review--wide { grid-column: span 3; }
.review--wide blockquote { font-size: 20px; letter-spacing: -0.01em; }
.review blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}
.review:nth-child(2) .avatar { background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.review:nth-child(3) .avatar { background: linear-gradient(135deg, #00b4d8, var(--accent-1)); }
.review:nth-child(4) .avatar { background: linear-gradient(135deg, #f5a623, var(--accent-3)); }
.review__name { font-size: 14px; font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(121, 40, 202, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 120% at 0% 100%, rgba(0, 112, 243, 0.07), transparent 60%),
    var(--bg);
}
.cta__title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.cta__text { margin-top: 8px; color: var(--fg-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 14px; color: var(--fg-subtle); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--fg-muted); transition: color .15s ease; }
.footer__links a:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr 1fr; }
  .review--wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav__links { display: none; }
  .hero { padding: 88px 0 96px; }
  .section { padding: 80px 0; }
  .features { grid-template-columns: 1fr; margin-top: 48px; }
  .feature { border-right: 0; border-bottom: 1px solid var(--border); padding: 28px 24px 32px; }
  .feature:last-child { border-bottom: 0; }
  .reviews { grid-template-columns: 1fr; }
  .review--wide { grid-column: auto; }
  .review--wide blockquote { font-size: 17px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

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

/* ---------- Legal pages ---------- */
.legal { padding: 88px 0 112px; }
.legal__inner { max-width: 760px; }
.legal__title {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.legal__meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-subtle);
}
.legal__toc {
  margin-top: 40px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}
.legal__toc a { font-size: 14px; color: var(--fg-muted); transition: color .15s ease; }
.legal__toc a:hover { color: var(--fg); }
.legal__body { margin-top: 56px; }
.legal__body h2 {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body p,
.legal__body ul { margin: 14px 0 0; color: var(--fg-muted); font-size: 16px; line-height: 1.75; }
.legal__body ul { padding-left: 20px; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.legal__body a:hover { text-decoration-color: var(--fg); }

@media (max-width: 760px) {
  .legal { padding: 64px 0 80px; }
  .legal__toc { grid-template-columns: 1fr; padding: 16px 20px; }
}
