/* ===========================================
   Plan B Credit — v4
   Dark cinematic · Emerald accents · Sora type
   Premium, regulated, attractive
   =========================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, a { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; text-decoration: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; font-family: inherit; }

:root {
  /* ===== Surfaces (dark cinematic) ===== */
  --bg: #070A11;                              /* deepest — page bg */
  --bg-2: #0D121C;                            /* one notch up */
  --bg-3: #131A28;                            /* sections */
  --surface: rgba(255,255,255,0.035);         /* glass card base */
  --surface-2: rgba(255,255,255,0.06);        /* glass hover / strong */
  --surface-bright: rgba(255,255,255,0.10);   /* highlighted glass */

  /* ===== Ink ===== */
  --ink: #F2EDE3;                             /* cream white */
  --ink-2: #C9C3B6;                           /* warm muted cream */
  --muted: #7C8190;                           /* slate muted */
  --muted-2: #555A66;                         /* darker muted */
  --placeholder: #4A4F5A;

  /* ===== Borders ===== */
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.12);
  --line-3: rgba(255,255,255,0.18);
  --line-glow: rgba(16,185,129,0.32);

  /* ===== Brand — vivid emerald (totally distinct from cxloan gold) ===== */
  --emerald: #10B981;                         /* primary brand */
  --emerald-soft: #34D399;                    /* lighter */
  --mint: #6EE7B7;                            /* highlight */
  --mint-bright: #A7F3D0;                     /* glow tint */
  --emerald-deep: #047857;                    /* shadow tone */
  --emerald-vivid: #059669;                   /* hover */

  /* ===== Accent colors (used sparingly for variety) ===== */
  --cyan: #22D3EE;
  --purple: #A78BFA;
  --rose: #FB7185;

  /* ===== Status ===== */
  --green: #34D399;
  --red: #F87171;
  --amber: #FBBF24;
  --blue: #60A5FA;

  /* ===== Rich gradients ===== */
  --grad-emerald: linear-gradient(135deg, #6EE7B7 0%, #10B981 50%, #047857 100%);
  --grad-emerald-soft: linear-gradient(135deg, #A7F3D0 0%, #34D399 100%);
  --grad-emerald-glow: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --grad-midnight: linear-gradient(180deg, #070A11 0%, #131A28 100%);

  /* ===== Shadows — premium depth ===== */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.30);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.35);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.70), 0 12px 40px rgba(0,0,0,0.45);
  --shadow-emerald: 0 14px 40px rgba(16,185,129,0.40), 0 4px 14px rgba(16,185,129,0.30);
  --shadow-emerald-hover: 0 22px 60px rgba(16,185,129,0.50), 0 8px 20px rgba(16,185,129,0.36);

  /* ===== Radii ===== */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
}

/* ===== Base body ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px; line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1, "ss01" 1;
  position: relative;
}

/* Headings use Sora — geometric, premium, distinct */
h1, h2, h3, h4, .display, .h-title, .hero h1 {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -0.03em;
}

/* ===== Grain texture (subtle film grain) ===== */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}

/* ===== Mesh gradient background (cinematic) ===== */
.mesh-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: meshFloat 26s ease-in-out infinite alternate;
}
.mesh-blob.b1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(16,185,129,0.55) 0%, transparent 65%);
  top: -180px; right: -140px;
  animation-duration: 28s;
}
.mesh-blob.b2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(34,211,238,0.30) 0%, transparent 65%);
  bottom: 10%; left: -120px;
  animation-duration: 34s; animation-delay: -8s;
}
.mesh-blob.b3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(167,139,250,0.22) 0%, transparent 65%);
  top: 50%; right: 8%;
  animation-duration: 30s; animation-delay: -16s;
}
.mesh-blob.b4 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(110,231,183,0.20) 0%, transparent 65%);
  top: 25%; left: 28%;
  animation-duration: 32s; animation-delay: -4s;
}
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, -40px) scale(1.10); }
  66%  { transform: translate(-40px, 50px) scale(0.95); }
  100% { transform: translate(30px, 25px) scale(1.05); }
}

/* All content sits above */
body > nav, body > section, body > footer, body > div:not(.grain):not(.mesh-bg) { position: relative; z-index: 2; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
@media (min-width: 768px) { .container { padding: 0 36px; } }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(7,10,17,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ===== Logo (very distinct from cxloan) ===== */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.logo-dot {
  display: inline-block;
  width: 11px; height: 11px;
  background: var(--grad-emerald-glow);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(16,185,129,0.18),
    0 0 18px rgba(16,185,129,0.55),
    inset 0 0 4px rgba(255,255,255,0.4);
  position: relative;
  flex-shrink: 0;
}
.logo-dot::after {
  content: '';
  position: absolute; inset: -3px;
  background: var(--emerald);
  border-radius: 50%;
  opacity: 0.5;
  animation: dotPulse 2.2s ease infinite;
}
@keyframes dotPulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
.logo .lo-b {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.nav-link {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 100px;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--mint); background: rgba(16,185,129,0.07);
}

@media (min-width: 600px) {
  .nav { padding: 16px 0; }
  .logo { font-size: 24px; }
  .nav-link { font-size: 13.5px; padding: 10px 16px; }
}

/* ===== Hero ===== */
.hero {
  padding: 40px 0 30px;
  position: relative;
}
@media (min-width: 600px) { .hero { padding: 80px 0 60px; } }

.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1.0; letter-spacing: -0.045em;
  margin-bottom: 22px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(16,185,129,0.40);
}
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-2);
  margin-bottom: 32px; max-width: 580px; line-height: 1.55;
  font-weight: 400;
}
.hero-sub strong { color: var(--mint); font-weight: 600; }

/* ===== Live badge / chip ===== */
.live-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  color: var(--mint);
  text-transform: uppercase; letter-spacing: 0.10em;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.live-dot {
  width: 7px; height: 7px;
  background: var(--mint);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(110,231,183,0.6);
}
.live-dot::after {
  content: ''; position: absolute; inset: -3px;
  background: var(--mint); border-radius: 50%;
  animation: dotPulse 1.6s ease infinite;
  opacity: 0.6;
}

/* Generic tag */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(10px);
}
.chip .ico { font-size: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 30px;
  background: var(--grad-emerald-glow);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: white;
  border: none; border-radius: 100px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: background-position 0.4s, transform 0.15s, box-shadow 0.25s;
  box-shadow: var(--shadow-emerald);
  min-height: 54px;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  height: 100%; width: 60%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-22deg);
  animation: shimmer 4.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 75% { left: -120%; }
  100% { left: 200%; }
}
.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-emerald-hover);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  min-height: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--line-glow);
  background: var(--surface-2);
  transform: translateY(-2px);
  color: var(--mint);
}

/* ===== Cards (glass) ===== */
.glass {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
@media (min-width: 600px) { .glass { padding: 32px; border-radius: var(--r-xl); } }

/* Glassy with inner emerald glow */
.glass-glow {
  background: linear-gradient(180deg, rgba(16,185,129,0.04), rgba(255,255,255,0.025));
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 26px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
@media (min-width: 600px) { .glass-glow { padding: 36px; border-radius: var(--r-2xl); } }

/* ===== Sections ===== */
.section { padding: 56px 0; }
@media (min-width: 600px) { .section { padding: 90px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.h-title {
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 16px; line-height: 1.0;
  color: var(--ink);
}
.h-title em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h-sub {
  font-size: 17px; color: var(--ink-2);
  margin-bottom: 40px; max-width: 620px; line-height: 1.6;
  font-weight: 400;
}

/* ===== Footer ===== */
footer {
  position: relative; z-index: 2;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 60px;
}
@media (min-width: 600px) {
  footer { padding: 64px 0 36px; margin-top: 90px; }
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-bottom: 30px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}
.footer-brand {
  color: var(--ink-2); font-size: 14px; line-height: 1.6;
  margin-top: 14px; max-width: 360px;
}
.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.footer-col a {
  display: block; padding: 5px 0;
  color: var(--muted); font-size: 14px;
  transition: color 0.15s, transform 0.15s;
}
.footer-col a:hover { color: var(--mint); transform: translateX(2px); }

.footer-disc {
  font-size: 11px; line-height: 1.7;
  color: var(--muted);
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
@media (min-width: 600px) {
  .footer-disc { font-size: 12px; padding: 22px 26px; }
}
.footer-disc strong { color: var(--ink); font-weight: 700; }

.footer-bottom {
  display: flex; justify-content: space-between;
  flex-direction: column; align-items: flex-start;
  font-size: 12px; color: var(--muted);
  gap: 8px;
}
@media (min-width: 600px) {
  .footer-bottom { flex-direction: row; align-items: center; gap: 10px; }
}

/* Form inputs */
input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], input[type="password"], select, textarea {
  font-size: 16px;
  font-family: inherit;
}

button, a.btn-primary, a.btn-secondary, .nav-link { touch-action: manipulation; }

::selection { background: rgba(16,185,129,0.40); color: var(--ink); }
