/* ===================================================================
   Blue Stone Factoring Limited — site styles
   Recreated from the Claude Design export (Blue Stone.dc.html).
   Fonts: Space Grotesk (display) + Manrope (text). Accent: #2766D9.
   =================================================================== */

:root {
  --accent: #2766D9;
  --accent-bright: #6F9BF0;
  --ink: #0B1120;
  --text: #0C0E12;
  --muted: #5A626E;
  --label: #9AA1AC;
  --border: #E7EBF1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: #0B1120;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
}
/* the page canvas sits on white; hero/footer paint their own dark ground */
body { background: #fff; overflow-x: hidden; width: 100%; }
::selection { background: rgba(39, 102, 217, .2); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- animations ---------- */
@keyframes bsUp     { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bsFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsFloat  { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -20px); } }
@keyframes bsReveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes bsMarquee{ from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bsGrow   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bsSpin   { from { transform: rotate(24deg); } to { transform: rotate(384deg); } }

/* ---------- shared ---------- */
.container { max-width: 1240px; margin: 0 auto; }
.section { padding: clamp(90px, 13vw, 140px) clamp(20px, 5vw, 56px); }

.h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--text);
  text-wrap: balance;
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow > span:last-child {
  font: 600 12px/1 'Manrope', sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
.eyebrow__dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.eyebrow__dot--accent { background: var(--accent); }
.eyebrow__dot--white  { background: #fff; }
.eyebrow--light > span:last-child {
  font-size: 13px; letter-spacing: .24em; color: rgba(255,255,255,.55);
}
.eyebrow--light .eyebrow__dot { background: var(--accent-bright); }
.eyebrow--onaccent > span:last-child { color: rgba(255,255,255,.62); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  border-radius: 11px;
  transition: transform .2s, box-shadow .2s, border-color .2s, opacity .2s;
}
.btn__arrow { font-size: 17px; }
.btn--primary {
  background: var(--accent); color: #fff; padding: 16px 28px;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 42%, transparent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn--ghost {
  color: #fff; padding: 16px 24px;
  border: 1px solid rgba(255,255,255,.22);
}
.btn--ghost:hover { border-color: rgba(255,255,255,.75); transform: translateY(-2px); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform-origin: 0 50%;
  animation: bsGrow 1s linear both;
  animation-timeline: scroll();
  pointer-events: none;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  animation: bsReveal .8s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}
.reveal--delay { animation-delay: .1s; }
.reveal--d1 { animation-delay: .06s; animation-range: entry 0% cover 18%; }
.reveal--d2 { animation-delay: .12s; animation-range: entry 0% cover 18%; }
.reveal--d3 { animation-delay: .15s; }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(11,17,32,0);
  border-bottom: 1px solid rgba(255,255,255,0);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background .35s ease, border-color .35s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.86);
  border-bottom-color: #EEF0F3;
}
.logo { display: grid; align-items: center; }
.logo img {
  grid-area: 1 / 1; height: 34px; width: auto;
  transition: opacity .3s;
}
.logo .logo-light { opacity: 1; }
.logo .logo-dark  { opacity: 0; }
.site-header.scrolled .logo .logo-light { opacity: 0; }
.site-header.scrolled .logo .logo-dark  { opacity: 1; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72);
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  transition: color .25s;
}
.nav-link:hover { color: #fff; }
.site-header.scrolled .nav-link { color: #3A414C; }
.site-header.scrolled .nav-link:hover { color: #0C0E12; }

.lang {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.lang button {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: rgba(255,255,255,.5); transition: color .25s;
}
.lang button.active { color: #9FC0F7; }
.lang .divider { color: rgba(255,255,255,.3); }
.site-header.scrolled .lang button { color: #9AA1AC; }
.site-header.scrolled .lang button.active { color: var(--accent); }
.site-header.scrolled .lang .divider { color: #C2C9D2; }

.header-cta {
  margin-left: 12px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 11px 20px; border-radius: 9px; white-space: nowrap;
  transition: opacity .2s, background .3s, box-shadow .3s;
}
.header-cta:hover { opacity: .85; }
.site-header.scrolled .header-cta { background: #0C0E12; box-shadow: none; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative; min-height: 96vh;
  display: flex; align-items: center;
  padding: clamp(150px, 20vh, 190px) clamp(20px, 5vw, 56px) clamp(70px, 10vh, 110px);
  background: #0B1120; overflow: hidden;
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.hero__glow--1 {
  top: -220px; right: -160px; width: 760px; height: 760px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 34%, transparent), transparent 66%);
  filter: blur(12px);
  animation: bsFloat 12s ease-in-out infinite;
}
.hero__glow--2 {
  bottom: -320px; left: -220px; width: 840px; height: 840px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(148,169,201,.22) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(720px 560px at 74% 30%, #000, transparent 72%);
  mask-image: radial-gradient(720px 560px at 74% 30%, #000, transparent 72%);
}
.hero__shape {
  position: absolute; top: 120px; right: 12%; width: 210px; height: 210px;
  border: 1.5px solid rgba(143,180,245,.28); border-radius: 40px;
  animation: bsSpin 70s linear infinite; pointer-events: none; z-index: 1;
}
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; }
.hero .eyebrow { animation: bsFade .8s ease both; }
.hero__title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(46px, 8.5vw, 118px); line-height: .96; letter-spacing: -.04em;
  color: #fff; max-width: 1080px; margin-top: 34px; text-wrap: balance;
  animation: bsUp .8s ease both;
}
.hero__accent {
  background: linear-gradient(92deg, #9FC0F7 0%, var(--accent-bright) 45%, #4E85E8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 22px); line-height: 1.55; color: rgba(255,255,255,.66);
  max-width: 620px; margin-top: 36px; animation: bsUp .8s .08s ease both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 46px; animation: bsUp .8s .16s ease both;
}
.hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  margin-top: clamp(56px, 9vw, 92px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  animation: bsFade 1s .3s ease both;
}
.hero__disciplines {
  font: 600 15px/1 'Space Grotesk', sans-serif; letter-spacing: -.01em; color: #fff;
}
.hero__note { font-size: 13.5px; color: rgba(255,255,255,.45); letter-spacing: .01em; }

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  overflow: hidden; padding: 30px 0; background: #0B1120;
  border-top: 1px solid rgba(255,255,255,.07); white-space: nowrap;
}
.marquee__track { display: inline-block; animation: bsMarquee 32s linear infinite; will-change: transform; }
.marquee__item {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22);
  padding-right: 64px;
}

/* ===================================================================
   ABOUT
   =================================================================== */
.about { background: #fff; scroll-margin-top: 70px; padding-bottom: clamp(80px, 12vw, 140px); }
.about__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(56px, 8vw, 100px); align-items: start;
}
.about__p { font-size: 19px; line-height: 1.7; color: var(--muted); max-width: 580px; }
.about__copy .h2 { max-width: 640px; margin-top: 24px; }
.about__copy .about__p { margin-top: 30px; }
.about__copy .about__p + .about__p { margin-top: 18px; }
.about__media { position: relative; }
.about__frame {
  position: absolute; top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 20px; pointer-events: none;
}
.about__image {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #F3F5F8; height: clamp(300px, 55vw, 420px);
  border: 1px solid #EEF0F3;
  display: flex; align-items: center; justify-content: center;
}
.about__image img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  display: none; color: var(--label); font-size: 15px; font-weight: 500;
}
.about__image.is-empty .about__placeholder { display: block; }

/* ===================================================================
   STATEMENT (solid accent)
   =================================================================== */
.statement {
  position: relative; padding: clamp(100px, 15vw, 170px) clamp(20px, 5vw, 56px);
  background: var(--accent); color: #fff; overflow: hidden;
}
.statement__shape { position: absolute; border: 1.5px solid rgba(255,255,255,.18); pointer-events: none; }
.statement__shape--1 {
  right: 6%; top: -110px; width: 360px; height: 360px; border-radius: 52px;
  transform: rotate(24deg); animation: bsSpin 90s linear infinite;
}
.statement__shape--2 {
  right: 19%; bottom: -140px; width: 280px; height: 280px; border-radius: 44px;
  border-color: rgba(255,255,255,.10); transform: rotate(-14deg);
}
.statement__blob {
  position: absolute; left: -140px; bottom: -180px; width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,.10), transparent 68%);
  pointer-events: none;
}
.statement__quotemark {
  position: absolute; left: 30px; top: 56px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(130px, 22vw, 230px); line-height: 1;
  color: rgba(255,255,255,.07); pointer-events: none; user-select: none;
}
.statement__inner { position: relative; max-width: 1240px; margin: 0 auto; }
.statement__inner .reveal, .statement__inner { animation-range: entry 0% cover 25%; }
.statement__quote {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.14; letter-spacing: -.025em;
  color: #fff; max-width: 1040px; margin-top: 30px; text-wrap: balance;
}
.statement__sub {
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: rgba(255,255,255,.78);
  max-width: 660px; margin-top: 36px;
}

/* ===================================================================
   SERVICES
   =================================================================== */
.services { background: #fff; scroll-margin-top: 70px; }
.services__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 64px;
}
.services__head .h2 { margin-top: 22px; }
.services__sub { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px;
}
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 30px 38px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.svc-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(12,14,18,.08);
}
.svc-card__num {
  display: inline-flex; padding: 6px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent); font: 600 12px/1 'Space Grotesk', sans-serif; letter-spacing: .06em;
}
.svc-card__t {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 22px; line-height: 1.22; letter-spacing: -.01em; color: var(--text); margin-top: 20px;
}
.svc-card__d { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin-top: 14px; }

/* ===================================================================
   APPROACH
   =================================================================== */
.approach { background: #F7F8FA; scroll-margin-top: 70px; }
.approach__h { max-width: 680px; margin-top: 22px; margin-bottom: 72px; }
.approach__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px;
}
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 40px 36px 44px; transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(12,14,18,.07); }
.step-card__num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 84px; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.step-card__t {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -.01em; color: var(--text); margin-top: 26px;
}
.step-card__d { font-size: 16px; line-height: 1.7; color: var(--muted); margin-top: 14px; }

/* ===================================================================
   PRINCIPLES
   =================================================================== */
.principles { background: #fff; }
.principles__head { max-width: 740px; margin-bottom: 72px; }
.principles__head .h2 { margin-top: 22px; }
.principles__sub { font-size: 18px; line-height: 1.7; color: var(--muted); margin-top: 22px; }
.principles__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(24px, 3vw, 36px);
}
.principle { border-top: 2px solid #0C0E12; padding-top: 24px; transition: border-color .25s; }
.principle:hover { border-color: var(--accent); }
.principle__num { font: 600 12px/1 'Space Grotesk', sans-serif; letter-spacing: .08em; color: var(--accent); }
.principle__t {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 19px; letter-spacing: -.01em; color: var(--text); margin-top: 14px;
}
.principle__d { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 14px; }

/* ===================================================================
   INVESTORS
   =================================================================== */
.investors { background: #F7F8FA; scroll-margin-top: 70px; }
.investors__h {
  font-size: clamp(32px, 5vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin-top: 22px;
}
.investors__sub { font-size: 18px; line-height: 1.7; color: var(--muted); margin-top: 22px; max-width: 440px; }
.investors__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pill {
  font-size: 14px; font-weight: 600; color: var(--text);
  background: #fff; border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 100px; transition: border-color .2s;
}
.pill:hover { border-color: var(--accent); }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  position: relative; background: #0B1120; color: #fff;
  padding: clamp(90px, 13vw, 140px) clamp(20px, 5vw, 56px) 0;
  scroll-margin-top: 70px; overflow: hidden;
}
.footer__glow {
  position: absolute; top: -180px; right: -140px; width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  pointer-events: none;
}
.footer__inner { position: relative; max-width: 1240px; margin: 0 auto; }
.footer__top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 60px; align-items: end;
  padding-bottom: clamp(60px, 9vw, 100px); border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__h {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(38px, 6.5vw, 68px); line-height: 1; letter-spacing: -.035em;
  color: #fff; max-width: 680px; text-wrap: balance;
}
.footer__sub { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 500px; margin-top: 26px; }
.footer__contact {
  display: flex; flex-direction: column; gap: 24px;
  justify-self: end; min-width: min(100%, 290px);
}
.footer__label {
  font: 600 12px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 9px;
}
.footer__email { font-size: 17px; color: #fff; }
.footer__btn { align-self: flex-start; padding: 15px 26px; box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 38%, transparent); }
.footer__btn:hover { box-shadow: 0 16px 44px color-mix(in srgb, var(--accent) 52%, transparent); }
.footer__reg { display: grid; gap: 20px; padding-top: 2px; }
.footer__value { font-size: 16px; color: #fff; }

.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 0; flex-wrap: wrap; gap: 18px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { height: 30px; width: auto; }
.footer__tagline { font-size: 13px; color: rgba(255,255,255,.4); }
.footer__right { display: flex; align-items: center; gap: 20px; }
.footer__rights { font-size: 13.5px; color: rgba(255,255,255,.4); }
.lang--footer { margin-left: 0; gap: 7px; font-size: 13px; }
.lang--footer button { color: rgba(255,255,255,.5); }
.lang--footer button.active { color: var(--accent-bright); }
.lang--footer .divider { color: rgba(255,255,255,.3); }

.footer__wordmark {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(40px, 12.5vw, 178px); line-height: .82; letter-spacing: -.05em;
  color: rgba(255,255,255,.05); white-space: nowrap; text-align: center;
  transform: translateY(14%);
  overflow: hidden; pointer-events: none; user-select: none;
  animation: bsFade .9s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 779px) {
  .nav-links { display: none; }
  .footer__contact { justify-self: stretch; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
