/* ==========================================================================
   Softspace site stylesheet
   1 Fonts + tokens   2 Base   3 Header + mega menu   4 Hero   5 Buttons
   6 Sections + cards 7 Home extras   8 Inner pages   9 Forms   10 Footer   11 Motion + a11y
   ========================================================================== */

/* ---------- 1. Fonts + tokens ---------- */
@font-face { font-family: "Inter"; src: url(../fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-var.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --brand: #896eff;
  --brand-600: #7556ff;
  --brand-700: #512aff;
  --tint: #efeaff;
  --soft: #f7f6ff;
  --ink: #12121a;
  --body: #3b3e4f;
  --muted: #666a7d;
  --line: #e8e6f4;
  --dark: #101014;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --header-h: 76px;
  --radius: 20px;
  --shadow: 0 18px 40px -22px rgba(31, 22, 92, .35);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--font-body); color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
ul, ol { padding: 0; }
address { font-style: normal; line-height: 1.7; }
.rf-i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.rf-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.rf-center { text-align: center; margin-top: 40px; }
.rf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rf-skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 10px; font-weight: 600; transform: translateY(-200%); }
.rf-skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Header + mega menu ---------- */
.rf-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.rf-header::before { content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; background: linear-gradient(rgba(8, 6, 24, .55), rgba(8, 6, 24, 0)); pointer-events: none; transition: opacity .25s; }
.rf-header.is-solid, .rf-header.is-menu, .rf-header:has(.has-mega.is-open), .rf-header:has(.has-mega:hover), .rf-header:has(.has-mega:focus-within) { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(31, 22, 92, .25); }
.rf-header.is-solid::before, .rf-header.is-menu::before, .rf-header:has(.has-mega.is-open)::before, .rf-header:has(.has-mega:hover)::before, .rf-header:has(.has-mega:focus-within)::before { opacity: 0; }
.rf-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1320px, 100% - 48px); height: var(--header-h); margin-inline: auto; }
.rf-logo { display: block; flex: none; line-height: 0; }
.rf-logo img { height: 40px; width: auto; }
.rf-logo__dark { display: none; }
.rf-header.is-solid .rf-logo__dark, .rf-header.is-menu .rf-logo__dark, .rf-header:has(.has-mega.is-open) .rf-logo__dark, .rf-header:has(.has-mega:hover) .rf-logo__dark, .rf-header:has(.has-mega:focus-within) .rf-logo__dark { display: block; }
.rf-header.is-solid .rf-logo__light, .rf-header.is-menu .rf-logo__light, .rf-header:has(.has-mega.is-open) .rf-logo__light, .rf-header:has(.has-mega:hover) .rf-logo__light, .rf-header:has(.has-mega:focus-within) .rf-logo__light { display: none; }

.rf-nav { height: 100%; }
.rf-nav__list { display: flex; align-items: center; gap: 4px; height: 100%; margin: 0; padding: 0; list-style: none; }
.rf-nav__item { display: flex; align-items: center; height: 100%; }
.rf-nav__link { position: relative; padding: 10px 6px 10px 14px; font: 600 15px/1 var(--font-head); color: inherit; text-decoration: none; }
.rf-nav__item:not(.has-mega) .rf-nav__link { padding-right: 14px; }
.rf-nav__link::after { content: ""; position: absolute; left: 14px; right: 6px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.rf-nav__item:not(.has-mega) .rf-nav__link::after { right: 14px; }
.rf-nav__link:hover::after, .rf-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.rf-nav__link:hover { color: inherit; }
.rf-nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 8px; }
.rf-nav__toggle .rf-i { width: 16px; height: 16px; transition: transform .2s; }
.has-mega:hover .rf-nav__toggle .rf-i, .has-mega.is-open .rf-nav__toggle .rf-i { transform: rotate(180deg); }
.rf-nav__cta { margin-left: 10px; }

.rf-mega { position: absolute; top: 100%; left: 50%; width: min(1120px, calc(100% - 48px)); color: var(--ink); background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px;
  box-shadow: 0 40px 70px -30px rgba(31, 22, 92, .4); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.has-mega:hover > .rf-mega, .has-mega:focus-within > .rf-mega, .has-mega.is-open > .rf-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.rf-mega__in { padding: 28px 28px 22px; }
.rf-mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rf-mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.rf-mega__item { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.rf-mega__item:hover { background: var(--soft); color: var(--ink); }
.rf-mega__item strong { display: block; font: 700 15px/1.3 var(--font-head); }
.rf-mega__item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.rf-mega__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.rf-mega__cols .rf-mega__grid { grid-template-columns: 1fr; }
.rf-mega__label { margin: 0 0 10px 14px; font: 700 11.5px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rf-mega__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rf-mega__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.rf-mega__chips a:hover { border-color: var(--brand); background: var(--soft); }
.rf-mega__note { display: flex; gap: 14px; align-self: start; padding: 20px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.rf-mega__note p { margin: 0; color: var(--body); }
.rf-mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rf-mega__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.rf-tile { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--brand-700); }
.rf-tile .rf-i { width: 24px; height: 24px; }
.rf-tile--logo { background: #fff; border: 1px solid var(--line); }
.rf-tile img { width: 26px; height: 26px; }

.rf-burger { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: inherit; cursor: pointer; }
.rf-header.is-solid .rf-burger, .rf-header.is-menu .rf-burger { background: var(--tint); color: var(--brand-700); }
.rf-burger .rf-i { width: 24px; height: 24px; }
.rf-burger__close, .rf-header.is-menu .rf-burger__open { display: none; }
.rf-header.is-menu .rf-burger__close { display: block; }
.rf-drawer { display: none; }

@media (max-width: 999px) {
  .rf-nav { display: none; }
  .rf-burger { display: grid; }
  .rf-drawer { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(31, 22, 92, .35); }
  .rf-header.is-menu .rf-drawer { display: block; }
  .rf-drawer ul { margin: 0; padding: 0; list-style: none; }
  .rf-drawer nav > ul { padding: 8px 24px 28px; }
  .rf-drawer nav > ul > li > a, .rf-acc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 18px/1.3 var(--font-head); color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
  .rf-acc > summary::-webkit-details-marker { display: none; }
  .rf-acc[open] > summary .rf-i { transform: rotate(180deg); }
  .rf-acc > summary .rf-i { transition: transform .2s; }
  .rf-acc ul { padding: 6px 0 10px 14px; border-bottom: 1px solid var(--line); }
  .rf-acc ul a { display: flex; align-items: center; min-height: 46px; font-size: 16px; font-weight: 500; color: var(--body); text-decoration: none; }
  .rf-acc__all { font-weight: 700 !important; color: var(--brand-700) !important; gap: 8px; }
  .rf-drawer a[aria-current="page"] { color: var(--brand-700); }
  .rf-drawer .rf-btn { width: 100%; justify-content: center; margin-top: 20px; color: #fff; border: 0; }
}

/* ---------- 4. Hero ---------- */
.rf-hero { position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center; min-height: clamp(380px, 56vh, 540px); padding: calc(var(--header-h) + 56px) 24px 72px; text-align: center; color: #fff; background: #17142b var(--hero) center / cover no-repeat; overflow: hidden; }
.rf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 30, .55), rgba(10, 8, 30, .5) 45%, rgba(10, 8, 30, .78)); }
.rf-hero__in { width: min(860px, 100%); }
.rf-hero h1 { max-width: 20ch; margin: 0 auto 16px; font: 800 clamp(34px, 5.4vw, 62px)/1.08 var(--font-head); letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.rf-lead { max-width: 640px; margin: 0 auto; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.rf-eyebrow { margin: 0 0 16px; font: 700 12.5px/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.rf-eyebrow--brand { color: var(--brand-700); }
.rf-hero--home { min-height: min(100svh, 840px); padding-bottom: 96px; }
.rf-hero--home h1 { max-width: 16ch; font-size: clamp(38px, 6.4vw, 76px); }
.rf-hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rf-hero__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.rf-hero__scroll { position: absolute; bottom: 24px; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; animation: rf-bob 2.2s ease-in-out infinite; }
@keyframes rf-bob { 50% { transform: translateY(6px); } }
.rf-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.rf-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .55; }
.rf-crumbs a { color: #fff; text-decoration: none; }
.rf-crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- 5. Buttons ---------- */
.rf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 12px; background: var(--brand); color: #fff; font: 700 15px/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.rf-btn:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(81, 42, 255, .7); }
.rf-btn .rf-i { width: 18px; height: 18px; transition: transform .2s; }
.rf-btn:hover .rf-i { transform: translateX(3px); }
.rf-btn--sm { padding: 11px 20px; font-size: 14px; }
.rf-btn--dark { background: var(--dark); }
.rf-btn--dark:hover { background: #2a2a35; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
.rf-btn--light { background: #fff; color: var(--ink); }
.rf-btn--light:hover { background: #fff; color: var(--brand-700); }
.rf-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); }
.rf-btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.rf-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- 6. Sections + cards ---------- */
.rf-sec { padding: clamp(56px, 8vw, 104px) 0; }
.rf-sec--tight { padding: clamp(40px, 5vw, 64px) 0; }
.rf-sec--soft { background: var(--soft); }
.rf-head { max-width: 720px; margin-bottom: 44px; }
.rf-head--center { margin-inline: auto; text-align: center; }
.rf-h2 { margin: 0 0 14px; font: 800 clamp(28px, 3.4vw, 42px)/1.15 var(--font-head); letter-spacing: -.02em; text-wrap: balance; }
.rf-sublead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.rf-grid { display: grid; gap: 24px; }
.rf-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.rf-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rf-card h3 { margin: 20px 0 10px; font: 700 20px/1.3 var(--font-head); }
.rf-card p, .rf-card address { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.rf-card--link:hover { transform: translateY(-4px); border-color: #cfc5ff; box-shadow: var(--shadow); }
.rf-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font: 700 14.5px/1 var(--font-head); color: var(--brand-700); text-decoration: none; }
.rf-more .rf-i { width: 18px; height: 18px; transition: transform .2s; }
.rf-card--link .rf-more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.rf-card--link:hover .rf-more .rf-i { transform: translateX(4px); }
.rf-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.rf-split--rev .rf-split__text { order: 2; }
.rf-split__media img { display: block; width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.rf-split__text p { font-size: 17px; line-height: 1.75; }
.rf-ticks { margin: 0 0 28px; padding: 0; list-style: none; }
.rf-ticks li { display: flex; gap: 12px; margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; }
.rf-ticks .rf-i { margin-top: 3px; color: var(--brand-700); }
.rf-panel { padding: 32px; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); }
.rf-panel h3 { margin-bottom: 18px; font-size: 22px; }
.rf-panel .rf-ticks { margin: 0; }

/* ---------- 7. Home extras ---------- */
.rf-band { padding: clamp(56px, 8vw, 96px) 0; color: #fff; background: linear-gradient(135deg, #7455ff 0%, #9b87ff 100%); }
.rf-band__in { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.rf-band__media img { display: block; width: 100%; max-width: 440px; margin-inline: auto; }
.rf-band .rf-h2 { color: #fff; }
.rf-band p { font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .92); }
.rf-marquee { overflow: hidden; padding: 8px 0; }
.rf-marquee__track { display: flex; width: max-content; animation: rf-marquee 46s linear infinite; }
.rf-marquee:hover .rf-marquee__track { animation-play-state: paused; }
.rf-marquee ul { display: flex; flex: none; gap: 64px; margin: 0; padding: 0 64px 0 0; list-style: none; }
.rf-marquee li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 70px; }
.rf-marquee img { width: 38px; height: 38px; }
.rf-marquee span { font: 600 13px/1 var(--font-head); color: var(--muted); }
@keyframes rf-marquee { to { transform: translateX(-50%); } }
.rf-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff; background: radial-gradient(900px 300px at 100% 0, rgba(137, 110, 255, .55), transparent 60%), linear-gradient(135deg, #17142b, #0d0c18); }
.rf-cta h2 { color: #fff; font: 800 clamp(24px, 3vw, 34px)/1.2 var(--font-head); letter-spacing: -.02em; margin-bottom: 10px; }
.rf-cta p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .8); }
.rf-cta__act { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 8. Inner pages ---------- */
.rf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.rf-prose { max-width: 780px; }
.rf-prose p, .rf-prose li { font-size: 17px; line-height: 1.8; }
.rf-prose h2 { margin: 40px 0 14px; font: 800 clamp(22px, 2.4vw, 28px)/1.25 var(--font-head); letter-spacing: -.01em; }
.rf-prose h2:first-child { margin-top: 0; }
.rf-prose--legal { margin-inline: auto; }
.rf-prose--legal h2 { font-size: 22px; }
.rf-prose--legal ul { padding-left: 22px; }
.rf-updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--brand-700); font-size: 13.5px; font-weight: 600; }
.rf-lede { font-size: 20px !important; line-height: 1.7 !important; color: var(--ink); }
.rf-gap { margin-top: 40px; }
.rf-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.rf-aside h2 { margin-bottom: 14px; font: 700 13px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rf-aside ul { margin: 0; padding: 0; list-style: none; }
.rf-aside li a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.rf-aside li a:hover, .rf-aside li a[aria-current="page"] { background: #fff; color: var(--brand-700); box-shadow: 0 1px 0 var(--line); }
.rf-aside dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 22px; font-size: 15px; }
.rf-aside dt { color: var(--muted); }
.rf-aside dd { margin: 0; font-weight: 600; color: var(--ink); }
.rf-aside .rf-btn { width: 100%; }
.rf-note { margin: 14px 0 10px; font-size: 14px; color: var(--muted); }
.rf-logo-tile { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.rf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.rf-steps li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rf-steps__n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 18px var(--font-head); }
.rf-steps p { margin: 0; color: var(--body); }
.rf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.rf-chips li { padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--brand-700); font: 600 14px/1.3 var(--font-body) !important; }
.rf-stacks { display: grid; gap: 24px; }
.rf-stack { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rf-stack h3 { margin-bottom: 20px; font-size: 18px; }
.rf-stack ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 12px; margin: 0; padding: 0; list-style: none; }
.rf-stack li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font: 600 13.5px/1.3 var(--font-head); color: var(--ink); }

/* ---------- 9. Forms ---------- */
.rf-contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rf-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.rf-form h2 { margin-bottom: 8px; font: 800 28px/1.2 var(--font-head); }
.rf-form .rf-sublead { margin-bottom: 26px; font-size: 16px; }
.rf-field { margin-bottom: 18px; }
.rf-field label { display: block; margin-bottom: 7px; font: 600 14px/1.3 var(--font-head); color: var(--ink); }
.rf-field input, .rf-field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #d9d6ea; border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--font-body); transition: border-color .2s, box-shadow .2s; }
.rf-field textarea { min-height: 140px; resize: vertical; }
.rf-field input:focus, .rf-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(137, 110, 255, .2); }
.rf-field.is-invalid input, .rf-field.is-invalid textarea { border-color: #d92d20; }
.rf-field__err { margin: 6px 0 0; font-size: 13.5px; color: #b42318; }
.rf-form__status { margin: 16px 0 0; font-size: 15px; color: #b42318; }
.rf-info { display: grid; gap: 18px; }
.rf-info .rf-card h3 { margin-top: 16px; }
.rf-info a { font-weight: 600; }
.rf-dialog { width: min(440px, calc(100vw - 32px)); padding: 32px 28px 28px; border: 0; border-radius: 24px; text-align: center; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); }
.rf-dialog::backdrop { background: rgba(10, 8, 30, .55); backdrop-filter: blur(3px); }
.rf-dialog img { display: block; margin: 0 auto 8px; }
.rf-dialog h2 { color: var(--brand-700); font-size: 26px; margin-bottom: 8px; }
.rf-dialog p { margin: 0; color: var(--muted); }
.rf-dialog__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }

/* ---------- 10. Footer ---------- */
.rf-footer { padding: 72px 0 28px; background: var(--dark); color: #b9bbcc; font-size: 15px; }
.rf-footer a { color: #d7d8e4; text-decoration: none; }
.rf-footer a:hover { color: #fff; text-decoration: underline; }
.rf-footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.rf-footer__tag { margin: 0 0 16px; font: 800 28px/1.2 var(--font-head); letter-spacing: -.02em; color: #fff; }
.rf-footer__tag em { font-style: normal; color: #a893ff; }
.rf-footer__about { max-width: 34ch; line-height: 1.7; }
.rf-footer__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #fff !important; }
.rf-footer__col h2 { margin-bottom: 16px; font: 700 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.rf-footer__col ul { margin: 0; padding: 0; list-style: none; }
.rf-footer__col li { margin-bottom: 10px; }
.rf-footer__col address { color: #b9bbcc; }
.rf-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 14px; }
.rf-footer__bottom p { margin: 0; }
.rf-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }

/* ---------- 11. Motion + accessibility ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 999px) {
  :root { --header-h: 68px; }
  .rf-logo img { height: 34px; }
  .rf-footer__top { grid-template-columns: 1fr 1fr; }
  .rf-footer__brand { grid-column: 1 / -1; }
  .rf-layout, .rf-contact { grid-template-columns: 1fr; }
  .rf-aside { position: static; }
  .rf-mega__grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .rf-split, .rf-band__in, .rf-cta { grid-template-columns: 1fr; }
  .rf-split--rev .rf-split__text { order: 0; }
  .rf-band__media { order: -1; }
  .rf-band__media img { max-width: 300px; }
      .rf-hero { padding-top: calc(var(--header-h) + 36px); padding-bottom: 56px; }
  .rf-head { margin-bottom: 32px; }
  .rf-cta__act .rf-btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .rf-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .rf-footer__tag { font-size: 24px; }
  .rf-card, .rf-stack { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rf-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .rf-marquee ul[aria-hidden="true"] { display: none; }
  .rf-marquee ul { flex-wrap: wrap; justify-content: center; padding: 0; gap: 28px 40px; }
}
