/* ============================================
   NEXORYA — Landing CRM Construction
   Dedicated landing CSS. Built fresh from tokens
   for B2B focus (Linear / Stripe / Vercel sub-pages style).
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  --nx-night: #0a0a14;
  --nx-ink: #071827;
  --nx-ink-2: #0b1b2e;
  --nx-violet: #7a26fb;
  --nx-purple: #8b5cf6;
  --nx-cyan: #06b6d4;
  --nx-lime: #c8fd83;
  --nx-pink: #f2c3d4;
  --nx-yellow: #e8e25c;
  --nx-cream: #f7f7f9;
  --nx-line: rgba(7,24,39,0.10);
  --nx-line-dark: rgba(255,255,255,0.08);

  --grad-accent: linear-gradient(135deg, #7a26fb 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(122,38,251,0.18) 0%, rgba(6,182,212,0.14) 100%);

  --font-heading: 'Anton', 'Geist', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-accent: 'Varela Round', 'Geist', sans-serif;

  --container: 1200px;
  --container-pad: 24px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 2px rgba(7,24,39,0.06), 0 1px 3px rgba(7,24,39,0.04);
  --shadow-md: 0 4px 12px rgba(7,24,39,0.08), 0 2px 4px rgba(7,24,39,0.04);
  --shadow-lg: 0 24px 60px -16px rgba(7,24,39,0.18);
  --shadow-glow: 0 14px 40px -10px rgba(122,38,251,0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset + Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--nx-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--nx-violet); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 96px 0;
}
.section--lg { padding: 120px 0; }
.section--sm { padding: 64px 0; }

.section--dark {
  background: var(--nx-night);
  color: rgba(255,255,255,0.92);
}
.section--cream {
  background: var(--nx-cream);
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--lg { padding: 72px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); /* 36-56px */
  line-height: 1.05;
}
.h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem); /* 30-40px */
  line-height: 1.08;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem); /* 20-24px */
  line-height: 1.2;
}
p { margin: 0 0 16px; }
.lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem); /* 16-18px */
  line-height: 1.6;
  color: rgba(7,24,39,0.72);
  max-width: 56ch;
}
.section--dark .lead { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nx-violet);
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--nx-lime); }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 18px 48px -10px rgba(122,38,251,0.55); }
.btn--ghost {
  color: var(--nx-ink);
  background: transparent;
  border-color: rgba(7,24,39,0.18);
}
.btn--ghost:hover { background: rgba(7,24,39,0.04); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.20); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,0.06); }

.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 68px;
  background: rgba(10,10,20,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__brand img { height: 24px; width: auto; }
.nav__brand-text { line-height: 1; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__cta { display: inline-flex; }
@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--nx-night);
  color: #fff;
  padding: 140px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 1400px;
  height: 720px;
  background:
    radial-gradient(circle at 30% 30%, rgba(122,38,251,0.28) 0%, transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(6,182,212,0.18) 0%, transparent 55%);
  filter: blur(60px);
  opacity: 0.85;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero__kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nx-lime);
  box-shadow: 0 0 0 4px rgba(200,253,131,0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.75rem); /* 38-60px */
  line-height: 1.05;
  color: #fff;
  margin: 0 0 24px;
  font-weight: 400;
}
.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem); /* 16-19px */
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 auto 36px;
  max-width: 640px;
}
.hero__ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.hero__trust-text {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__trust-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.hero__trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 36px;
  opacity: 0.7;
}
.hero__trust-logos img {
  height: 24px;
  width: auto;
  max-width: 110px;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity .2s var(--ease);
}
.hero__trust-logos img:hover { opacity: 1; }

/* ---------- Problem section ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 880px) { .problem__grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(122,38,251,0.25);
}
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--nx-violet);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-transform: none;
  margin: 0 0 8px;
  color: var(--nx-ink);
}
.card p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(7,24,39,0.68);
  margin: 0;
}

/* dark variant */
.section--dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.section--dark .card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,253,131,0.25);
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.5);
}
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255,255,255,0.72); }
.section--dark .card__icon {
  background: linear-gradient(135deg, rgba(122,38,251,0.22), rgba(6,182,212,0.18));
  color: var(--nx-lime);
}

/* ---------- Solution ---------- */
.solution__head { text-align: center; max-width: 720px; margin: 0 auto; }
.solution__head .lead { margin: 0 auto; }
.solution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 980px) { .solution__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .solution__grid { grid-template-columns: 1fr; } }

/* ---------- Advantages ---------- */
.adv__list {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.adv__item {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 96px;
  position: relative;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.adv__item:hover {
  border-color: rgba(122,38,251,0.25);
  box-shadow: var(--shadow-md);
}
.adv__num {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0;
  box-shadow: var(--shadow-glow);
}
.adv__item h3 {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  text-transform: none;
  margin: 0 0 8px;
  color: var(--nx-ink);
}
.adv__item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(7,24,39,0.7);
  margin: 0;
}
@media (max-width: 600px) {
  .adv__item { padding: 76px 22px 24px; }
  .adv__num { top: 22px; left: 22px; width: 42px; height: 42px; font-size: 18px; }
}

/* Mini compare table */
.compare {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 14px;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  overflow: hidden;
}
.compare__cell {
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--nx-line);
}
.compare__cell:nth-child(3n) { border-right: none; }
.compare__cell:nth-child(-n+3) {
  background: rgba(7,24,39,0.04);
  font-weight: 600;
  color: var(--nx-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare__cell:nth-last-child(-n+3) { border-bottom: none; }
.compare__cell.is-good { color: var(--nx-violet); font-weight: 600; }

/* ---------- Process ---------- */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,253,131,0.35), rgba(122,38,251,0.35), transparent);
}
.process__step { text-align: center; position: relative; }
.process__step-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--nx-night);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--nx-lime);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  position: relative;
  z-index: 2;
}
.process__step h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  margin: 0 0 6px;
  color: #fff;
}
.process__step p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
  margin: 0;
}
@media (max-width: 880px) {
  .process__timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .process__timeline::before { display: none; }
  .process__step { text-align: left; padding-left: 64px; position: relative; }
  .process__step-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Clients ---------- */
.clients__head { text-align: center; max-width: 640px; margin: 0 auto; }
.clients__head .lead { margin: 0 auto; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
  align-items: center;
}
@media (max-width: 880px) { .clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }
.clients__item {
  background: #fff;
  border: 1px solid var(--nx-line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.clients__item:hover {
  border-color: rgba(122,38,251,0.3);
  transform: translateY(-2px);
}
.clients__item img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.clients__item:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------- FAQ ---------- */
.faq__list {
  margin-top: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq__item {
  border-bottom: 1px solid var(--nx-line);
}
.faq__item:first-child { border-top: 1px solid var(--nx-line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--nx-ink);
  cursor: pointer;
}
.faq__q-icon {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(122,38,251,0.10);
  color: var(--nx-violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform .25s var(--ease), background .2s var(--ease);
}
.faq__item[open] .faq__q-icon {
  transform: rotate(45deg);
  background: var(--nx-violet);
  color: #fff;
}
.faq__a {
  padding: 0 4px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(7,24,39,0.72);
  max-width: 64ch;
}

/* ---------- CTA Final + Form ---------- */
.cta {
  background: var(--nx-night);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(122,38,251,0.22) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .cta__grid { grid-template-columns: 1fr; gap: 40px; }
}
.cta__copy h2 { color: #fff; }
.cta__copy .lead { color: rgba(255,255,255,0.78); max-width: 46ch; }
.cta__points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.cta__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
}
.cta__points svg {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--nx-lime);
  margin-top: 2px;
}

.form {
  background: #ffffff;
  color: var(--nx-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form__row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.form__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row--2 { grid-template-columns: 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(7,24,39,0.78);
  letter-spacing: 0.01em;
}
.form__label .req { color: var(--nx-violet); margin-left: 2px; }
.form__input, .form__select, .form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--nx-ink);
  background: #fbfbfc;
  border: 1px solid rgba(7,24,39,0.14);
  border-radius: 10px;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--nx-violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122,38,251,0.12);
}
.form__textarea { min-height: 110px; resize: vertical; }
.form__submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.form__notice {
  font-size: 13px;
  color: rgba(7,24,39,0.6);
}
.form__status {
  font-size: 13px;
  color: rgba(7,24,39,0.72);
  margin-top: 8px;
  min-height: 18px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--nx-night);
  color: rgba(255,255,255,0.62);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer__logo { height: 22px; width: auto; }
.footer__brand p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.6); margin: 0; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer__bottom img { height: 14px; width: auto; vertical-align: middle; margin-left: 6px; opacity: 0.85; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
