:root {
  --green-900: #1b3e35;
  --green-700: #265c4b;
  --green-100: #e4ebd8;
  --green-50:  #dfe9d5;
  --orange:    #e97a44;
  --orange-d:  #d96a35;
  --cream:     #f6f5ec;
  --grey-100:  #ebebe6;
  --text:      #1a1a1a;
  --muted:     #6b6b6b;
  --radius:    14px;
  --nav-h:     76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-d); }
.btn--outline { background: #fff; border-color: #bbb; color: var(--text); }
.btn--outline:hover { background: #f3f3f3; }
.btn--dark { background: var(--green-900); color: #fff; }
.btn--dark:hover { background: #14302a; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; padding: 14px; }
.chev { margin-left: 8px; font-size: 1.2em; }
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 52px; height: 52px; object-fit: contain;
  mix-blend-mode: multiply;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 20px; }
.brand__text small { font-size: 11px; color: var(--muted); }

.nav-links { display: flex; gap: 40px; margin-left: auto; margin-right: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 600; padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.is-active { color: var(--orange); border-color: var(--orange); }

.nav-actions { display: flex; gap: 12px; }
.hero {
  position: relative; overflow: hidden;
  margin: 16px clamp(12px, 2.5vw, 32px) 0;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px);
  background: var(--green-900);
  color: #fff;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__circle { position: absolute; background: var(--green-700); border-radius: 50%; pointer-events: none; }
.hero__circle--top    { width: 300px; height: 300px; top: -230px; left: 52%; }
.hero__circle--bottom { width: 300px; height: 300px; bottom: -200px; left: 0; }
.hero__text, .auth-card { position: relative; z-index: 1; }

.hero__eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .5px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; font-weight: 700; }
.hero__desc { margin-top: 20px; max-width: 460px; font-size: 16px; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 36px; margin-top: 32px; font-weight: 500; }
.hero__stats li { display: flex; align-items: center; gap: 12px; }
.auth-card {
  background: #fff; color: var(--text);
  border-radius: 22px;
  padding: 22px 28px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-width: 420px; width: 100%;
  justify-self: end;
}

.tabs {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--grey-100);
  border-radius: 12px; padding: 4px;
  margin-bottom: 28px;
}
.tabs__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: #fff; border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.tabs.is-signup .tabs__pill { transform: translateX(100%); }
.tabs__btn {
  position: relative; z-index: 1;
  background: none; border: 0; padding: 10px;
  font-size: 15px; font-weight: 500; color: #999;
  transition: color .25s;
}
.tabs__btn.is-active { color: var(--text); font-weight: 600; }
.auth-viewport { overflow: hidden; transition: height .4s cubic-bezier(.4, 0, .2, 1); }
.auth-track {
  display: flex; align-items: flex-start;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.auth-track.is-signup { transform: translateX(-100%); }
.auth-panel { flex: 0 0 100%; min-width: 0; padding: 2px; }
.auth-panel[aria-hidden="true"] { visibility: hidden; }

.auth-panel h2 { font-size: 19px; font-weight: 600; color: var(--green-900); }
.auth-sub { font-size: 12px; color: var(--muted); margin: 2px 0 18px; }
.auth-panel label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 6px; }
.auth-panel input,
.auth-panel textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid #ecebe0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit; font-size: 14px;
  resize: none;
}
.auth-panel input:focus,
.auth-panel textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.auth-panel .btn { margin-top: 28px; }

.impact {
  text-align: center;
  padding: 36px 16px 0;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
}
.impact__num { color: var(--orange); font-size: 1.7em; font-weight: 600; margin: 0 4px; }
.impact__green { color: var(--green-900); font-weight: 600; }

.section { padding: 96px clamp(16px, 4vw, 48px) 24px; text-align: center; }
.eyebrow { color: var(--orange); font-weight: 500; letter-spacing: 2px; font-size: 16px; }
.eyebrow--left { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; }
.section__title { color: var(--green-900); font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 4px 0; }
.section__sub { color: var(--muted); max-width: 600px; margin: 0 auto; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; max-width: 1100px; margin: 56px auto 0;
}
.step {
  border: 2px solid var(--green-900);
  border-radius: 10px;
  padding: 16px 16px 24px;
  text-align: left;
  background: #fff;
}
.step__num {
  display: grid; place-items: center;
  width: 26px; height: 26px; margin: 0 auto 14px;
  background: #d8e6cf; border-radius: 50%;
  font-size: 12px; font-weight: 600;
}
.step__img {
  width: 96px; height: 96px; margin: 0 auto 14px;
  border: 1.5px solid var(--green-900); border-radius: 8px;
  background: #fff;
  overflow: hidden;
  padding: 10px;
}
.step__img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.step h3 { color: var(--green-900); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: #444; }

.section--price { padding-top: 120px; }
.price {
  max-width: 1160px; margin: 0 auto;
  background: var(--green-100);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px;
  align-items: center; text-align: left;
}
.price h2 { color: var(--green-900); font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 700; margin: 12px 0 18px; }
.price__desc { color: var(--muted); max-width: 440px; margin-bottom: 28px; }

.price__list { list-style: none; background: #fff; border-radius: 14px; padding: 8px 32px; }
.price__list li {
  display: grid; grid-template-columns: 28px 1fr auto 56px; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #cfcfcf; font-size: 14px;
}
.price__list li:last-child { border-bottom: 0; }
.coin {
  width: 22px; height: 22px; border: 1.5px solid var(--orange); color: var(--orange);
  border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.price__name { font-weight: 600; font-size: 15px; }
.price__up { color: var(--green-700); font-weight: 600; font-size: 13px; text-align: right; }

.news {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: 1160px; margin: 48px auto 0;
}
.news__card {
  position: relative; min-height: 340px;
  border-radius: 14px; overflow: hidden;
  display: flex; align-items: flex-end; text-align: left; color: #fff;
  background:
    linear-gradient(to top, rgba(10,30,24,.95) 5%, rgba(10,30,24,0) 60%),
    var(--img) center / cover no-repeat,
    linear-gradient(160deg, #e0561a, #5a1a08 70%);
}
.news__body { padding: 20px; }
.news__body small { display: block; font-size: 13px; opacity: .85; margin-bottom: 4px; }
.news__body h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.chip {
  background: #fff; color: var(--text); border: 0;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 600;
}
.chip span { margin-right: 4px; }
.chip:hover { background: #f0f0f0; }

.cta {
  max-width: 1160px; margin: 96px auto 96px;
  background: var(--orange); color: #fff;
  border-radius: 14px;
  padding: clamp(24px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta__eyebrow { font-size: 14px; letter-spacing: 1.5px; margin-bottom: 12px; }
.cta h2 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; font-weight: 700; max-width: 640px; }
.cta .btn--dark { white-space: nowrap; text-align: left; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px clamp(16px, 4vw, 48px);
  border-top: 1px solid #e0e0e0;
  font-size: 12px; color: #444;
}
.footer strong { font-size: 13px; color: var(--text); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .auth-card { justify-self: stretch; max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .footer { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .price__list { padding: 8px 16px; }
  .price__list li { grid-template-columns: 24px 1fr auto 46px; gap: 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tabs__pill, .auth-track { transition: none; }
}

.field-hint { display: block; margin-top: 5px; font-size: 11px; line-height: 1.4; color: #777; }
.field-hint.is-error { color: #c0392b; font-weight: 600; }
.auth-panel input.is-invalid { border-color: #c0392b; background: #fff6f5; }

.nav-toggle {
  display: none; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: #fff; border: 1px solid #bbb; color: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid #e5e5e5;
    padding: 6px clamp(16px, 4vw, 48px) 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .navbar.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #f0f0f0; }
  .nav-links a:last-child { border-bottom: 0; }

  .section { padding-top: 64px; }
  .section--price { padding-top: 72px; }
  .cta { margin: 56px auto; }
  input, textarea, select { font-size: 16px !important; }
}

@media (max-width: 520px) {
  .navbar { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 28px 20px; gap: 32px; border-radius: 22px; }
  .auth-card { padding: 18px 18px 22px; }
  .step { padding: 14px 14px 20px; }
  .impact__num { display: block; margin: 4px 0; }
}

@media (max-width: 420px) {
  .brand__text { display: none; }
}

/* pesan error form login/daftar */
.form-error {
  margin: 12px 0 0; padding: 10px 14px;
  border-left: 4px solid #a3281f; background: #fbeceb; color: #8a2119;
  font-size: 14px; border-radius: 6px;
}
.form-error[hidden] { display: none; }
