/* ==========================================================================
   features.css — feature page styles. Built on global.css tokens.
   ========================================================================== */

/* --- Feature hero (shorter than industry hero; copy left, image right) --- */
.ry-fhero {
  position: relative;
  overflow: hidden;
  background: var(--ry-ink);
  padding-block: clamp(var(--ry-space-7), 9vw, var(--ry-space-9));
}

/* Animated gradient-mesh + grain texture background (ambient, subtle) */
.ry-fhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 18% 22%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(38% 50% at 82% 30%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(45% 60% at 65% 88%, rgba(37, 99, 235, 0.18), transparent 72%);
  background-repeat: no-repeat;
  animation: ry-fhero-drift 26s ease-in-out infinite alternate;
}

/* Subtle grain overlay so it reads as designed, not flat color */
.ry-fhero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

@keyframes ry-fhero-drift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%;
  }
  100% {
    background-position: 12% 8%, 86% 14%, 58% 88%;
  }
}

.ry-fhero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: clamp(40px, 6vw, 90px);
}

.ry-fhero__eyebrow {
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-blue-400);
  margin-bottom: var(--ry-space-4);
}

.ry-fhero__title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.ry-fhero__accent {
  color: var(--ry-blue-600);
}

.ry-fhero__sub {
  font-size: var(--ry-text-lg);
  line-height: 1.5;
  color: var(--ry-slate-300);
  margin-top: var(--ry-space-5);
  max-width: 34em;
}

.ry-fhero__cta {
  margin-top: var(--ry-space-6);
}

.ry-fhero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glass panel peeking out behind the image */
.ry-fhero__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -24px;
  bottom: -24px;
  left: -24px;
  right: -24px;
  border-radius: var(--ry-radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  display: none;
}

.ry-fhero__media img {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: 460px;
  height: auto;
  display: block;
  border-radius: var(--ry-radius-xl);
}

/* --- Responsive: stack, image below copy --------------------------------- */
@media (max-width: 880px) {
  .ry-fhero__inner {
    grid-template-columns: 1fr;
    row-gap: clamp(32px, 6vw, 48px);
  }
	
  .ry-fhero__media {
    display: none;
  }

  .ry-fhero__sub {
    max-width: none;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ry-fhero__bg {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   On-page anchor nav — sticky scrollable jump bar under the hero
   -------------------------------------------------------------------------- */
.ry-fnav {
  position: sticky;
  top: var(--ry-nav-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ry-border);
  transition: top 420ms cubic-bezier(0.33, 0, 0.2, 1);
}

/* When the main nav is hidden on scroll-down, dock the bar to the top */
.ry-fnav.ry-fnav--docked {
  top: 0;
}

.ry-fnav__inner {
  display: flex;
  gap: var(--ry-space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--ry-space-3);
}

.ry-fnav__inner::-webkit-scrollbar { display: none; }

.ry-fnav__link {
  flex: 0 0 auto;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 500;
  color: var(--ry-slate-500);
  white-space: nowrap;
  padding: var(--ry-space-2) var(--ry-space-4);
  border-radius: var(--ry-radius-pill);
  transition: color var(--ry-dur-fast) var(--ry-ease),
              background var(--ry-dur-fast) var(--ry-ease);
}

.ry-fnav__link:hover {
  color: var(--ry-slate-900);
  background: var(--ry-slate-100);
}

.ry-fnav__link.is-active {
  color: #fff;
  background: var(--ry-blue-600);
}

/* Land anchored jumps below the sticky header + anchor bar */
.ry-row { scroll-margin-top: 150px; }

/* --------------------------------------------------------------------------
   Related features cross-link band (dark, contained) — [ryno_related]
   Matches the frosted-glass dark-card language used site-wide.
   -------------------------------------------------------------------------- */
.ry-related__head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto var(--ry-space-7);
}

.ry-related__eyebrow {
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-blue-600);   /* was blue-400; darker for contrast on white */
  margin-bottom: var(--ry-space-3);
}

.ry-related__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--ry-slate-900);  /* was #fff */
  margin: 0;
}

.ry-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ry-space-4);
}

.ry-related__card {
  display: flex;
  align-items: center;
  gap: var(--ry-space-4);
  padding: var(--ry-space-5);
  border-radius: var(--ry-radius-md);
  background: #0e1325;          /* solid navy, matches the old frosted tone on dark */
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(11, 26, 46, 0.16);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease),
              transform var(--ry-dur) var(--ry-ease),
              box-shadow var(--ry-dur) var(--ry-ease);
}

.ry-related__card:hover {
  background: #131a30;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: var(--ry-shadow-lg);
}

.ry-related__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--ry-radius-md);
  background: rgba(37, 99, 235, 0.22);
  color: var(--ry-blue-300);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              color var(--ry-dur-fast) var(--ry-ease),
              box-shadow var(--ry-dur-fast) var(--ry-ease);
}

.ry-related__card:hover .ry-related__ic {
  background: var(--ry-blue-600);
  color: #fff;
  box-shadow:
    0 0 12px 2px rgba(37, 99, 235, 0.65),
    0 0 24px 6px rgba(37, 99, 235, 0.35);
}

.ry-related__ic i {
	font-size: 24px;
	margin-left: 4px;
}

.ry-related__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ry-related__name {
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ry-related__desc {
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-400);
  line-height: 1.4;
  margin-top: 3px;
}

.ry-related__arrow {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--ry-slate-500);
  transition: transform var(--ry-dur-fast) var(--ry-ease),
              color var(--ry-dur-fast) var(--ry-ease);
}

.ry-related__card:hover .ry-related__arrow {
  color: var(--ry-blue-300);
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .ry-related__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   AI feature band — contained dark section with branded image background.
   Breaks the page into core features / AI features.
   -------------------------------------------------------------------------- */
.ry-aiband {
  position: relative;
  overflow: hidden;
  border-radius: var(--ry-radius-xl);
  margin-block: var(--ry-space-7) var(--ry-space-9);
  isolation: isolate;
}

.ry-aiband__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ry-aiband__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrim — keeps centered text readable over the branded image.
   Purple-tinted to flag the AI tier. */
.ry-aiband__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 30, 0.78) 0%, rgba(11, 14, 30, 0.72) 100%),
    radial-gradient(60% 80% at 50% 50%, rgba(124, 58, 237, 0.28), transparent 70%);
}

.ry-aiband__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42em;
  margin-inline: auto;
  padding: clamp(var(--ry-space-7), 7vw, var(--ry-space-9)) var(--ry-space-5);
}

.ry-aiband__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-purple-300);
  margin-bottom: var(--ry-space-4);
}

.ry-aiband__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: #fff;
  margin: 0;
}

.ry-aiband__sub {
  font-size: var(--ry-text-lg);
  line-height: 1.55;
  color: var(--ry-slate-300);
  margin-top: var(--ry-space-4);
}

/* --------------------------------------------------------------------------
   AI Assistant showcase — wide standalone section. Reused per feature page
   with page-specific questions. Contained dark band, branded.
   -------------------------------------------------------------------------- */
.ry-aiqs {
  position: relative;
  overflow: hidden;
  border-radius: var(--ry-radius-xl);
  margin-block: var(--ry-space-7) 0;
  background: var(--ry-ink);
  isolation: isolate;
}

.ry-aiqs__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 16% 14%, rgba(124, 58, 237, 0.30), transparent 70%),
    radial-gradient(40% 55% at 88% 90%, rgba(37, 99, 235, 0.22), transparent 72%);
}

.ry-aiqs__inner {
  position: relative;
  z-index: 1;
  padding: clamp(var(--ry-space-6), 5vw, var(--ry-space-8));
}

.ry-aiqs__head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto var(--ry-space-7);
}

.ry-aiqs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-purple-300);
  margin-bottom: var(--ry-space-4);
}

.ry-aiqs__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: #fff;
  margin: 0;
}

.ry-aiqs__sub {
  font-size: var(--ry-text-lg);
  line-height: 1.55;
  color: var(--ry-slate-300);
  margin-top: var(--ry-space-4);
}

/* Question groups laid out as a dense two-column field */
.ry-aiqs__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ry-space-6) var(--ry-space-5);
}

.ry-aiqs__group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-purple-300);
  margin-bottom: var(--ry-space-3);
}

.ry-aiqs__group-label i { font-size: 16px; }

.ry-aiqs__qs {
  display: flex;
  flex-direction: column;
  gap: var(--ry-space-2);
}

.ry-aiqs__q {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--ry-radius-md);
  padding: 12px 14px;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-200);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease);
}

.ry-aiqs__q:hover {
  background: rgba(17, 23, 42, 0.72);
  border-color: rgba(124, 58, 237, 0.45);
}

.ry-aiqs__q i {
  font-size: 15px;
  color: var(--ry-purple-400);
  flex-shrink: 0;
}

.ry-aiqs__kicker {
  text-align: center;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-400);
  margin-top: var(--ry-space-6);
}

.ry-aiqs__kicker strong { color: var(--ry-purple-300); font-weight: 600; }

@media (max-width: 880px) {
  .ry-aiqs__groups {
    grid-template-columns: 1fr;
  }
}