/* ============ TOKENS ============ */
:root {
  --ink: #ffffff;
  --ink-2: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.16);
  --chalk: #0f172a;
  --mute: #64748b;
  --mute-dim: #94a3b8;

  --ember: #ff5f2e;
  --ember-deep: #d43f16;
  --ember-glow: rgba(255, 95, 46, 0.16);

  --focus: #0f9d8a;
  --focus-deep: #0a7364;
  --focus-glow: rgba(15, 157, 138, 0.16);

  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
}

[data-theme="dark"] {
  --ink: #0b0f14;
  --ink-2: #121821;
  --panel: #181f29;
  --panel-2: #1f2937;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --chalk: #f2f6f8;
  --mute: #8fa2b3;
  --mute-dim: #5d7284;

  --focus: #33d9c4;
  --focus-deep: #178f80;
  --focus-glow: rgba(51, 217, 196, 0.16);

  --good: #42d97a;
  --warn: #ffcf5c;
  --bad: #ff5470;
}

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --container: 1180px;

  --f-display: 'Anton', sans-serif;
  --f-stat: 'Bebas Neue', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--f-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
}
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 64px);
  padding-right: clamp(20px, 4vw, 64px);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ UTILITIES ============ */
.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--mute-dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-glow);
  flex-shrink: 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.section-head p {
  margin-top: 16px;
  color: var(--mute);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-ember {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 95, 46, 0.6);
}
.btn-focus {
  background: linear-gradient(135deg, var(--focus), var(--focus-deep));
  color: #03211d;
  box-shadow: 0 10px 30px -10px rgba(51, 217, 196, 0.5);
}
.btn-ghost {
  background: var(--panel-2);
  color: var(--chalk);
  border: 1px solid var(--line-2);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}

.chip {
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--chalk);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}
.badge .bd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.badge.good {
  background: rgba(66, 217, 122, 0.14);
  color: var(--good);
}
.badge.good .bd {
  background: var(--good);
}
.badge.warn {
  background: rgba(255, 207, 92, 0.14);
  color: var(--warn);
}
.badge.warn .bd {
  background: var(--warn);
}
.badge.bad {
  background: rgba(255, 84, 112, 0.14);
  color: var(--bad);
}
.badge.bad .bd {
  background: var(--bad);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 64px);
  background: color-mix(in srgb, var(--ink) 75%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo svg {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--chalk);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--chalk);
  cursor: pointer;
  padding: 6px;
}
.nav-burger svg {
  width: 22px;
  height: 22px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px clamp(20px, 4vw, 64px) 76px;
  background:
    radial-gradient(
      ellipse 55% 45% at 8% 0%,
      var(--ember-glow),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 45% at 100% 15%,
      var(--focus-glow),
      transparent 60%
    ),
    var(--ink);
}
.hero-inner {
  max-width: 900px;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.6vw, 80px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.002em;
}
.hero h1 .a-ember {
  color: var(--ember);
}
.hero h1 .a-focus {
  color: var(--focus);
}
.hero p.lead {
  margin-top: 22px;
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--mute);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.vital-wrap {
  margin-top: 60px;
  max-width: 820px;
}
.vital-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.stop-ember {
  stop-color: var(--ember);
}
.stop-focus {
  stop-color: var(--focus);
}
.vital-path {
  fill: none;
  stroke: url(#vitalGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hstat {
  padding-right: 26px;
}
.hstat + .hstat {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  margin-left: 0;
}
.hstat b {
  display: block;
  font-family: var(--f-stat);
  font-size: 30px;
  letter-spacing: 0.01em;
}
.hstat span {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}

/* ============ DUALITY ============ */
.duality {
  padding: 96px clamp(20px, 4vw, 64px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.duality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 34px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.dcard:hover,
.dcard:focus-visible {
  transform: translateY(-4px);
}
.dcard.ember:hover,
.dcard.ember:focus-visible {
  border-color: var(--ember);
}
.dcard.focus:hover,
.dcard.focus:focus-visible {
  border-color: var(--focus);
}
.dcard-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 13.5px;
}
.dcard-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}
.dcard.ember .dcard-cta {
  color: var(--ember);
}
.dcard.focus .dcard-cta {
  color: var(--focus);
}
.dcard:hover .dcard-cta svg {
  transform: translateX(4px);
}
.dcard::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(6px);
}
.dcard.ember::before {
  background: var(--ember-glow);
}
.dcard.focus::before {
  background: var(--focus-glow);
}
.dcard-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.dcard.ember .dcard-icon {
  background: var(--ember-glow);
  color: var(--ember);
}
.dcard.focus .dcard-icon {
  background: var(--focus-glow);
  color: var(--focus);
}
.dcard-icon svg {
  width: 26px;
  height: 26px;
}
.dcard-tag {
  position: relative;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dcard.ember .dcard-tag {
  color: var(--ember);
}
.dcard.focus .dcard-tag {
  color: var(--focus);
}
.dcard h3 {
  position: relative;
  font-family: var(--f-display);
  font-size: 25px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dcard p {
  position: relative;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 420px;
}
.dcard-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.dcard-foot {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.dcard-foot b {
  font-family: var(--f-stat);
  font-size: 32px;
}
.dcard.ember .dcard-foot b {
  color: var(--ember);
}
.dcard.focus .dcard-foot b {
  color: var(--focus);
}
.dcard-foot span {
  font-size: 12.5px;
  color: var(--mute);
}

/* ============ STEPS ============ */
.steps {
  padding: 96px clamp(20px, 4vw, 64px);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.step {
  position: relative;
  padding: 26px 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--panel);
  border-top: 3px solid transparent;
}
.step:nth-child(odd) {
  border-top-color: var(--ember);
}
.step:nth-child(even) {
  border-top-color: var(--focus);
}
.step-num {
  font-family: var(--f-stat);
  font-size: 40px;
  color: var(--line-2);
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
}
.step h4 {
  position: relative;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 26px 0 10px;
  max-width: 80%;
}
.step p {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.6;
}

/* ============ PREVIEW / BROWSER MOCKUP ============ */
.preview {
  padding: 96px clamp(20px, 4vw, 64px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.browser {
  max-width: 1000px;
  margin: 48px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 110px -35px rgba(0, 0, 0, 0.7);
  background: var(--panel);
}
.browser-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.b-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}
.b-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.b-dots span:nth-child(1) {
  background: #ff5f56;
}
.b-dots span:nth-child(2) {
  background: #ffbd2e;
}
.b-dots span:nth-child(3) {
  background: #27c93f;
}
.b-url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  background: var(--panel-2);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--mute);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.b-url svg {
  width: 11px;
  height: 11px;
  color: var(--good);
  flex-shrink: 0;
}

.apptabs {
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  background: var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.apptabs::-webkit-scrollbar {
  display: none;
}
.apptab {
  font-weight: 600;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 10px 10px 0 0;
  color: var(--mute);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
}
.apptab.active {
  background: var(--panel);
  color: var(--chalk);
  border-color: var(--line-2);
}

.appbody {
  background: var(--panel);
  min-height: 600px;
  padding: 34px clamp(18px, 4vw, 42px) 40px;
  position: relative;
}
.appscreen {
  display: none;
}
.appscreen.active {
  display: block;
  animation: fadein 0.32s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- shared app pieces -- */
.app-title {
  font-family: var(--f-display);
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.app-meta {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 24px;
  font-family: var(--f-mono);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress-head span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--chalk);
}
.progress-head span:last-child {
  font-size: 12px;
  color: var(--mute-dim);
  font-family: var(--f-mono);
}
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  margin-bottom: 32px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
}
.progress-fill.ember {
  background: linear-gradient(90deg, var(--ember-deep), var(--ember));
}
.progress-fill.focus {
  background: linear-gradient(90deg, var(--focus-deep), var(--focus));
}

.form-group {
  margin-bottom: 26px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}
.form-help {
  font-size: 12.5px;
  color: var(--mute-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}
.field-wrap {
  position: relative;
  max-width: 340px;
}
.field-input {
  width: 100%;
  padding: 14px 50px 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--chalk);
  font-size: 14.5px;
  font-family: var(--f-body);
}
.field-input:focus {
  border-color: var(--ember);
}
.field-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  color: var(--mute-dim);
  font-family: var(--f-mono);
}

.range-row {
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 16px;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ember);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--ember);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ember);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--ember);
  cursor: pointer;
}
.range-bubble {
  font-family: var(--f-stat);
  font-size: 22px;
  color: var(--ember);
  min-width: 56px;
  text-align: right;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}
.seg-btn {
  padding: 10px 22px;
  background: var(--ink);
  color: var(--mute);
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}
.seg-btn.active {
  background: var(--ember);
  color: #fff;
}
.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease;
  margin-top: 14px;
}
.conditional-field.show {
  max-height: 140px;
  opacity: 1;
}
.conditional-field textarea {
  width: 100%;
  max-width: 460px;
  min-height: 80px;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 13.5px;
  resize: vertical;
}

.likert-item {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.likert-item:last-of-type {
  border-bottom: none;
}
.likert-q {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 520px;
  line-height: 1.5;
}
.likert-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--ink);
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill.active {
  background: var(--focus);
  border-color: var(--focus);
  color: #03211d;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}

/* -- beranda -- */
.beranda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 34px;
}
.beranda-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform 0.15s ease;
  text-align: left;
}
.beranda-card:hover {
  transform: translateY(-3px);
}
.beranda-card.ember {
  background: linear-gradient(
    150deg,
    rgba(255, 95, 46, 0.15),
    rgba(255, 95, 46, 0.02)
  );
}
.beranda-card.focus {
  background: linear-gradient(
    150deg,
    rgba(51, 217, 196, 0.15),
    rgba(51, 217, 196, 0.02)
  );
}
.bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bc-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beranda-card.ember .bc-icon {
  background: rgba(255, 95, 46, 0.2);
  color: var(--ember);
}
.beranda-card.focus .bc-icon {
  background: rgba(51, 217, 196, 0.2);
  color: var(--focus);
}
.bc-icon svg {
  width: 20px;
  height: 20px;
}
.bc-arrow {
  color: var(--mute);
}
.bc-arrow svg {
  width: 18px;
  height: 18px;
}
.beranda-card h4 {
  font-family: var(--f-display);
  font-size: 18px;
  text-transform: uppercase;
}
.beranda-card .bc-status {
  font-size: 12.5px;
  color: var(--mute);
}

.history-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-dim);
  margin-bottom: 12px;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.history-row .hr-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mute);
}
.history-row .hr-date {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--mute-dim);
}

/* -- hasil -- */
.rings-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.ring-block {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 10;
}
.ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring-num b {
  font-family: var(--f-stat);
  font-size: 32px;
  line-height: 1;
}
.ring-label b {
  font-size: 14px;
  font-weight: 700;
  display: block;
}
.ring-label span {
  font-size: 12.5px;
  color: var(--mute);
}

.result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  margin-bottom: 32px;
}
.result-banner p {
  font-size: 13.5px;
  color: var(--mute);
  max-width: 480px;
  line-height: 1.6;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.breakdown-col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.breakdown-col.ember h5 {
  color: var(--ember);
}
.breakdown-col.focus h5 {
  color: var(--focus);
}
.bar-item {
  margin-bottom: 16px;
}
.bar-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.bar-item-head span:last-child {
  font-family: var(--f-mono);
  color: var(--mute);
}
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.breakdown-col.ember .bar-fill {
  background: linear-gradient(90deg, var(--ember-deep), var(--ember));
}
.breakdown-col.focus .bar-fill {
  background: linear-gradient(90deg, var(--focus-deep), var(--focus));
}

/* -- dashboard -- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--ink);
}
.stat-card b {
  display: block;
  font-family: var(--f-stat);
  font-size: 30px;
}
.stat-card span {
  font-size: 12px;
  color: var(--mute);
}
.stat-card.c-good b {
  color: var(--good);
}
.stat-card.c-warn b {
  color: var(--warn);
}
.stat-card.c-bad b {
  color: var(--bad);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip.active {
  background: var(--chalk);
  color: var(--ink);
  border-color: var(--chalk);
}

.table-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 1.1fr;
  gap: 10px;
  padding: 0 16px 10px;
  font-size: 11.5px;
  color: var(--mute-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--f-mono);
}
.athlete-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 1.1fr;
  gap: 10px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.athlete-row:hover,
.athlete-row:focus-visible {
  border-color: var(--line-2);
  transform: translateX(3px);
}
.athlete-name {
  font-weight: 700;
  font-size: 14px;
}
.rlabel {
  display: none;
  font-size: 10.5px;
  color: var(--mute-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--f-mono);
  margin-bottom: 2px;
}
.score-cell b {
  font-family: var(--f-stat);
  font-size: 20px;
}
.score-cell.c-ember b {
  color: var(--ember);
}
.score-cell.c-focus b {
  color: var(--focus);
}
.score-cell span {
  font-size: 11px;
  color: var(--mute-dim);
  display: block;
}

/* ============ KOLABORASI ============ */
.kolaborasi {
  padding: 88px clamp(20px, 4vw, 64px);
  text-align: center;
}
.kolaborasi-inner {
  max-width: 680px;
  margin: 0 auto;
}
.kolaborasi p {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 18px;
}
.roles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 44px auto 0;
  text-align: left;
}
.role-card {
  padding: 26px 24px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
}
.role-card .rc-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute-dim);
  margin-bottom: 10px;
}
.role-card .rc-name {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.role-card .rc-role {
  font-size: 13px;
  color: var(--mute);
}

/* ============ FOOTER ============ */
.footer {
  padding: 68px clamp(20px, 4vw, 64px) 36px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand {
  max-width: 300px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  margin-bottom: 14px;
}
.footer-logo svg {
  width: 26px;
  height: 17px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h5 {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--mute-dim);
  margin-bottom: 14px;
}
.footer-col a,
.footer-col p {
  display: block;
  color: var(--mute);
  font-size: 13.5px;
  margin-bottom: 9px;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--chalk);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: block;
  }
  .duality-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
  .breakdown-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .roles-row {
    grid-template-columns: 1fr;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .beranda-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 14px;
  }
  .hstat {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-right: 0;
  }
  .table-head {
    display: none;
  }
  .athlete-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rlabel {
    display: block;
  }
  .score-cell,
  .status-cell {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .score-cell .rlabel,
  .status-cell .rlabel {
    margin-bottom: 0;
  }
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    gap: 30px;
  }
  .footer-links {
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
