/* ============================================================================
   VigilAI Restaurants — public features page (Pages/Register/Features.cshtml, /Features)
   Same palette and parts as the login: tokens come from auth.css (on body.vg-auth-body),
   the eyebrow / icon tiles / live badge from auth-restaurants.css. Dark only.
   Physical left/right is used only for decorations pinned to an illustration (the
   illustrations are not mirrored under RTL); everything else uses logical properties.
   ========================================================================= */

body.vg-feat-body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(0, 144, 231, .16), transparent 60%),
    radial-gradient(900px 620px at 100% 18%, rgba(255, 171, 0, .07), transparent 62%),
    var(--vg-ground);
  background-attachment: fixed;
  overflow-x: hidden;
}

html:has(.vg-feat) { scroll-behavior: smooth; }

.vg-feat {
  color: var(--vg-text);
  text-align: start;               /* style.css pins text-align:left on base elements */
  line-height: 1.55;
}

.vg-feat[dir="rtl"] { direction: rtl; }

.vg-feat a { text-decoration: none; }
.vg-feat h1, .vg-feat h2, .vg-feat p, .vg-feat ul, .vg-feat ol, .vg-feat figure { margin: 0; }

.vg-feat__wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---- top bar ----------------------------------------------------------- */

.vg-feat__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 17, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vg-line);
}

.vg-feat__bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.vg-feat__logo img { height: 40px; width: auto; display: block; }

.vg-feat__bar-end { display: flex; align-items: center; gap: 12px; }

/* ---- buttons ----------------------------------------------------------- */

.vg-feat__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--vg-radius-sm);
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}

.vg-feat__btn:active { transform: translateY(1px); }
.vg-feat__btn:focus-visible,
.vg-feat__chip:focus-visible,
.vg-feat a:focus-visible { outline: 2px solid var(--vg-primary); outline-offset: 3px; }

.vg-feat__btn--primary {
  background: var(--vg-primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 144, 231, .28);
}
.vg-feat__btn--primary:hover { background: #0a9ff5; color: #fff; }

.vg-feat__btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--vg-line);
  color: var(--vg-text);
}
.vg-feat__btn--ghost:hover { border-color: var(--vg-primary-line); background: var(--vg-surface); color: #fff; }

.vg-feat__btn--sm { height: 38px; padding: 0 16px; font-size: .86rem; box-shadow: none; }

/* ---- hero -------------------------------------------------------------- */

.vg-feat__hero { padding: 64px 0 40px; }

.vg-feat__hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
}

.vg-feat__h1 {
  margin: 18px 0 14px;
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.55rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
}

.vg-feat[dir="rtl"] .vg-feat__h1 { letter-spacing: 0; line-height: 1.35; }

.vg-feat__lead {
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--vg-muted);
}

.vg-feat__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.vg-feat__hero-art {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--vg-line);
}

.vg-feat__hero-art::before {           /* soft glow behind the picture */
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 171, 0, .16), transparent 70%);
  filter: blur(10px);
}

.vg-feat__hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.vg-feat__live { top: 20px; inset-inline: auto; left: 72px; }

.vg-feat__float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(13, 19, 26, .94);
  border: 1px solid var(--vg-line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  animation: vgRestTagIn .7s ease both;
}

.vg-feat__float b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #ff8a90;
  direction: ltr;
  unicode-bidi: isolate;
}

.vg-feat__float--a { left: -22px; bottom: 22%; border-color: rgba(252, 66, 74, .5); }
.vg-feat__float--b { right: -18px; top: 46%; border-color: rgba(0, 144, 231, .5); animation-delay: .25s; }

.vg-feat__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.vg-feat__dot.is-critical { background: var(--vg-danger); box-shadow: 0 0 0 3px rgba(252, 66, 74, .22); }
.vg-feat__dot.is-clear { border: 2px dashed #0090e7; }

/* ---- jump chips -------------------------------------------------------- */

.vg-feat__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 8px 24px;
}

.vg-feat__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--vg-line);
  background: rgba(255, 255, 255, .025);
  color: var(--vg-text);
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .16s ease, background .16s ease;
}
.vg-feat[dir="rtl"] .vg-feat__chip { padding: 6px 6px 6px 16px; }
.vg-feat__chip:hover { border-color: var(--vg-primary-line); background: var(--vg-surface); color: #fff; }
.vg-feat__chip .vg-rest__ico { width: 30px; height: 30px; border-radius: 999px; }

/* ---- feature sections -------------------------------------------------- */

.vg-feat__sec { padding: 56px 0; scroll-margin-top: 72px; }
.vg-feat__sec + .vg-feat__sec { border-top: 1px solid rgba(38, 43, 51, .6); }

.vg-feat__sec-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

/* alternate the picture left / right (in reading order, so RTL mirrors the rhythm) */
.vg-feat__sec--flip .vg-feat__media { order: 2; }

.vg-feat__media {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px var(--vg-line);
}

.vg-feat__media::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .9;
}

.vg-feat__media--blue::before   { background: radial-gradient(closest-side, rgba(0, 144, 231, .2), transparent); }
.vg-feat__media--green::before  { background: radial-gradient(closest-side, rgba(0, 210, 91, .14), transparent); }
.vg-feat__media--red::before    { background: radial-gradient(closest-side, rgba(252, 66, 74, .16), transparent); }
.vg-feat__media--amber::before  { background: radial-gradient(closest-side, rgba(255, 171, 0, .14), transparent); }
.vg-feat__media--violet::before { background: radial-gradient(closest-side, rgba(143, 95, 232, .2), transparent); }

.vg-feat__media img { display: block; width: 100%; height: auto; border-radius: 20px; }

.vg-feat__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vg-muted);
}
.vg-feat[dir="rtl"] .vg-feat__kicker { letter-spacing: 0; font-size: .9rem; }

.vg-feat__h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.vg-feat[dir="rtl"] .vg-feat__h2 { letter-spacing: 0; line-height: 1.4; }
.vg-feat__h2--center { text-align: center; }

.vg-feat__text { color: var(--vg-muted); font-size: 1rem; max-width: 60ch; }

.vg-feat__items {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.vg-feat__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--vg-line);
  background: rgba(255, 255, 255, .022);
  transition: border-color .16s ease, background .16s ease;
}
.vg-feat__item:hover { border-color: #323a45; background: rgba(255, 255, 255, .035); }

.vg-feat__item b { display: block; color: #fff; font-size: .95rem; font-weight: 650; margin-bottom: 2px; }
.vg-feat__item > div > span { display: block; color: var(--vg-muted); font-size: .86rem; line-height: 1.5; }

.vg-feat__item-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-top: 1px;
}
.vg-feat__item-ico--blue   { background: rgba(0, 144, 231, .14);  color: #5cc0ff; }
.vg-feat__item-ico--green  { background: rgba(0, 210, 91, .12);   color: #4be08a; }
.vg-feat__item-ico--red    { background: rgba(252, 66, 74, .13);  color: #ff7a80; }
.vg-feat__item-ico--amber  { background: rgba(255, 171, 0, .12);  color: #ffc44d; }
.vg-feat__item-ico--violet { background: rgba(143, 95, 232, .16); color: #b89cf5; }

.vg-feat__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px !important;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 171, 0, .3);
  background: rgba(255, 171, 0, .06);
  color: #ffd98a;
  font-size: .86rem;
}
.vg-feat__note .vg-icon { flex: 0 0 auto; margin-top: 2px; }

/* ---- how it works ------------------------------------------------------ */

.vg-feat__how { padding: 64px 0 40px; border-top: 1px solid rgba(38, 43, 51, .6); }

.vg-feat__steps {
  list-style: none;
  padding: 0;
  margin-top: 28px !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}

.vg-feat__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  border-radius: var(--vg-radius);
  border: 1px solid var(--vg-line);
  background: linear-gradient(180deg, rgba(23, 27, 33, .9), rgba(16, 20, 25, .9));
}

.vg-feat__step b { color: #fff; font-size: 1.02rem; font-weight: 650; margin-top: 8px; }
.vg-feat__step > span:last-child { color: var(--vg-muted); font-size: .9rem; }

.vg-feat__step-n {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .06);
}

.vg-feat__step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--vg-primary-soft);
  color: #5cc0ff;
}

/* ---- call to action ---------------------------------------------------- */

.vg-feat__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0 64px;
  padding: 36px 40px;
  border-radius: 20px;
  border: 1px solid var(--vg-primary-line);
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(0, 144, 231, .22), transparent 70%),
    radial-gradient(500px 240px at 100% 100%, rgba(255, 171, 0, .1), transparent 70%),
    var(--vg-surface);
}
.vg-feat__cta .vg-feat__h2 { margin-top: 0; }
.vg-feat__cta .vg-feat__ctas { margin-top: 0; flex: 0 0 auto; }

/* ---- footer ------------------------------------------------------------ */

.vg-feat__foot { border-top: 1px solid var(--vg-line); color: var(--vg-faint); font-size: .86rem; }
.vg-feat__foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 64px; }
.vg-feat__foot a { color: var(--vg-muted); font-weight: 600; }
.vg-feat__foot a:hover { color: #fff; }

/* ---- responsive -------------------------------------------------------- */

@media (max-width: 991.98px) {
  .vg-feat__hero { padding: 40px 0 28px; }
  .vg-feat__hero-in,
  .vg-feat__sec-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vg-feat__sec--flip .vg-feat__media { order: 0; }
  .vg-feat__sec { padding: 40px 0; }
  .vg-feat__float--a { left: 12px; }
  .vg-feat__float--b { right: 12px; }
  .vg-feat__steps { grid-template-columns: minmax(0, 1fr); }
  .vg-feat__cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (max-width: 600px) {
  .vg-feat__wrap { padding-inline: 16px; }
  .vg-feat__bar-in { height: 60px; }
  .vg-feat__logo img { height: 32px; }
  .vg-feat__btn--sm span { display: none; }      /* icon-only sign-in on phones */
  .vg-feat__btn--sm { width: 38px; padding: 0; }
  .vg-feat__ctas .vg-feat__btn { flex: 1 1 100%; }
  .vg-feat__hero-art, .vg-feat__hero-art img,
  .vg-feat__media, .vg-feat__media img { border-radius: 14px; }
  .vg-feat__live { left: 46px; top: 12px; }
  .vg-feat__float { font-size: .74rem; padding: 7px 10px; }
  .vg-feat__float--a { bottom: 8%; }
  .vg-feat__float--b { top: auto; bottom: -16px; }
  .vg-feat__jump { gap: 8px; }
  .vg-feat__chip { font-size: .8rem; }
  .vg-feat__item { padding: 12px; }
  .vg-feat__cta .vg-feat__ctas { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.vg-feat) { scroll-behavior: auto; }
  .vg-feat__float { animation: none; }
}
