/* ==========================================================================
   HaloInvestasi - styles
   Theme: institutional fintech. Clarity - Trust - Execution.
   ========================================================================== */

:root {
  --navy-900: #06182f;
  --navy-800: #0b2545;
  --navy-700: #123a63;
  --navy-600: #1d4e89;
  --accent: #c9a227;      /* trust / premium gold */
  --accent-soft: #e7d59a;
  --teal: #18a0a0;        /* AI / intelligence */
  --ink: #15243a;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-deep: #06182f;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(6, 24, 47, 0.08);
  --shadow-md: 0 12px 32px rgba(6, 24, 47, 0.12);
  --maxw: 1120px;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--navy-600); text-decoration: none; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #cdd9e8; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section--deep .section__head p { color: #9fb2c8; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--navy-900); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { box-shadow: var(--shadow-md); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; color: var(--navy-900); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.95rem;
}
.brand .mark span { transform: translateY(-1px); }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--navy-600); }
.nav__cta { display: flex; align-items: center; gap: 0.8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 4px 0; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(24, 160, 160, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(201, 162, 39, 0.12), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #e7eef7;
  overflow: hidden;
}
.hero__inner { padding: 96px 0 104px; max-width: 820px; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d8e3f0; font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24, 160, 160, 0.25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--accent-soft); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #b9c8db; max-width: 640px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero__values { display: flex; gap: 1.6rem; flex-wrap: wrap; color: #9fb2c8; font-size: 0.9rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; }
.hero__values span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__values span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* --- Problem / stat callout --------------------------------------------- */
.lead-statement {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-900);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem;
  line-height: 1.3;
}
.lead-statement .muted { color: var(--muted); font-weight: 600; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .num {
  font-family: var(--font-head); font-weight: 800; color: var(--accent);
  font-size: 0.85rem; letter-spacing: 0.1em;
}
.card h3 { font-size: 1.12rem; margin: 0.5rem 0 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(24, 160, 160, 0.1); color: var(--teal); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; }

.painlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.painlist li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.painlist li::before { content: "✕"; color: #c0392b; font-weight: 700; margin-top: 1px; }

/* --- Transformation table ------------------------------------------------ */
.transform { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.transform__col { padding: 32px; }
.transform__col--before { background: var(--bg-alt); }
.transform__col--after { background: var(--navy-800); color: #dde8f3; }
.transform__col h3 { margin-bottom: 1.2rem; }
.transform__col--after h3 { color: #fff; }
.transform ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.transform__col--before li { color: var(--muted); }
.transform__flow { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-head); font-weight: 700; }
.transform__flow span { background: rgba(255,255,255,0.1); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.9rem; }
.transform__flow .arrow { background: none; color: var(--accent-soft); padding: 6px 2px; }

/* --- Secure layer -------------------------------------------------------- */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch;
}
.flow__step {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 22px; position: relative;
}
.flow__step .n { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 0.8rem; }
.flow__step h4 { color: #fff; font-size: 1rem; margin: 0.4rem 0 0.3rem; }
.flow__step p { color: #9fb2c8; font-size: 0.88rem; margin: 0; }
.note { text-align: center; color: #9fb2c8; margin-top: 26px; font-size: 0.95rem; }

/* --- Model / monetization ------------------------------------------------ */
.ladder { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.ladder__item {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.ladder__tier { font-family: var(--font-head); font-weight: 800; color: var(--white); background: var(--navy-700); min-width: 116px; text-align: center; padding: 8px 10px; border-radius: 8px; font-size: 0.85rem; }
.ladder__item:nth-child(1) .ladder__tier { background: var(--teal); }
.ladder__item:nth-child(4) .ladder__tier { background: var(--accent); color: var(--navy-900); }
.ladder__item h4 { margin: 0 0 2px; font-size: 1.02rem; }
.ladder__item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* --- Roadmap ------------------------------------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--white); position: relative; }
.phase--active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,0.15); }
.phase .tag { font-family: var(--font-head); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.phase--active .tag { color: var(--accent); }
.phase h4 { margin: 0.5rem 0 0.3rem; font-size: 1.05rem; }
.phase .status { font-size: 0.8rem; font-weight: 600; color: var(--teal); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(24,160,160,0.2), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: #fff; border-radius: 20px; padding: 56px; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #b9c8db; max-width: 560px; margin: 0 auto 1.8rem; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #8fa3bb; padding: 54px 0 30px; }
.footer__grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.footer__brand { max-width: 320px; }
.footer__brand .brand { color: #fff; margin-bottom: 0.8rem; }
.footer__brand p { color: #8fa3bb; font-size: 0.92rem; }
.footer__col h5 { color: #fff; font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.9rem; }
.footer__col a { display: block; color: #8fa3bb; font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.footer__values { color: var(--accent-soft); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.05em; }

/* --- Consultation page --------------------------------------------------- */
.consult-wrap { max-width: 880px; margin: 0 auto; }
.consult-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: #fff; transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,78,137,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }

.answer {
  margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); padding: 24px; display: none;
}
.answer.is-visible { display: block; }
.answer__head { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.answer__head .badge { background: var(--teal); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.answer__body { white-space: pre-wrap; color: var(--ink); }
.answer.is-error { background: #fdf0ee; border-color: #f2c4bc; }
.answer.is-error .answer__head { color: #b0382a; }

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.trust-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.trust-strip div { flex: 1; min-width: 180px; }
.trust-strip h4 { font-size: 0.95rem; margin: 0 0 4px; }
.trust-strip p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* --- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 920px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .transform { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .ladder__item { flex-direction: column; align-items: flex-start; gap: 10px; }
}
