/* Wealthbuzz Pte Ltd — hand-authored stylesheet. No frameworks, no external requests. */

/* ---------- Fonts (self-hosted, basic-latin subsets) ---------- */
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-latin-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-latin-var.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colours sampled from the Wealthbuzz W mark. */
  --navy: #0a1833;
  --navy-soft: #16233f;
  /* Coral is a fill, never a colour for small text on white. Buttons pair it with
     navy text (6.1:1) rather than white (2.9:1, fails AA). */
  --coral: #fa6d3f;
  --coral-head: #e85d2b; /* large headings — 3.5:1, passes AA at display sizes */
  --coral-ink: #bc4416; /* small accent text — 4.7:1 even on the tinted sections */

  --ink: #0a1833;
  --ink-2: #46536b;
  --ink-3: #5d6780;

  --surface: #ffffff;
  --canvas: #fbf9f6;
  --tint: #f6f2ec;
  --line: #e8e1d8;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(10, 24, 51, 0.05), 0 4px 12px rgba(10, 24, 51, 0.04);
  --shadow-md: 0 2px 4px rgba(10, 24, 51, 0.05), 0 12px 28px rgba(10, 24, 51, 0.07);
  --shadow-lg: 0 8px 20px rgba(10, 24, 51, 0.08), 0 28px 60px rgba(10, 24, 51, 0.1);

  --shell: 1120px;
  --nav-h: 68px;

  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Offset in-page anchors so the sticky nav never covers a heading. */
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--coral-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 14px;
}

.accent {
  color: var(--coral-head);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.88rem;
}
.btn--primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(250, 109, 63, 0.28);
}
.btn--primary:hover {
  background: var(--coral-head);
  border-color: var(--coral-head);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(250, 109, 63, 0.34);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(10, 24, 51, 0.05);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--nav-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.nav__logo {
  width: 34px;
  height: auto;
}
.nav__wordmark {
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__wordmark--light {
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav__links a:hover {
  color: var(--coral-ink);
}

.nav__burger {
  display: none;
  /* flex: none, or the flex row squeezes the button and the bars collapse to 0 wide. */
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__sheet {
  border-top: 1px solid var(--line);
  background: var(--canvas);
}
.nav__sheet-links {
  display: grid;
  gap: 4px;
  padding-block: 12px 20px;
}
.nav__sheet-links a:not(.btn) {
  padding: 13px 4px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__sheet-links .btn {
  margin-top: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 108px) clamp(64px, 10vw, 120px);
  background: linear-gradient(180deg, #fdfbf8 0%, var(--canvas) 100%);
}
.hero__bg {
  position: absolute;
  top: -8%;
  right: -14%;
  width: min(1100px, 82%);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  mask-image: radial-gradient(120% 80% at 70% 40%, #000 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 40%, #000 45%, transparent 78%);
}
.hero__inner {
  position: relative;
}
.hero__title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.4vw, 4.15rem);
  font-weight: 700;
}
.hero__lede {
  max-width: 52ch;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}
.hero__proof li {
  flex: 1 1 190px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero__proof strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.hero__proof span {
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(60px, 9vw, 112px);
}
.section--tint {
  background: var(--tint);
}

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__title {
  font-size: clamp(1.95rem, 4.2vw, 2.85rem);
  font-weight: 700;
}
.section__lede {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ink-2);
}

/* ---------- Values ---------- */
.values {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.value:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.value__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(250, 109, 63, 0.1);
  color: var(--coral-ink);
}
.value__icon svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.value p {
  font-size: 0.96rem;
  color: var(--ink-2);
}

/* ---------- Products ---------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.product + .product {
  margin-top: 26px;
}
.product--flip .product__media {
  order: 2;
}

.product__media {
  display: grid;
  place-items: center;
}
.product__shot {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
}

/* CSS phone frame so the real app screenshot reads as a device without baking one in. */
.phone {
  width: min(272px, 100%);
  padding: 10px;
  background: linear-gradient(160deg, #223 0%, #0a1833 100%);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 31px;
  background: #fff;
  aspect-ratio: 390 / 664;
}
.phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live {
  background: #e7f5ee;
  color: #10704e;
}
.badge--soon {
  background: #fdeee7;
  color: var(--coral-ink);
}

.product__name {
  margin-top: 16px;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 700;
}
.product__tagline {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--coral-ink);
}
.product__copy {
  margin-top: 16px;
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border-left: 2.2px solid var(--coral);
  border-bottom: 2.2px solid var(--coral);
  transform: rotate(-45deg);
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.product__note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-3);
}

/* ---------- Team ---------- */
.team-figure {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.pillars {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pillar {
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pillar h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pillar p {
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- Contact ---------- */
.contacts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-card {
  padding: 26px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-card__value {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
a.contact-card__value {
  color: var(--coral-ink);
}

.contact-cta {
  margin-top: 34px;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: clamp(48px, 7vw, 76px);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}
.footer__inner {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  padding-bottom: clamp(36px, 5vw, 56px);
}
/* The wordmark span sets its own colour, but keep the anchor light so the brand can
   never end up navy-on-navy if that span rule changes. */
.footer__brand .nav__brand {
  color: #fff;
}
.footer__brand p {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 0.95rem;
}
.footer__cols {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.footer__col h2 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col ul {
  display: grid;
  gap: 10px;
}
.footer__col a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__muted {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__base p {
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */
/* Only applied once JS confirms support, so content is never trapped invisible. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product,
  .product--flip {
    grid-template-columns: 1fr;
  }
  .product--flip .product__media {
    order: 0;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .hero__title {
    max-width: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .shell {
    padding-inline: 18px;
  }
  .btn {
    width: 100%;
  }
  /* .nav__burger is not a .btn, so it keeps its own fixed 44px hit area. */
  .nav__cta,
  .product__actions .btn {
    width: auto;
  }
  .product__actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
