/* ==============================
   Revest Custom Landing Page
   Static HTML/CSS/JS project
   ============================== */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #66615a;
  --soft-muted: #8e877d;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.16);
  --accent: #d6c7a1;
  --accent-dark: #9b8157;
  --black: #050505;
  --white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(17, 17, 17, 0.08);
  --shadow-card: 0 18px 44px rgba(17, 17, 17, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 6%, rgba(214, 199, 161, 0.42), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, #f8f7f4 0%, #f4f1ea 100%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

p {
  color: var(--muted);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 108px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.54);
  border-block: 1px solid rgba(17, 17, 17, 0.06);
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 68px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  background: rgba(248, 247, 244, 0.82);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--black);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(17, 17, 17, 0.05);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: #252525;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.2);
  outline: none;
}

.btn-small {
  display: none;
  min-height: 44px;
  padding: 0 17px;
  font-size: 13px;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  box-shadow: none;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface);
}

.btn.full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  padding-top: 86px;
  overflow: clip;
}

.hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(214, 199, 161, 0.24);
  filter: blur(30px);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow.dark {
  color: var(--accent-dark);
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 34px;
}

.hero-proof div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.04);
}

.hero-proof span {
  display: block;
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 600;
}

.hero-proof strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.visual-shell {
  position: relative;
  min-height: 520px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  min-height: 482px;
  border-radius: 20px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  width: min(268px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(18px);
}

.floating-card span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
}

.card-top {
  top: 30px;
  left: 30px;
}

.card-bottom {
  right: 30px;
  bottom: 30px;
}

/* Sections */
.section-head {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-head h2,
.split h2,
.faq-layout h2,
.offer-copy h2,
.guarantee h2,
.final-cta h2 {
  max-width: 820px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head p,
.split > div > p,
.offer-copy > p,
.guarantee p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
}

.benefit-grid,
.pain-grid,
.steps,
.bonus-grid {
  display: grid;
  gap: 14px;
}

.premium-card,
.pain-grid article,
.step-card,
.bonus-card,
.receive-list article,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.premium-card:hover,
.pain-grid article:hover,
.step-card:hover,
.bonus-card:hover,
.receive-list article:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 17, 17, 0.18);
  box-shadow: 0 24px 56px rgba(17, 17, 17, 0.09);
}

.premium-card {
  min-height: 248px;
  padding: 26px;
}

.premium-card img {
  margin-bottom: 34px;
}

.premium-card h3,
.pain-grid h3,
.step-card h3,
.bonus-card h3,
.receive-list h3,
.testimonial-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.premium-card p,
.pain-grid p,
.step-card p,
.bonus-card p,
.receive-list p,
.testimonial-card span {
  margin-top: 8px;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 38px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 24px;
}

.pain-grid article {
  padding: 22px;
}

.transformation-grid {
  display: grid;
  gap: 34px;
}

.before-after-panel {
  display: grid;
  gap: 14px;
}

.before-after-panel article {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.before-after-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.before-after-panel span,
.bonus-card span,
.price-card > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-after-panel article span,
.before-after-panel article h3 {
  position: absolute;
  left: 24px;
  z-index: 2;
}

.before-after-panel article span {
  top: 24px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.before-after-panel article h3 {
  right: 24px;
  bottom: 24px;
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.4);
}

.steps {
  counter-reset: step;
}

.step-card {
  padding: 28px;
  background: var(--surface);
}

.step-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 46px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.receive-list {
  display: grid;
  gap: 12px;
}

.receive-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px;
}

.bonus-grid {
  grid-template-columns: 1fr;
}

.bonus-card {
  padding: 30px;
  background: var(--surface);
}

.testimonials-layout {
  display: grid;
  gap: 34px;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: grid;
}

.testimonial-card {
  display: none;
  min-height: 360px;
  padding: 30px;
}

.testimonial-card.is-active {
  display: grid;
  align-content: start;
  gap: 18px;
  animation: fadeScale 360ms ease both;
}

.testimonial-card img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.testimonial-card p {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
}

/* Offer */
.offer-section {
  background: var(--black);
  color: var(--white);
}

.offer-section p {
  color: rgba(255, 255, 255, 0.72);
}

.offer-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  content: "✓";
  font-size: 12px;
  font-weight: 700;
}

.price-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #141414;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.price {
  margin: 4px 0 4px;
  font-size: clamp(58px, 9vw, 82px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.price-meta {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.price-meta span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 600;
}

.price-card small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
}

.guarantee {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.guarantee > span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: 34px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 20px;
  overflow: hidden;
  transition: grid-template-rows 220ms ease, padding 220ms ease;
}

.faq-answer p {
  min-height: 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  padding: 4px 20px 18px;
}

.final-cta {
  text-align: center;
}

.final-cta .container {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.final-cta h2 {
  max-width: 980px;
}

/* Footer */
.footer {
  padding: 40px 0 104px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer a,
.footer p {
  color: var(--muted);
  font-size: 13px;
}

.mobile-sticky {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 247, 244, 0.9);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(18px);
}

.mobile-sticky span {
  font-size: 12px;
  font-weight: 700;
}

.mobile-sticky .btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12px;
  white-space: nowrap;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (min-width: 700px) {
  .container,
  .site-header {
    width: min(100% - 56px, var(--max));
  }

  .main-nav,
  .btn-small {
    display: flex;
  }

  .benefit-grid,
  .pain-grid,
  .steps,
  .bonus-grid,
  .before-after-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guarantee {
    grid-template-columns: auto 1fr;
    padding: 44px;
  }

  .footer {
    padding-bottom: 44px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer p {
    grid-column: 1 / -1;
  }

  .mobile-sticky {
    display: none;
  }
}

@media (min-width: 980px) {
  .hero-grid,
  .split,
  .offer-grid,
  .faq-layout,
  .testimonials-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  }

  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .price-card {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 76px 0;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions .btn,
  .hero-proof,
  .mobile-sticky {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-proof {
    display: grid;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .visual-shell {
    min-height: auto;
  }

  .hero-image {
    min-height: 360px;
  }
}
