/*
Theme Name: lending-rdf
Theme URI: https://example.com/
Author: OpenAI
Description: Landing page theme with ACF-powered RDF Exchange home template.
Version: 1.1.0
Text Domain: lending-rdf
*/

:root {
  --rdf-bg-dark: #0d0f14;
  --rdf-bg-dark-2: #151926;
  --rdf-gradient-1: #0d0f14;
  --rdf-gradient-2: #2a0b5a;
  --rdf-purple-1: #6f00ff;
  --rdf-purple-2: #a100ff;
  --rdf-purple-3: #4b00d1;
  --card-bg: #f7f7f8;
  --text-main: #111111;
  --text-muted: #8a8a8a;
  --btn-blue: #2f8fe8;
  --btn-blue-hover: #247fd2;
  --card-radius: 28px;
  --card-shadow: 0 24px 60px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

/* only on RDF template */
body.page-template-template-rdf-home {
  background-color: #0d0f14;
  background: #0d0f14;
  overflow: hidden;
  margin: 0;
}

.rdf-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  background-color: var(--rdf-gradient-1, #0d0f14);
  background-image:
    linear-gradient(135deg, rgba(13,15,20,.18) 0%, rgba(13,15,20,.10) 100%),
    linear-gradient(135deg, rgb(var(--rdf-gradient-1-rgb, 13 15 20) / .68) 0%, rgb(var(--rdf-gradient-2-rgb, 42 11 90) / .60) 50%, rgb(var(--rdf-gradient-1-rgb, 13 15 20) / .68) 100%),
    radial-gradient(circle at 8% 18%, rgba(161,0,255,.18) 0%, rgba(161,0,255,.08) 26%, transparent 40%),
    radial-gradient(circle at 88% 86%, rgba(111,0,255,.22) 0%, rgba(111,0,255,.09) 26%, transparent 42%),
    radial-gradient(circle at 50% 16%, rgba(90,40,255,.09), transparent 38%),
    var(--rdf-bg-image, url('assets/images/money-bg.jpg'));
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: center center, center center, 8% 18%, 88% 86%, 50% 16%, center center;
  background-size: cover, cover, auto, auto, auto, cover;
  background-blend-mode: normal, normal, screen, screen, screen, normal;
  position: relative;
}

body.admin-bar .rdf-page { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); }
@media (max-width: 782px) {
  body.admin-bar .rdf-page { min-height: calc(100vh - 46px); min-height: calc(100svh - 46px); }
}

.rdf-page::before,
.rdf-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}
.rdf-page::before {
  width: 340px; height: 340px;
  top: 6%; left: -70px;
  background: radial-gradient(circle, rgba(161,0,255,.28) 0%, rgba(111,0,255,.09) 48%, transparent 70%);
}
.rdf-page::after {
  width: 360px; height: 360px;
  right: -70px; bottom: -80px;
  background: radial-gradient(circle, rgba(111,0,255,.28) 0%, rgba(75,0,209,.10) 48%, transparent 70%);
}

.rdf-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  height: min(554px, calc(100svh - 32px));
  max-height: 554px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px 18px;
}
body.admin-bar .rdf-card { height: min(554px, calc(100svh - 64px)); }
@media (max-width: 782px) { body.admin-bar .rdf-card { height: min(554px, calc(100svh - 78px)); } }

.rdf-logo-circle {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  flex: 0 0 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #080b14;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 0 16px;
  align-self: center;
}
.rdf-logo-circle img {
  width: 80%;
  max-width: 96px;
  max-height: 60px;
  height: auto;
  display: block;
  object-fit: contain;
}

.rdf-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rdf-subscribers {
  margin: 10px 0 20px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
}

.rdf-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.rdf-list-content {
  margin: 16px 0 22px;
  width: 100%;
  font-size: 15px;
  line-height: 1.35;
}
.rdf-list-content p { margin: 6px 0; }
.rdf-list-content ul,
.rdf-list-content ol {
  margin: 0;
  padding-left: 1.2em;
  display: inline-block;
  text-align: left;
}
.rdf-list-content li {
  margin: 6px 0;
}

.rdf-btn {
  margin-top: auto;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--btn-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.rdf-btn:hover { background: var(--btn-blue-hover); transform: translateY(-1px); }
.rdf-btn:active { transform: translateY(0); }

.rdf-preview {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

@media (max-width: 480px) {
  .rdf-page { padding: 10px; }
  .rdf-card { padding: 16px 14px 14px; border-radius: 22px; }
  .rdf-logo-circle { width: 110px; height: 110px; min-width: 110px; min-height: 110px; flex-basis: 110px; margin-bottom: 13px; }
  .rdf-logo-circle img { width: 80%; max-width: 84px; max-height: 52px; }
  .rdf-title { font-size: 27px; }
  .rdf-subscribers { font-size: 16px; margin-bottom: 14px; }
  .rdf-desc, .rdf-list-content, .rdf-preview { font-size: 15px; }
  .rdf-list-content { margin: 12px 0 16px; }
}
