/* ============================================================
   Golkar Bali — Civic Intelligence
   Clean, profesional, elegan; aksen seni & ornamen Bali.
   Palet: gading, emas Golkar, tinta hangat, hijau keraton.
   ============================================================ */

:root {
  --ink: #211c11;
  --ink-soft: #4c463a;
  --muted: #7a7361;
  --paper: #fcfaf4;
  --surface: #ffffff;
  --gold: #c9a227;
  --gold-deep: #9a7b17;
  --gold-line: rgba(160, 128, 30, 0.26);
  --yellow: #f5c518;
  --yellow-deep: #e0ac0b;
  --yellow-soft: #fdf3cd;
  --green-royal: #16382a;
  --green-royal-2: #0f2a1f;
  --line: rgba(33, 28, 17, 0.1);
  --shadow-soft: 0 14px 44px rgba(33, 28, 17, 0.08);
  --shadow-lift: 0 26px 60px rgba(33, 28, 17, 0.14);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --jepun-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='-80 -80 160 160'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='0.13' stroke-width='1.2'%3E%3Cg%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(72)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(144)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(216)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(288)'/%3E%3C/g%3E%3Cg transform='translate(72 72) rotate(28) scale(0.7)'%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(72)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(144)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(216)'/%3E%3Cpath d='M0 0C-4 -9 -3 -15 0 -17C3 -15 4 -9 0 0Z' transform='rotate(288)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
}

h1 em {
  color: var(--gold-deep);
  font-style: italic;
}

h2 {
  max-width: 26ch;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

/* ---------- Saput poleng: garis kain kotak-kotak Bali ---------- */

.poleng-strip {
  position: relative;
  z-index: 31;
  height: 8px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, transparent 0% 50%)
    0 0 / 16px 16px,
    linear-gradient(#efe9da, #efe9da);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(252, 250, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: none;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.24);
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand-text small {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

nav a {
  position: relative;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease;
}

nav a::after {
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--ink);
}

nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

nav a.nav-cta {
  margin-left: 10px;
  border-radius: 10px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: #241c05;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(224, 172, 11, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

nav a.nav-cta::after {
  display: none;
}

nav a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(224, 172, 11, 0.42);
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.2));
  content: "";
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered .eyebrow::after {
  width: 34px;
  height: 1px;
  flex: none;
  background: linear-gradient(270deg, var(--gold), rgba(201, 162, 39, 0.2));
  content: "";
}

.section-heading.centered {
  text-align: center;
}

.section-heading.centered h2 {
  margin-right: auto;
  margin-left: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--jepun-tile),
    radial-gradient(1200px 480px at 88% -10%, rgba(245, 197, 24, 0.16), transparent 62%),
    linear-gradient(180deg, #fffdf3 0%, var(--paper) 88%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 76px) clamp(56px, 7vw, 96px);
}

.hero-lede {
  max-width: 56ch;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: #241c05;
  box-shadow: 0 14px 30px rgba(224, 172, 11, 0.34);
}

.button.primary:hover {
  box-shadow: 0 18px 38px rgba(224, 172, 11, 0.44);
}

.button.ghost {
  border-color: var(--gold-line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--gold);
  background: #ffffff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  max-width: 640px;
  margin-top: clamp(36px, 5vw, 56px);
}

.hero-metrics article {
  border-top: 2px solid var(--gold);
  padding-top: 14px;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Bingkai foto hero bergaya gerbang pura */

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
}

.hero-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 220px 220px 22px 22px;
  outline: 1px solid rgba(201, 162, 39, 0.4);
  outline-offset: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-lift);
}

.hero-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-frame-shadow {
  position: absolute;
  z-index: 1;
  inset: 26px -26px -26px 26px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 220px 220px 22px 22px;
  background: linear-gradient(160deg, rgba(245, 197, 24, 0.2), rgba(201, 162, 39, 0.05));
}

.hero-jepun {
  position: absolute;
  z-index: 3;
  top: -26px;
  right: -18px;
  width: 92px;
  height: 92px;
  color: var(--gold);
  filter: drop-shadow(0 6px 14px rgba(201, 162, 39, 0.35));
  animation: jepun-sway 9s ease-in-out infinite alternate;
}

/* ---------- Pembatas ornamen ukiran ---------- */

.ornament-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px) clamp(18px, 5vw, 76px);
  color: var(--gold);
}

.ornament-divider .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent);
}

.ornament-divider svg {
  width: 148px;
  height: 38px;
  flex: none;
}

/* ---------- Section umum ---------- */

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.section-heading {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-heading > p:not(.eyebrow) {
  max-width: 72ch;
  color: var(--ink-soft);
}

/* ---------- Kartu nilai (Profil) ---------- */

.value-grid,
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.panel,
.value-card,
.agenda-card,
.figure-story,
.figure-timeline,
.chart-panel,
.signal-card,
.data-control,
.radar-preview,
.floating-chat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.value-card,
.agenda-card,
.panel {
  padding: 30px 28px;
}

.value-card,
.agenda-card,
.radar-item {
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.value-card::before,
.agenda-card::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0.12));
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.value-card:hover,
.agenda-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.value-card:hover::before,
.agenda-card:hover::before {
  opacity: 1;
}

.value-index {
  display: block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.value-card p,
.agenda-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Tokoh ---------- */

.figure-section {
  position: relative;
}

.figure-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr) minmax(280px, 1fr);
  gap: 20px;
}

.figure-card,
.figure-story,
.figure-timeline {
  padding: 30px 28px;
}

.figure-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(340px 200px at 110% -12%, rgba(245, 197, 24, 0.22), transparent 70%),
    linear-gradient(160deg, var(--green-royal), var(--green-royal-2));
  color: #f4f1e4;
  box-shadow: var(--shadow-lift);
}

.figure-card .eyebrow {
  color: #e9c95c;
}

.figure-card .eyebrow::before {
  background: linear-gradient(90deg, #e9c95c, rgba(233, 201, 92, 0.15));
}

.figure-card h3 {
  color: #ffffff;
  font-size: 1.5rem;
}

.card-corner {
  position: absolute;
  width: 52px;
  height: 26px;
  color: rgba(233, 201, 92, 0.85);
}

.card-corner.tl {
  top: 14px;
  right: 16px;
}

.card-corner.br {
  bottom: 14px;
  left: 16px;
  transform: rotate(180deg);
}

.figure-card dl {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
}

.figure-card dt {
  color: #e9c95c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.figure-card dd {
  margin: 4px 0 0;
  color: #ffffff;
  font-weight: 600;
}

.figure-story p {
  color: var(--ink-soft);
}

.figure-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.figure-highlights span {
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--yellow-soft);
  color: #5c470c;
  font-size: 0.84rem;
  font-weight: 700;
}

.figure-timeline ol {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.figure-timeline li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 18px 26px;
  border-left: 1px solid var(--gold-line);
  margin-left: 6px;
}

.figure-timeline li::before {
  position: absolute;
  top: 5px;
  left: -5.5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 2px;
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.figure-timeline li:last-child {
  padding-bottom: 0;
}

.figure-timeline strong {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 1.02rem;
}

.figure-timeline span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Sumber ---------- */

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.source-strip a {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.source-strip a:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: #ffffff;
  transform: translateY(-2px);
}

/* ---------- Data ---------- */

.data-section {
  position: relative;
}

.data-board {
  display: grid;
  grid-template-columns: 280px 1fr 1.02fr;
  gap: 20px;
  align-items: stretch;
}

.data-control {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select:focus,
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
  outline: none;
}

.data-control p {
  margin: 6px 0 0;
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  border-top-color: var(--gold);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.signal-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 30px 28px;
  background:
    var(--jepun-tile),
    linear-gradient(160deg, #fffdf0, var(--yellow-soft));
}

.signal-card p:last-child {
  color: var(--ink-soft);
}

.signal-orbit {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(154, 123, 23, 0.3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.signal-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.signal-orbit span:nth-child(1) {
  top: 6px;
  left: 62px;
}

.signal-orbit span:nth-child(2) {
  right: 14px;
  bottom: 28px;
  background: var(--green-royal);
}

.signal-orbit span:nth-child(3) {
  left: 18px;
  bottom: 34px;
  background: var(--yellow-deep);
}

.chart-panel {
  margin-top: 20px;
  padding: 30px 28px;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.chart-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.bars {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 52px;
  align-items: center;
  gap: 14px;
}

.bar-row > span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.bar-row > strong {
  font-family: var(--font-display);
  color: var(--gold-deep);
  text-align: right;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ecdf;
  box-shadow: inset 0 1px 2px rgba(33, 28, 17, 0.06);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--gold-deep));
  transition: width 420ms cubic-bezier(0.22, 0.72, 0.28, 1);
}

/* ---------- Agenda ---------- */

.agenda-section {
  position: relative;
}

.agenda-section::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(201, 162, 39, 0.05) 0 1px, transparent 1px 26px);
  content: "";
  pointer-events: none;
}

.agenda-section > * {
  position: relative;
}

.agenda-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}

.agenda-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.agenda-card li::before {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.agenda-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: #241c05;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(224, 172, 11, 0.3);
}

/* ---------- Radar ---------- */

.radar-layout {
  display: grid;
  grid-template-columns: minmax(290px, 440px) 1fr;
  gap: 20px;
}

.radar-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.radar-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.radar-item:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.radar-item span {
  grid-row: span 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #5c470c;
  font-family: var(--font-display);
  font-weight: 600;
}

.radar-item strong {
  font-size: 1.02rem;
}

.radar-item small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.radar-item.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf0, var(--yellow-soft));
  box-shadow: 0 16px 40px rgba(201, 162, 39, 0.2);
}

.radar-item.active span {
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  border-color: transparent;
  color: #241c05;
}

.radar-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: clamp(28px, 4.5vw, 46px);
  background:
    radial-gradient(420px 260px at 108% -14%, rgba(245, 197, 24, 0.18), transparent 70%),
    linear-gradient(160deg, var(--green-royal), var(--green-royal-2));
  color: #f4f1e4;
}

.radar-preview .eyebrow {
  color: #e9c95c;
}

.radar-preview .eyebrow::before {
  background: linear-gradient(90deg, #e9c95c, rgba(233, 201, 92, 0.15));
}

.radar-preview h3 {
  max-width: 24ch;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.radar-preview p {
  max-width: 62ch;
  color: rgba(244, 241, 228, 0.88);
}

.radar-preview .tag-list {
  margin-top: 26px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid rgba(233, 201, 92, 0.45);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(233, 201, 92, 0.12);
  color: #f2dfa0;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ---------- Chatbot section ---------- */

.chat-layout {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 20px;
}

.chat-info p:last-child {
  margin-bottom: 0;
}

.chat-status {
  color: var(--gold-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-prompts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.quick-prompts button {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.quick-prompts button:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, #241f13, #1a1610);
  color: #cfc8b4;
}

.site-footer::before {
  display: block;
  height: 8px;
  background:
    repeating-conic-gradient(#0f0d08 0% 25%, transparent 0% 50%)
    0 0 / 16px 16px,
    linear-gradient(var(--gold), var(--gold-deep));
  content: "";
}

.footer-gate {
  position: absolute;
  right: clamp(-40px, 2vw, 60px);
  bottom: 0;
  width: min(360px, 44vw);
  height: auto;
  color: rgba(233, 201, 92, 0.07);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(120px, 0.6fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(18px, 5vw, 76px) 36px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  border-color: rgba(233, 201, 92, 0.35);
  box-shadow: none;
}

.footer-brand .brand-text strong {
  color: #ffffff;
}

.footer-brand .brand-text small {
  color: #e9c95c;
}

.footer-brand p {
  max-width: 44ch;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col strong {
  margin-bottom: 6px;
  color: #e9c95c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: #cfc8b4;
  font-size: 0.94rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(18px, 5vw, 76px) 26px;
  border-top: 1px solid rgba(233, 201, 92, 0.16);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: #e9c95c;
  font-weight: 700;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ---------- Chat bubble & floating chat ---------- */

.chat-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-deep));
  color: #241c05;
  box-shadow: 0 18px 38px rgba(33, 28, 17, 0.3);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chat-bubble:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(33, 28, 17, 0.36);
}

.chat-bubble span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 98px;
  z-index: 45;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, calc(100vw - 28px));
  height: min(620px, calc(100svh - 124px));
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(33, 28, 17, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 200ms ease, transform 220ms ease;
}

.floating-chat.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffdf3, #fdf8e4);
}

.floating-chat-header strong,
.floating-chat-header span {
  display: block;
}

.floating-chat-header strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.floating-chat-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.floating-chat-header button {
  min-height: 36px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 6px 14px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.floating-chat-header button:hover {
  border-color: var(--gold);
  background: var(--yellow-soft);
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 18px;
  background: var(--paper);
}

.message {
  max-width: min(88%, 680px);
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.message.bot {
  justify-self: start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  background: #ffffff;
}

.message.user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--green-royal);
  color: #f4f1e4;
}

.message.loading {
  color: var(--muted);
  font-style: italic;
}

.chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-form input {
  flex: 1 1 220px;
}

.chat-form .button {
  min-height: 48px;
  padding: 10px 20px;
}

/* ---------- Animasi ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes jepun-sway {
  from {
    transform: rotate(-8deg);
  }

  to {
    transform: rotate(10deg);
  }
}

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

/* ---------- Responsif ---------- */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    width: min(380px, 86%);
  }

  .data-board,
  .figure-layout,
  .radar-layout,
  .chat-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  nav a.nav-cta {
    margin-left: 0;
  }

  .hero-metrics,
  .value-grid,
  .agenda-grid,
  .stat-cards,
  .quick-prompts,
  .source-strip {
    grid-template-columns: 1fr;
  }

  .hero-frame-shadow {
    display: none;
  }

  .hero-jepun {
    right: 0;
  }

  .bar-row {
    grid-template-columns: 88px 1fr 44px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-gate {
    width: 60vw;
    right: -10vw;
  }

  .chat-bubble {
    right: 14px;
    bottom: 14px;
  }

  .floating-chat {
    right: 14px;
    bottom: 86px;
    height: min(560px, calc(100svh - 104px));
  }
}
