/* ============================================================
   LoanOS — Marketing micro-site
   Brand: #1d4ed8 (royal blue) · Inter · mobile-first
   Self-contained, zero-dependency CSS.
   ============================================================ */

:root {
  --brand: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-dark: #1e3a8a;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --ink: #0b1220;
  --ink-2: #1f2937;
  --muted: #5b6472;
  --muted-2: #8a93a3;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --green: #16a34a;
  --green-50: #ecfdf3;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px -12px rgba(29, 78, 216, .28);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(29,78,216,.28); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29,78,216,.34); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 10px rgba(29,78,216,.35);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 62%); }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.22), transparent 62%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 850; margin: 18px 0 0; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

.hero-shot { position: relative; }
.hero-shot img {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-shot .float {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.hero-shot .float .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; }
.float.f1 { left: -26px; top: 34px; }
.float.f2 { right: -22px; bottom: 30px; }
.float .sub { color: var(--muted-2); font-weight: 500; font-size: 11.5px; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { padding: 22px 0; display: flex; align-items: center; gap: 14px 30px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.trust-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.trust-chip svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- Positioning / stats ---------- */
.bg-soft { background: var(--bg-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 34px; font-weight: 850; letter-spacing: -.03em; color: var(--brand); }
.stat .l { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 16px;
}
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Showcase (alternating) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 84px; }
.showcase:first-of-type { margin-top: 0; }
.showcase.reverse .sc-text { order: 2; }
.sc-text .eyebrow { margin-bottom: 12px; display: block; }
.sc-text h3 { font-size: 27px; margin-bottom: 14px; letter-spacing: -.02em; }
.sc-text p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.sc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.sc-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.sc-list li svg { flex: none; width: 19px; height: 19px; color: var(--green); margin-top: 1px; }
.sc-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.sc-shot.phone { display: flex; justify-content: center; }
.sc-shot.phone img { max-width: 290px; border-radius: 26px; padding: 8px; background: #0b1220; }

/* ---------- Comparison table ---------- */
.compare-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; font-size: 14.5px; }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg-soft); position: sticky; top: 0; }
table.compare tbody td:first-child { font-weight: 600; color: var(--ink-2); }
table.compare .col-loanos { background: linear-gradient(180deg, rgba(29,78,216,.06), rgba(29,78,216,.02)); }
table.compare thead .col-loanos { background: var(--brand); color: #fff; }
table.compare thead .col-loanos .tag { display: block; font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: .04em; }
table.compare tbody tr:last-child td { border-bottom: none; }
.yes, .no, .partial { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.yes { color: var(--green); }
.no { color: var(--muted-2); }
.partial { color: var(--amber); }
.cell-icon { width: 17px; height: 17px; flex: none; }
.col-loanos .yes { color: var(--brand); }
.compare-foot { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; }

/* ---------- Cost-to-value positioning ---------- */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.quadrant { position: relative; aspect-ratio: 1 / .82; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.quadrant .axis-y, .quadrant .axis-x { position: absolute; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.quadrant .axis-y { top: 50%; left: -8px; transform: rotate(-90deg) translateX(50%); transform-origin: left; }
.quadrant .grid-bg { position: absolute; inset: 22px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.quadrant .pt { position: absolute; transform: translate(-50%, 50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quadrant .pt .ball { width: 14px; height: 14px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.quadrant .pt .lbl { font-size: 11.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.quadrant .pt.loanos .ball { background: var(--brand); box-shadow: 0 0 0 6px rgba(29,78,216,.18); width: 18px; height: 18px; }
.quadrant .pt.loanos .lbl { color: var(--brand); font-weight: 800; font-size: 13px; }
.axis-cap { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); text-align: center; margin-top: 8px; }
.value-list { display: grid; gap: 18px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.value-item .ic svg { width: 21px; height: 21px; }
.value-item h3 { font-size: 17px; margin-bottom: 4px; }
.value-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .ribbon { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 19px; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 6px 0 18px; min-height: 40px; }
.plan .price { font-size: 38px; font-weight: 850; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .price-note { font-size: 13px; color: var(--muted-2); margin: 6px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Ownership model ---------- */
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.own-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.own-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.own-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.own-card .ic svg { width: 23px; height: 23px; }
.own-card h3 { font-size: 18px; margin-bottom: 8px; }
.own-card p { color: var(--muted); font-size: 14px; }
.own-cta {
  margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand-50), #fff); border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 24px 28px;
}
.own-cta div { font-size: 14.5px; color: var(--ink-2); max-width: 720px; }
.own-cta strong { color: var(--ink); }
.own-cta .btn { flex: none; }

/* ---------- Builders (BlastAsia / Xamun) ---------- */
.builders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.builder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.builder-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.builder-mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; font-size: 20px; color: #fff; flex: none; letter-spacing: -.02em; }
.builder-mark.ba { background: linear-gradient(135deg, #0b1220, #1f2937); }
.builder-mark.xa { background: linear-gradient(135deg, var(--brand), var(--brand-light)); }
.builder h3 { font-size: 21px; line-height: 1.1; }
.builder-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-top: 2px; }
.builder > p { color: var(--muted); font-size: 15px; margin: 14px 0 16px; }
.builder ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.builder li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.builder li svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.builder .yrs { font-size: 30px; font-weight: 850; color: var(--brand); letter-spacing: -.03em; line-height: 1; }

/* ---------- Legal / license page ---------- */
.legal-head { background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.legal-back { font-size: 14px; color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.legal-back:hover { text-decoration: underline; }
.legal-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 850; }
.legal-head p { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 720px; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.legal-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 13.5px; margin: 32px auto; line-height: 1.6; }
.summary-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin: 32px auto; }
.summary-card h2 { font-size: 22px; margin-bottom: 16px; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.summary-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.summary-card li svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.summary-card li.no svg { color: var(--red); }
.legal-body { padding: 20px 0 60px; }
.legal-body h2 { font-size: 21px; margin: 38px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-body h2:first-child { border-top: none; padding-top: 0; }
.legal-body h3 { font-size: 16px; margin: 22px 0 6px; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.legal-body p { margin: 10px 0; }
.legal-body ul { margin: 10px 0; padding-left: 22px; }
.legal-body li { margin: 6px 0; }
.legal-body strong { color: var(--ink); }
.legal-body code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; color: var(--brand-dark); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-body table td, .legal-body table th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aud .ic { font-size: 26px; margin-bottom: 12px; }
.aud h3 { font-size: 16px; margin-bottom: 6px; }
.aud p { color: var(--muted); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(130deg, var(--brand-dark), var(--brand) 55%, var(--brand-light));
  color: #fff; border-radius: 26px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.16), transparent 45%); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.86); font-size: 18px; max-width: 560px; margin: 16px auto 28px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.foot-grid a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.foot-grid a:hover { color: var(--brand); }
.foot-about p { font-size: 14px; max-width: 280px; margin-top: 14px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-credits { color: var(--muted); }
.foot-credits strong { color: var(--ink-2); font-weight: 700; }
.foot-disclaimer { max-width: 760px; font-size: 12px; color: var(--muted-2); margin-top: 18px; line-height: 1.6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .showcase, .showcase.reverse .sc-text, .value-grid { grid-template-columns: 1fr; }
  .showcase.reverse .sc-text { order: 0; }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .own-grid { grid-template-columns: repeat(2, 1fr); }
  .builders { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { gap: 32px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .features, .audience, .stats, .own-grid { grid-template-columns: 1fr; }
  .own-cta { flex-direction: column; align-items: flex-start; }
  .cta { padding: 48px 26px; }
  .hero-shot .float { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
