/* ===== Renmus Software — site styles ===== */
:root {
  --bg:          #0A0A0C;
  --bg-elev:     #14141A;
  --bg-elev-2:   #1B1B22;
  --border:      #26262F;
  --text:        #F2F1EC;
  --text-dim:    #A4A3AE;
  --text-faint:  #6E6D78;
  --accent:      #6E60D9;
  --accent-2:    #3FA08A;
  --gold:        #E0CC58;
  --radius:      16px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { border-radius: 8px; }
.brand__name { font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; letter-spacing: -.01em; }
.brand__soft { color: var(--text-dim); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-dim); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(110, 96, 217, .12); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s;
  will-change: transform;
}
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #8677f0);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(110, 96, 217, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(110, 96, 217, .75); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero { position: relative; padding: 100px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(110, 96, 217, .28), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__sub {
  max-width: 620px; margin: 0 auto 34px;
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  color: var(--text-dim);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat dt { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; }
.stat dd { color: var(--text-faint); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(20, 20, 26, .5), transparent); }
.section--cta { padding: 110px 0; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.12;
}
.section__lead { color: var(--text-dim); font-size: 1.08rem; margin-top: 18px; }

/* ===== Apps ===== */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card {
  position: relative; overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.app-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--app);
  opacity: .85;
}
.app-card::after {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--app); opacity: .10; filter: blur(30px);
  transition: opacity .35s var(--ease);
}
.app-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--app) 55%, var(--border)); }
.app-card:hover::after { opacity: .22; }
.app-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: color-mix(in srgb, var(--app) 16%, var(--bg-elev-2));
  border: 1px solid color-mix(in srgb, var(--app) 40%, transparent);
  margin-bottom: 22px;
}
.app-card__name { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.app-card__tag { color: var(--app); font-weight: 600; font-size: .92rem; margin: 6px 0 14px; filter: brightness(1.25); }
.app-card__desc { color: var(--text-dim); font-size: .98rem; }
.app-card__meta { display: flex; gap: 8px; margin-top: 22px; }
.app-card__meta span {
  font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  color: var(--text-faint); text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}

/* ===== Split (studio) ===== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split__text .section__title { text-align: left; }
.pillars { list-style: none; display: grid; gap: 14px; }
.pillars li {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; color: var(--text-dim); font-size: .98rem;
}
.pillars strong { color: var(--text); font-weight: 600; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step__num { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.step h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.step p { color: var(--text-dim); font-size: .94rem; }

/* ===== CTA ===== */
.section--cta { text-align: center; background: radial-gradient(closest-side at 50% 0%, rgba(110, 96, 217, .16), transparent 70%); }
.cta__title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.cta__lead { color: var(--text-dim); font-size: 1.1rem; max-width: 500px; margin: 16px auto 32px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__brand p { color: var(--text-faint); font-size: .9rem; margin-top: 6px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }

/* ===== Reveal animation ===== */
.section__head, .app-card, .split__text, .pillars li, .step, .cta { opacity: 0; transform: translateY(20px); }
.reveal { animation: rise .7s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .apps, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 560px) {
  .apps, .steps { grid-template-columns: 1fr; }
  .stats { gap: 30px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .section__head, .app-card, .split__text, .pillars li, .step, .cta { opacity: 1; transform: none; }
}
