/* =====================================================================
   RuDMV — Premium front page (scoped under .rd-front)
   Relies on design tokens from css/redesign.css (loaded globally).
   ===================================================================== */

.rd-front { --pad: clamp(56px, 8vw, 104px); color: var(--text); }
.rd-front *, .rd-front *::before, .rd-front *::after { box-sizing: border-box; }
.rd-wrap { width: 90%; max-width: 1200px; margin: 0 auto; }

.rd-front section { position: relative; }
.rd-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-700); background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.rd-eyebrow svg { width: 15px; height: 15px; }
.rd-front h2.rd-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  letter-spacing: -0.025em; margin: 16px 0 12px; color: var(--ink);
}
.rd-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.rd-center { text-align: center; }
.rd-center .rd-lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------------------------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  letter-spacing: -0.01em; padding: 15px 30px; border-radius: var(--r-pill);
  border: 0; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), filter var(--dur-2) var(--ease-out);
}
.rd-btn svg { width: 18px; height: 18px; }
.rd-btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.rd-btn-primary:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 22px 40px -12px rgba(37,99,235,.6); }
.rd-btn-primary:active { transform: scale(.97); }
.rd-btn-gold { background: var(--grad-gold); color: #3A2A00; box-shadow: var(--shadow-gold); }
.rd-btn-gold:hover { color: #3A2A00; transform: translateY(-2px); box-shadow: 0 22px 38px -12px rgba(245,179,1,.6); }
.rd-btn-gold:active { transform: scale(.97); }
.rd-btn-ghost { background: rgba(255,255,255,.9); color: var(--ink); border: 1.5px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.rd-btn-ghost:hover { color: var(--brand-800); border-color: var(--brand-300); transform: translateY(-2px); }
.rd-btn-ghost:active { transform: scale(.97); }
.rd-btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---- Hero ----------------------------------------------------------- */
.rd-hero {
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(59,130,246,.20), transparent 60%),
    radial-gradient(900px 520px at 108% -8%, rgba(34,211,238,.16), transparent 55%),
    linear-gradient(180deg, #F3F7FF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(48px, 6vw, 88px) 0 var(--pad);
  overflow: hidden;
}
.rd-hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.rd-hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.65rem);
  line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin: 22px 0 18px;
}
.rd-hero h1 .rd-grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rd-hero .rd-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.rd-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }

.rd-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border); }
.rd-stat .n { font-family: var(--font-heading); font-weight: 800; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.rd-stat .n span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-stat .l { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* hero visual */
.rd-hero-visual { position: relative; display: flex; justify-content: center; }
.rd-phone {
  position: relative; width: min(300px, 78%); border-radius: 40px;
  background: #0B1B3A; padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(11,27,58,.55), 0 12px 24px -12px rgba(11,27,58,.4);
  z-index: 2;
}
.rd-phone img { width: 100%; border-radius: 30px; display: block; }
.rd-hero-visual:before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: var(--grad-brand); filter: blur(8px); opacity: .16; z-index: 1;
}
.rd-badge-float {
  position: absolute; z-index: 3; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 15px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.rd-badge-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.rd-badge-float .ic svg { width: 19px; height: 19px; }
.rd-badge-1 { top: 12%; left: -6%; }
.rd-badge-1 .ic { background: var(--grad-success); }
.rd-badge-2 { bottom: 14%; right: -4%; }
.rd-badge-2 .ic { background: var(--grad-gold); color:#3A2A00; }
.rd-badge-float small { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }

/* ---- Feature chips -------------------------------------------------- */
.rd-chips { margin-top: -40px; position: relative; z-index: 5; }
.rd-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rd-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-md);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.rd-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rd-chip .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: var(--grad-brand); }
.rd-chip .ic svg { width: 24px; height: 24px; }
.rd-chip h3 { font-size: 15px; line-height: 1.35; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

/* ---- Generic section spacing --------------------------------------- */
.rd-sec { padding: var(--pad) 0; }
.rd-sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }

/* ---- States --------------------------------------------------------- */
.rd-states { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Benefits ------------------------------------------------------- */
.rd-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rd-benefit {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.rd-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.rd-benefit .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); }
.rd-benefit .ic svg { width: 26px; height: 26px; }
.rd-benefit h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.rd-benefit p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---- Steps ---------------------------------------------------------- */
.rd-steps { background: var(--ink); background-image: var(--grad-mesh); color: #fff; border-radius: 0; }
.rd-steps .rd-title { color: #fff; }
.rd-steps .rd-lead { color: rgba(255,255,255,.7); }
.rd-steps .rd-eyebrow { color: #BFD4FF; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.rd-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.rd-step { position: relative; padding-top: 8px; }
.rd-step .num {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: #fff;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); margin-bottom: 18px;
}
.rd-step:not(:last-child) .num:after {
  content: ""; position: absolute; top: 35px; left: 66px; right: -12px; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,0));
}
.rd-step h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.rd-step p { color: rgba(255,255,255,.68); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---- Showcase / tips split ----------------------------------------- */
.rd-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.rd-split-visual { position: relative; }
.rd-split-visual img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: block; }
.rd-split-visual:before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 62%; height: 62%;
  background: var(--grad-brand); border-radius: var(--r-xl); opacity: .12; z-index: -1;
}
.rd-tips { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 16px; }
.rd-tips li { display: flex; gap: 14px; align-items: flex-start; }
.rd-tips .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-success); color: #fff; margin-top: 1px; }
.rd-tips .tick svg { width: 14px; height: 14px; }
.rd-tips span { color: var(--text); font-size: 15px; line-height: 1.5; }
.rd-tips b { color: var(--ink); }

/* ---- Testimonials --------------------------------------------------- */
.rd-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rd-quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.rd-quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rd-stars { display: flex; gap: 3px; color: var(--accent-600); margin-bottom: 14px; }
.rd-stars svg { width: 17px; height: 17px; }
.rd-quote p { color: var(--text); font-size: 14.5px; line-height: 1.6; flex: 1; margin: 0 0 20px; }
.rd-person { display: flex; align-items: center; gap: 13px; }
.rd-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; color: #fff; background: var(--grad-brand); font-size: 16px; }
.rd-person .nm { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.rd-person .rl { font-size: 12.5px; color: var(--muted); }

/* ---- FAQ ------------------------------------------------------------ */
.rd-faq { max-width: 820px; margin: 0 auto; }
.rd-faq details { margin-bottom: 12px; }
.rd-faq summary { list-style: none; font-size: 1.02rem; }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary:after { content: "+"; font-size: 1.4rem; color: var(--brand-600); line-height: 1; }
.rd-faq details[open] summary:after { content: "\00D7"; }
.rd-faq .rd-faq-body { padding: 4px 22px 20px; color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.rd-faq .rd-faq-body ul { margin: 0; padding-left: 18px; }
.rd-faq .rd-faq-body li { margin-bottom: 10px; }

/* ---- CTA band ------------------------------------------------------- */
.rd-cta { padding: var(--pad) 0; }
.rd-cta-card {
  background: var(--grad-brand); background-image: var(--grad-mesh), var(--grad-brand);
  border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center;
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.rd-cta-card h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); letter-spacing: -0.025em; margin: 0 0 14px; }
.rd-cta-card p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 56ch; margin: 0 auto 30px; }

/* ---- Footer --------------------------------------------------------- */
.rd-footer { background: var(--ink); color: rgba(255,255,255,.66); background-image: radial-gradient(700px 280px at 8% 0%, rgba(37,99,235,.2), transparent 60%); }
.rd-footer .rd-wrap { padding: clamp(48px, 6vw, 72px) 0 34px; }
.rd-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rd-footer-brand { max-width: 340px; }
.rd-footer-brand .rd-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.rd-footer-brand p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.rd-foot-cols { display: flex; gap: clamp(36px, 6vw, 80px); flex-wrap: wrap; }
.rd-foot-col h4 { color: #fff; font-size: 14px; letter-spacing: .02em; margin: 0 0 14px; }
.rd-foot-col a { display: block; color: rgba(255,255,255,.62); font-size: 14px; margin-bottom: 10px; transition: color var(--dur-2) var(--ease-out); }
.rd-foot-col a:hover { color: #fff; }
.rd-footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---- Reveal on scroll ---------------------------------------------- */
.rd-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.rd-reveal.rd-in { opacity: 1; transform: none; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 960px) {
  .rd-hero-grid { grid-template-columns: 1fr; }
  .rd-hero-visual { order: -1; margin-bottom: 8px; }
  .rd-chip-grid, .rd-benefit-grid, .rd-step-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-quote-grid { grid-template-columns: 1fr; }
  .rd-split { grid-template-columns: 1fr; }
  .rd-split-visual { order: -1; }
  .rd-step:not(:last-child) .num:after { display: none; }
}
@media (max-width: 560px) {
  .rd-chip-grid, .rd-benefit-grid, .rd-step-grid { grid-template-columns: 1fr; }
  .rd-chips { margin-top: 24px; }
  .rd-hero-cta .rd-btn { flex: 1 1 100%; }
  .rd-badge-1 { left: 0; }
  .rd-badge-2 { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-reveal { opacity: 1; transform: none; transition: none; }
}
