/* ============================================================
   Casyt RFE Response — landing page (scoped .rfe-)
   ============================================================ */
:root {
  --rfe-ink: #101728;
  --rfe-ink-soft: #3a4763;
  --rfe-muted: #697489;
  --rfe-line: rgba(16, 23, 40, 0.10);
  --rfe-accent: #1f5eff;
  --rfe-accent-deep: #1a44b8;
  --rfe-accent-2: #11a37f;
  --rfe-shadow-sm: 0 10px 30px rgba(16, 23, 40, 0.07);
  --rfe-shadow: 0 24px 60px rgba(16, 23, 40, 0.10);
  --rfe-shadow-lg: 0 40px 90px rgba(16, 23, 40, 0.16);
}

* { box-sizing: border-box; }

body.rfe {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--rfe-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(860px 500px at 88% -8%, rgba(31, 94, 255, 0.12), transparent 60%),
    radial-gradient(700px 440px at 4% 2%, rgba(17, 163, 127, 0.10), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 340px);
}

.rfe-wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
img { max-width: 100%; display: block; }

.rfe-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rfe-accent);
}
.rfe-lede { color: var(--rfe-muted); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; }

/* ---------- buttons ---------- */
.rfe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.rfe-btn svg { width: 19px; height: 19px; }
.rfe-btn--sm { padding: 9px 15px; font-size: 14px; border-radius: 11px; }
.rfe-btn--lg { padding: 15px 26px; font-size: 16px; border-radius: 15px; }
.rfe-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rfe-accent), var(--rfe-accent-deep));
  box-shadow: 0 16px 34px rgba(31, 94, 255, 0.30);
}
.rfe-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(31, 94, 255, 0.40); }
.rfe-btn--ghost {
  color: var(--rfe-ink);
  background: #fff;
  border-color: var(--rfe-line);
  box-shadow: var(--rfe-shadow-sm);
}
.rfe-btn--ghost:hover { transform: translateY(-2px); border-color: rgba(31, 94, 255, 0.35); color: var(--rfe-accent); }
.rfe-btn--light { color: var(--rfe-ink); background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); }
.rfe-btn--light:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.rfe-header { position: sticky; top: 0; z-index: 30; }
.rfe-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rfe-line);
  z-index: -1;
}
.rfe-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.rfe-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--rfe-ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.rfe-brand img { width: 28px; height: 28px; object-fit: contain; }
.rfe-brand em { font-style: normal; font-weight: 600; color: var(--rfe-muted); }
.rfe-nav { display: inline-flex; align-items: center; gap: 6px; }
.rfe-nav > a:not(.rfe-btn) {
  color: var(--rfe-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 13px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.rfe-nav > a:not(.rfe-btn):hover { background: rgba(16, 23, 40, 0.05); color: var(--rfe-ink); }

/* ---------- hero ---------- */
.rfe-hero {
  padding: clamp(40px, 7vw, 84px) 20px clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}
.rfe-hero__copy { display: grid; gap: 18px; }
.rfe-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--rfe-ink);
}
.rfe-hero .rfe-lede { max-width: 56ch; }
.rfe-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* hero flow visual */
.rfe-hero__card { display: grid; justify-items: center; }
.rfe-flow {
  width: min(400px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--rfe-line);
  box-shadow: var(--rfe-shadow-lg);
  transform: rotate(1deg);
}
.rfe-flow__doc {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4f7ff, #fff);
  border: 1px solid rgba(31, 94, 255, 0.16);
}
.rfe-flow__tag {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--rfe-accent);
  background: rgba(31, 94, 255, 0.10);
  border: 1px solid rgba(31, 94, 255, 0.2);
}
.rfe-line { height: 8px; border-radius: 999px; background: rgba(16, 23, 40, 0.10); }
.rfe-line--short { width: 60%; }

.rfe-flow__step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--rfe-line);
  box-shadow: var(--rfe-shadow-sm);
}
.rfe-flow__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--rfe-accent), var(--rfe-accent-deep));
}
.rfe-flow__num svg { width: 13px; height: 13px; }
.rfe-flow__step.is-done .rfe-flow__num { background: linear-gradient(135deg, var(--rfe-accent-2), #0c8a6b); }
.rfe-flow__step strong { display: block; font-size: 14px; font-weight: 700; color: var(--rfe-ink); }
.rfe-flow__step small { font-size: 12px; color: var(--rfe-muted); }

/* ---------- case-type strip ---------- */
.rfe-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--rfe-line);
  border-bottom: 1px solid var(--rfe-line);
}
.rfe-strip > span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rfe-muted); }
.rfe-strip ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rfe-strip li {
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rfe-line);
  box-shadow: var(--rfe-shadow-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rfe-ink);
}

/* ---------- sections ---------- */
.rfe-section { padding: clamp(46px, 7vw, 88px) 20px; }
.rfe-section--alt {
  padding-inline: 0;
  background: #fff;
  border-block: 1px solid var(--rfe-line);
}
.rfe-section--alt > .rfe-wrap { padding-block: clamp(46px, 7vw, 88px); }
.rfe-section__head { max-width: 640px; margin-bottom: clamp(26px, 4vw, 44px); display: grid; gap: 12px; }
.rfe-section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rfe-ink);
}

/* steps */
.rfe-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rfe-step {
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rfe-line);
  box-shadow: var(--rfe-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.rfe-step:hover { transform: translateY(-3px); box-shadow: var(--rfe-shadow); }
.rfe-step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--rfe-accent), var(--rfe-accent-deep));
  box-shadow: 0 10px 20px rgba(31, 94, 255, 0.24);
}
.rfe-step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.rfe-step p { margin: 0; color: var(--rfe-muted); font-size: 14px; line-height: 1.58; }

/* features */
.rfe-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rfe-feature {
  position: relative;
  padding: 26px;
  padding-left: 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rfe-line);
  box-shadow: var(--rfe-shadow-sm);
  overflow: hidden;
}
.rfe-feature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rfe-accent), var(--rfe-accent-2));
}
.rfe-feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.rfe-feature p { margin: 0; color: var(--rfe-muted); font-size: 14px; line-height: 1.58; }

/* ---------- final CTA ---------- */
.rfe-final { padding: clamp(20px, 4vw, 44px) 20px clamp(56px, 8vw, 96px); }
.rfe-final__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(31, 94, 255, 0.55), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(17, 163, 127, 0.5), transparent 52%),
    linear-gradient(155deg, #16213a, #0d1322);
  box-shadow: var(--rfe-shadow-lg);
}
.rfe-final h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rfe-final p { margin: 0 auto 26px; max-width: 50ch; font-size: 16px; line-height: 1.6; color: rgba(233, 239, 250, 0.82); }

/* ---------- footer ---------- */
.rfe-footer { border-top: 1px solid var(--rfe-line); background: rgba(255, 255, 255, 0.6); }
.rfe-footer__inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--rfe-muted);
  font-size: 14px;
  font-weight: 600;
}
.rfe-footer__links { display: inline-flex; gap: 8px 18px; flex-wrap: wrap; }
.rfe-footer__links a { color: var(--rfe-ink-soft); text-decoration: none; font-weight: 600; }
.rfe-footer__links a:hover { color: var(--rfe-accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .rfe-hero { grid-template-columns: 1fr; }
  .rfe-hero__card { order: -1; }
  .rfe-flow { transform: none; }
  .rfe-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfe-features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rfe-nav > a[href="#how"] { display: none; }
  .rfe-steps { grid-template-columns: 1fr; }
  .rfe-hero__cta .rfe-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rfe-btn, .rfe-step { transition: none; }
}
