/* ==========================================================================
   WBN Investor Site — Refactored CSS (variable-driven)
   ========================================================================== */

/* -----------------------------
   Design Tokens
------------------------------ */
:root {
  /* Fonts */
  --font-heading: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;

  /* Brand */
  --brand-600: #2B64BA;
  /* primary blue */
  --brand-500: #3496F2;
  /* lighter blue */
  --brand-400: #5EA7EF;
  /* light reference */
  --accent-500: #2AA7A1;
  /* teal accent (optional) */

  /* Neutrals */
  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-600: #475569;

  /* Page */
  --page-bg: color-mix(in srgb, var(--brand-400) 12%, white);
  /* soft blue-white */
  --section-alt: color-mix(in srgb, var(--brand-400) 10%, white);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.70);
  --surface-strong: rgba(255, 255, 255, 0.92);

  /* Borders */
  --border: color-mix(in srgb, var(--brand-600) 16%, transparent);
  --border-soft: color-mix(in srgb, var(--brand-600) 10%, transparent);

  /* Shadows */
  --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.10);

  /* Radius */
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 18px;

  /* Spacing */
  --container: 1120px;
  --gutter: 2.5rem;
  --section-pad: 72px;
  --gap: 16px;

  /* Text on dark */
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.55);

  /* Gradients */
  --hero-grad:
    radial-gradient(900px 380px at 20% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(700px 420px at 80% 10%, rgba(0, 0, 0, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.0)),
    var(--brand-600);

  --cta-grad:
    radial-gradient(600px 280px at 20% 30%, rgba(255, 255, 255, 0.14), transparent 65%),
    radial-gradient(520px 280px at 80% 50%, rgba(0, 0, 0, 0.10), transparent 60%),
    var(--brand-600);

  /* Focus */
  --focus: color-mix(in srgb, var(--brand-500) 70%, white);

  /* Header */
  --header-offset: 130px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-offset);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

p {
  margin: 0 0 0.9rem;
}

/* Headings */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.8rem;
  line-height: 1.12;
  color: var(--brand-600);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  font-weight: 750;
}

h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

/* Helpers */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--on-dark-muted);
  /* intended for hero */
  margin-bottom: 12px;
}

.lede {
  font-size: 1.08rem;
  max-width: 72ch;
  color: var(--ink-700);
  line-height: 1.65;
}

.muted {
  color: var(--ink-600);
}

.small {
  font-size: 0.92rem;
}

/* -----------------------------
   Layout
------------------------------ */
.container {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Subtle section separators = extra “oomph” without being flashy */
.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(43, 100, 186, 0.08);
}

.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(to bottom, rgba(43, 100, 186, 0.06), transparent);
  pointer-events: none;
}

.section--alt {
  background: var(--section-alt);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  :root {
    --section-pad: 52px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   Header / Nav
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(43, 100, 186, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  flex-shrink: 0;
}


.brand-logo {
  height: 100px;
  width: auto;
}

/* .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid rgba(43, 100, 186, 0.16);
  box-shadow: var(--shadow-sm);
  background: transparent;
} */

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.brand-text small {
  display: block;
  font-size: 0.82rem;
  margin-top: 2px;
  color: var(--ink-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(43, 100, 186, 0.08);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-600);
  cursor: pointer;
}


@media (max-width: 900px) {
  :root {
    --header-offset: 86px;
  }

  .site-header {
    z-index: 40;
  }

  .header-inner {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    gap: 8px;
  }

  .brand-logo {
    height: 50px;
    width: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px;
    flex-direction: column;
    gap: 10px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 8px;
  }

  .nav .btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
}

/* -----------------------------
   Hero
------------------------------ */
.hero {
  padding: 78px 0 42px;
  background: var(--hero-grad);
  border-bottom: 1px solid rgba(43, 100, 186, 0.14);
}

.hero--home {
  position: relative;
  background: var(--hero-grad);
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/images/indonesia-dots-white.svg") no-repeat center top / 100% auto;
  opacity: 0.1;
  pointer-events: none;
}

.hero--home > .container {
  position: relative;
  z-index: 1;
}

.hero--simple {
  padding: 56px 0 30px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.hero-copy h1 {
  color: var(--on-dark);
}

.hero-copy .lede {
  margin-top: 10px;
  color: var(--on-dark-muted);
}

.hero-visual {
  display: flex;
  align-items: stretch;
}

.hero-visual .visual-card {
  width: 100%;
  background: rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-md);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .hero {
    padding: 62px 0 36px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Credibility rail (replaces “pill buttons”) */
.credibility {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.70);
  flex-wrap: wrap;
}

.credibility span {
  padding-bottom: 6px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.22);
}

/* -----------------------------
   Cards / Surfaces
------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card p,
.card li {
  color: var(--ink-700);
}

.card h3 {
  color: var(--brand-600);
}

.visual-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(43, 100, 186, 0.22);
  border-radius: var(--r-xl);
  padding: 18px;
}

/* -----------------------------
   Metreic
------------------------------ */
.metrics {
  background: linear-gradient(to bottom,
      rgba(43, 100, 186, 0.2),
      rgba(43, 100, 186, 0.1));
  border-top: 1px solid rgba(43, 100, 186, 0.12);
  border-bottom: 1px solid rgba(43, 100, 186, 0.12);
  padding: 28px 0;
}

.metrics-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.metrics-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metrics-list strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: -0.01em;
}

.metrics-list span {
  font-size: 0.95rem;
  color: var(--ink-600);
}

@media (max-width: 900px) {
  .metrics-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* -----------------------------
   Buttons
------------------------------ */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  filter: brightness(1.02);
  text-decoration: none;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

/* Light pages buttons */
.section .btn-ghost {
  color: var(--brand-600);
  background: rgba(43, 100, 186, 0.08);
  border-color: rgba(43, 100, 186, 0.16);
}

/* -----------------------------
   CTA Band
------------------------------ */
.cta-band {
  background: var(--cta-grad);
  border-top: 1px solid rgba(43, 100, 186, 0.14);
  border-bottom: 1px solid rgba(43, 100, 186, 0.14);
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.callout h2 {
  margin-bottom: 8px;
  color: var(--on-dark);
}

.callout .lede {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -----------------------------
   Forms
------------------------------ */
.form {
  display: grid;
  gap: 10px;
}

.label {
  font-weight: 650;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.input,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  color: var(--ink-900);
  outline: none;
}

.input:focus,
.textarea:focus {
  border-color: color-mix(in srgb, var(--brand-500) 55%, white);
  box-shadow: 0 0 0 4px rgba(94, 167, 239, 0.22);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(43, 100, 186, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.site-footer strong {
  color: var(--brand-600);
}

.site-footer p {
  margin: 0 0 8px;
  color: var(--ink-700);
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
  }
}

/* -----------------------------
   Accessibility / Focus
------------------------------ */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}
