/* LeVrage SaaS demo — modern dark fintech. Glass, glow, animated aurora.
   Reskin surface: the accent gradient (--a1/--a2) + brand color. */

:root {
  --ink: #0f0f0f;
  --ink-2: #16140f;
  --text: #e9eef5;
  --muted: #8593a6;
  --a1: #C8A96E;      /* LeVrage gold */
  --a2: #E8CD9A;      /* champagne   */
  --a3: #9C7C45;      /* deep gold  */
  --good: #4ade80;
  --bad: #f8768b;
  --glass: rgba(255,255,255,0.035);
  --glass-line: rgba(255,255,255,0.09);
  --sans: -apple-system, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--ink); color: var(--text); font-family: var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(26px); }
.grad {
  background: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--a1); font-weight: 600; }

/* aurora backdrop */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #1a160e 0%, var(--ink) 60%); }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 22s ease-in-out infinite; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: radial-gradient(circle, rgba(200,169,110,0.38), transparent 70%); }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: 6vw; background: radial-gradient(circle, rgba(232,205,154,0.30), transparent 70%); animation-delay: -7s; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; left: 30vw; top: 40vw; background: radial-gradient(circle, rgba(156,124,69,0.35), transparent 70%); animation-delay: -14s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(6vw,4vw) scale(1.12); } 66% { transform: translate(-4vw,2vw) scale(0.95); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.5rem; border-radius: 10px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; border: 1px solid transparent; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-solid { background: linear-gradient(100deg, var(--a1), var(--a2)); color: #04231a; box-shadow: 0 8px 30px rgba(200,169,110,0.28); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(200,169,110,0.42); }
.btn-ghost { border-color: var(--glass-line); color: var(--text); background: var(--glass); }
.btn-ghost:hover { border-color: var(--a2); transform: translateY(-2px); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 3rem; background: linear-gradient(rgba(8,11,17,0.85), transparent); backdrop-filter: blur(10px); }
.nav-brand { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-brand span { background: linear-gradient(100deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:not(.btn) { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; padding: 8rem 3rem 4rem; max-width: 1320px; margin: 0 auto; }
.hero-copy h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; margin: 1.1rem 0 1.3rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-trust { font-size: 0.82rem; color: var(--muted); }

/* hero mockup */
.hero-mock { position: relative; }
.browser { background: var(--ink-2); border: 1px solid var(--glass-line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
.browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--glass-line); background: rgba(255,255,255,0.02); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3342; }
.browser-bar em { margin-left: 0.8rem; font-style: normal; font-size: 0.72rem; color: var(--muted); }
.browser-body { padding: 1.4rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.mock-title { font-weight: 600; font-size: 0.95rem; }
.mock-pill { font-size: 0.72rem; padding: 0.28rem 0.7rem; border-radius: 20px; background: rgba(232,205,154,0.14); color: var(--a2); border: 1px solid rgba(232,205,154,0.3); }
.mock-pill.approved { background: rgba(200,169,110,0.15); color: var(--good); border-color: rgba(200,169,110,0.4); }
.mock-gauge { position: relative; width: 140px; height: 140px; margin: 0 auto 1.2rem; }
.gauge { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 9; }
.gauge-fill { fill: none; stroke: url(#g) ; stroke: var(--a1); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 120; transition: stroke-dashoffset 0.8s ease, stroke 0.4s; filter: drop-shadow(0 0 6px rgba(200,169,110,0.38)); }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num strong { font-size: 1.8rem; font-weight: 700; }
.gauge-num span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.1em; }
.mock-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.mock-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.55rem 0.8rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 8px; }
.mock-row em { font-style: normal; font-weight: 600; }
.up { color: var(--good); }
.float-card { position: absolute; padding: 0.8rem 1rem; background: rgba(13,18,27,0.9); border: 1px solid var(--glass-line); border-radius: 12px; font-size: 0.72rem; color: var(--muted); backdrop-filter: blur(8px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: floaty 6s ease-in-out infinite; }
.float-card b { color: var(--text); font-size: 0.9rem; }
.fc-1 { top: 8%; left: -8%; }
.fc-2 { bottom: 10%; right: -6%; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* trust strip */
.trust { text-align: center; padding: 4rem 3rem; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.trust > span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.4rem; }
.chips span { padding: 0.5rem 1.1rem; border: 1px solid var(--glass-line); border-radius: 20px; font-size: 0.85rem; color: var(--text); background: var(--glass); }

/* headings */
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

/* loop (pinned) */
.loop { padding: 0 3rem; }
.loop-pin { max-width: 1200px; margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 6rem 0; }
.loop-copy h2 { margin: 1rem 0 2rem; }
.loop-steps { display: flex; flex-direction: column; gap: 1rem; }
.lstep { display: flex; gap: 1.1rem; padding: 1.2rem; border-radius: 14px; border: 1px solid transparent; opacity: 0.4; transition: all 0.4s; }
.lstep.active { opacity: 1; background: var(--glass); border-color: var(--glass-line); }
.ln { font-size: 1.1rem; font-weight: 700; color: var(--a1); }
.lstep h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.lstep p { font-size: 0.92rem; color: var(--muted); }
.loop-mock .browser-body { min-height: 340px; position: relative; padding: 0; }
.lpanel { display: flex; flex-direction: column; }
.lp-shot { width: 100%; flex: 1; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--glass-line); min-height: 0; }
.lp-cap { font-size: 0.78rem; color: var(--muted); padding-top: 0.7rem; text-align: center; }
.lpanel { position: absolute; inset: 1.4rem; opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; }
.lpanel.active { opacity: 1; transform: translateY(0); }
.lp-title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.lp-list { display: flex; flex-direction: column; gap: 0.6rem; }
.lp-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 10px; font-size: 0.9rem; }
.lp-item em { font-style: normal; font-weight: 700; }
.lp-item.bad { border-color: rgba(248,118,139,0.3); } .lp-item.bad em { color: var(--bad); }
.lp-item.ok { border-color: rgba(200,169,110,0.3); } .lp-item.ok em { color: var(--good); }

/* score simulator */
.sim { padding: 8rem 3rem; max-width: 1100px; margin: 0 auto; }
.sim-head { text-align: center; margin-bottom: 3.5rem; }
.sim-head h2 { margin: 0.8rem 0; }
.sim-sub { color: var(--muted); max-width: 34rem; margin: 0 auto; }
.sim-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sim-gauge-wrap { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.big-gauge { transform: rotate(-90deg); width: 100%; height: 100%; }
.bg-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 14; }
.bg-fill { fill: none; stroke: var(--a1); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 590; stroke-dashoffset: 260; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1), stroke 0.5s; filter: drop-shadow(0 0 10px rgba(200,169,110,0.55)); }
.bg-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bg-center strong { font-size: 3.4rem; font-weight: 700; letter-spacing: -0.02em; }
.bg-center > span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.status-pill { margin-top: 1rem; padding: 0.45rem 1.2rem; border-radius: 22px; font-size: 0.85rem; font-weight: 600; transition: all 0.4s; }
.status-pill.declined { background: rgba(248,118,139,0.14); color: var(--bad); border: 1px solid rgba(248,118,139,0.4); }
.status-pill.approved { background: rgba(200,169,110,0.16); color: var(--good); border: 1px solid rgba(200,169,110,0.38); box-shadow: 0 0 30px rgba(200,169,110,0.35); }
.sim-hint { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.sim-hint b { color: var(--text); }
.toggle { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem; margin-bottom: 0.7rem; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.toggle:hover { border-color: var(--a2); }
.toggle input { display: none; }
.tg-box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--muted); flex-shrink: 0; position: relative; transition: all 0.2s; }
.toggle input:checked + .tg-box { background: linear-gradient(100deg, var(--a1), var(--a2)); border-color: transparent; }
.toggle input:checked + .tg-box::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #04231a; font-size: 0.8rem; font-weight: 800; }
.tg-label { font-size: 0.95rem; display: flex; justify-content: space-between; width: 100%; }
.tg-label em { font-style: normal; color: var(--good); font-weight: 700; }
.toggle input:checked ~ .tg-label { color: var(--text); }
.sim-foot { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* features */
.features { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; }
.features h2 { text-align: center; margin-bottom: 3rem; max-width: 22ch; margin-left: auto; margin-right: auto; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.fcard { padding: 2rem 1.6rem; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); transition: transform 0.3s, border-color 0.3s; }
.fcard:hover { transform: translateY(-5px); border-color: var(--a2); }
.fic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, rgba(200,169,110,0.18), rgba(232,205,154,0.14)); color: var(--a1); font-size: 1.3rem; margin-bottom: 1.1rem; }
.fcard h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.fcard p { font-size: 0.92rem; color: var(--muted); }

/* app / phone mockups */
.app { max-width: 1200px; margin: 0 auto; padding: 7rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.app-copy h2 { margin: 1rem 0 1.4rem; }
.app-lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.app-points { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.app-points li { position: relative; padding-left: 1.8rem; color: var(--text); font-size: 0.98rem; }
.app-points li::before { content: "→"; position: absolute; left: 0; color: var(--a1); font-weight: 700; }

.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.device {
  width: 252px; border-radius: 40px; background: #05070b;
  border: 8px solid #161c26; padding: 0; position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,0.6); overflow: hidden;
}
.device .notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 42%; height: 22px; background: #05070b; border-radius: 0 0 14px 14px; z-index: 3; }
.device .screen { padding: 2rem 1rem 1.2rem; min-height: 500px; background: radial-gradient(120% 60% at 50% 0%, #16130d, #0b0906 70%); }
.device .screen.screen-shot { padding: 0; overflow: hidden; }
.phone-shot { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: top center; display: block; }
.device-back { transform: rotate(-8deg) translateX(28px) scale(0.94); opacity: 0.92; }
.device-front { transform: rotate(5deg) translateX(-28px); position: relative; z-index: 2; animation: floaty 7s ease-in-out infinite; }
.device-back { animation: floaty 7s ease-in-out infinite; animation-delay: -3.5s; }

.app-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.app-brand { font-weight: 700; font-size: 0.95rem; } .app-brand b { color: var(--a1); }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 8px var(--a1); }
.app-count { font-size: 0.72rem; color: var(--muted); }
.app-borrower { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; margin-bottom: 1rem; }
.av { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04231a; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 0.72rem; }
.app-borrower strong { display: block; font-size: 0.9rem; } .app-borrower span { font-size: 0.72rem; color: var(--muted); }
.app-gauge { position: relative; width: 110px; height: 110px; margin: 0 auto 0.9rem; }
.app-gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ag-track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 7; }
.ag-fill { fill: none; stroke: var(--a1); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 63; filter: drop-shadow(0 0 5px rgba(200,169,110,0.38)); }
.ag-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ag-num strong { font-size: 1.5rem; font-weight: 700; } .ag-num span { font-size: 0.6rem; color: var(--muted); }
.app-status { text-align: center; font-size: 0.82rem; font-weight: 600; padding: 0.5rem; border-radius: 10px; margin-bottom: 1rem; }
.app-status.ok { background: rgba(200,169,110,0.14); color: var(--good); border: 1px solid rgba(200,169,110,0.35); }
.app-list { display: flex; flex-direction: column; gap: 0.45rem; }
.al-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 0.55rem 0.7rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 9px; }
.al-row em { font-style: normal; font-weight: 700; }

.pl { display: flex; flex-direction: column; gap: 0.55rem; }
.pl-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 10px; }
.pl-name { flex: 1; font-size: 0.85rem; font-weight: 600; } .pl-name span { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 400; }
.pl-pill { font-size: 0.66rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 14px; }
.pl-pill.ok { background: rgba(200,169,110,0.15); color: var(--good); }
.pl-pill.fix { background: rgba(232,205,154,0.15); color: var(--a2); }
.pl-pill.rev { background: rgba(156,124,69,0.15); color: var(--a3); }

/* proof band */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; padding: 5rem 3rem; text-align: center; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.pstat strong { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; background: linear-gradient(100deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.pstat span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; }

/* pricing */
.pricing { padding: 8rem 3rem; max-width: 900px; margin: 0 auto; text-align: center; }
.pricing h2 { margin-bottom: 3rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plan { padding: 2.4rem; border: 1px solid var(--glass-line); border-radius: 18px; background: var(--glass); text-align: left; position: relative; }
.plan.featured { border-color: rgba(200,169,110,0.38); box-shadow: 0 20px 60px rgba(200,169,110,0.12); }
.plan-tag { position: absolute; top: -0.8rem; left: 2.4rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 20px; background: linear-gradient(100deg, var(--a1), var(--a2)); color: #04231a; font-weight: 700; }
.plan-name { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.plan-price { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.plan-price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin-bottom: 1.8rem; }
.plan li { padding: 0.5rem 0; font-size: 0.92rem; color: var(--muted); padding-left: 1.5rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--a1); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* final cta */
.cta { padding: 8rem 3rem; }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 4rem 3rem; border: 1px solid var(--glass-line); border-radius: 24px; background: radial-gradient(120% 120% at 50% 0%, rgba(200,169,110,0.1), var(--glass)); }
.cta-inner h2 { margin-bottom: 0.8rem; }
.cta-inner p { color: var(--muted); margin-bottom: 2rem; }
.cta-inner .hero-cta { justify-content: center; }

/* footer */
.foot { display: flex; justify-content: space-between; align-items: center; padding: 2rem 3rem; border-top: 1px solid var(--glass-line); font-size: 0.78rem; color: var(--muted); }

/* responsive */
@media (max-width: 940px) {
  .nav { padding: 1rem 1.4rem; }
  .nav-links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; padding: 7rem 1.4rem 3rem; }
  .hero-mock { margin-top: 2rem; }
  .fc-1, .fc-2 { display: none; }
  .loop-pin { grid-template-columns: 1fr; gap: 2rem; }
  .loop-mock { display: none; }
  .sim-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .fgrid { grid-template-columns: 1fr; }
  .proof, .plans { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; gap: 2.5rem; }
  .phones { min-height: 520px; transform: scale(0.9); }
  .loop, .sim, .features, .pricing, .cta, .app { padding-left: 1.4rem; padding-right: 1.4rem; }
}
