/* RiteModus marketing site — standalone stylesheet. No framework, no build deps. */

:root {
  --ink-950: #06060a;
  --ink-900: #0a0a0f;
  --ink-850: #0d0d14;
  --ink-800: #101018;
  --ink-700: #16161f;
  --ink-600: #1e1e2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9e9f2;
  --text-dim: #a6a6bb;
  --text-faint: #74748c;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --accent: #c084fc;
  --cyan: #22d3ee;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink-950);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }

::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 17px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-300);
  border: 1px solid var(--line);
  background: rgba(99, 102, 241, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h2.section-title { font-size: clamp(28px, 4vw, 42px); }

/* ---------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 6, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(6, 6, 10, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand-500), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.brand__logo { height: 30px; width: auto; }
.footer .brand__logo { height: 34px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav__links a { transition: color 0.18s ease; }
.nav__links a:hover { color: var(--text); }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 15, 0.98);
  padding: 16px 24px 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(140deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 34px rgba(79, 70, 229, 0.5); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn--lg { padding: 14px 26px; font-size: 15.5px; border-radius: 13px; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 780px;
  pointer-events: none;
  background:
    radial-gradient(46% 46% at 22% 34%, rgba(99, 102, 241, 0.34) 0%, transparent 70%),
    radial-gradient(38% 42% at 78% 26%, rgba(192, 132, 252, 0.24) 0%, transparent 72%),
    radial-gradient(34% 36% at 52% 70%, rgba(34, 211, 238, 0.16) 0%, transparent 74%);
  filter: blur(20px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 26%, #000 30%, transparent 100%);
}

.hero__inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-300), var(--accent) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note { font-size: 13.5px; color: var(--text-faint); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}
.stat {
  background: rgba(13, 13, 20, 0.9);
  padding: 26px 20px;
  text-align: center;
}
.stat__num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--brand-300), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 6px;
}

/* ---------------------------------------------------------------- cards */

.card {
  background: linear-gradient(180deg, rgba(22, 22, 31, 0.9), rgba(13, 13, 20, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.24);
  color: var(--brand-300);
  margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------------------------------------------------------------- agents */

.agent-group { margin-bottom: 44px; }
.agent-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.agent-group__head h3 { font-size: 15px; letter-spacing: 0.02em; }
.agent-group__rule { flex: 1; height: 1px; background: var(--line); }

.agent {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 16, 24, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.agent:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(20, 20, 30, 0.95);
  transform: translateY(-2px);
}
.agent__ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.13);
  color: var(--brand-300);
  font-size: 16px;
}
.agent__name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agent__desc { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }

.tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
}
.tag--live {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
  background: rgba(16, 185, 129, 0.1);
}
.tag--soon {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

/* ---------------------------------------------------------------- platforms */

.platform {
  text-align: center;
  padding: 32px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.platform:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.platform__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: var(--brand-300);
}
.platform h3 { font-size: 16px; margin-bottom: 6px; }
.platform p { font-size: 13.5px; color: var(--text-dim); }

/* ---------------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 20, 0.8);
}
.step__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--accent));
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* ---------------------------------------------------------------- pricing */

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 22, 31, 0.85), rgba(11, 11, 17, 0.9));
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.plan--featured {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), 0 24px 60px rgba(79, 70, 229, 0.2);
  background: linear-gradient(180deg, rgba(40, 34, 78, 0.6), rgba(13, 13, 20, 0.92));
}

.plan__badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-500), var(--accent));
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.plan__name { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.plan__price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 10px 0 2px;
}
.plan__price span { font-size: 15px; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.plan__desc { font-size: 13.5px; color: var(--text-dim); min-height: 42px; margin-bottom: 20px; }

.plan__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dim);
}
.plan__list li svg { flex: 0 0 auto; margin-top: 4px; color: var(--brand-400); }

.plan .btn { margin-top: auto; width: 100%; }

.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------- faq */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 16, 24, 0.7);
  padding: 18px 22px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--brand-300);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--text-dim); }

/* ---------------------------------------------------------------- cta band */

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(150deg, rgba(49, 46, 129, 0.55), rgba(13, 13, 20, 0.9));
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 0 auto 28px; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 24, 0.7);
  padding: 26px 24px;
}
.contact-card h3 { font-size: 15px; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 14.5px; color: var(--text-dim); }
.contact-card a { color: var(--brand-300); }
.contact-card a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-900);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__about { max-width: 340px; }
.footer__about p { font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-dim); }
.footer ul a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer__bottom a { color: var(--text-faint); }
.footer__bottom a:hover { color: var(--text-dim); }

address {
  font-style: normal;
  font-size: 14px;
  color: var(--text-dim);
  display: grid;
  gap: 8px;
}
address a { color: var(--brand-300); }
address a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- legal pages */

.legal { padding: 72px 0 40px; }
.legal__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 40px;
}
.legal__head h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 12px; }
.legal__head p { color: var(--text-faint); font-size: 14px; }

.legal__body { max-width: 820px; }
.legal__body h2 {
  font-size: 21px;
  margin: 44px 0 14px;
  scroll-margin-top: 100px;
}
.legal__body h3 { font-size: 16.5px; margin: 26px 0 10px; }
.legal__body p, .legal__body li { color: var(--text-dim); font-size: 15.5px; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.legal__body a { color: var(--brand-300); }
.legal__body a:hover { text-decoration: underline; }
.legal__body strong { color: var(--text); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-500);
  background: rgba(99, 102, 241, 0.07);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--text); }

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .cta-band { padding: 44px 24px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 68px; }
  .wrap { padding: 0 18px; }
}
